You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the call to dx serve is backgrounded, it freezes the build process. It resumes as soon as the process is brought back to the foreground.
Steps To Reproduce
Steps to reproduce the behavior:
Launch the dev server in a Dioxus project and background it: dx serve &
Visit the browser in the expected http://localhost:8080/
See that the webpage is frozen and permanently loading
Issue fg in the same terminal as in the first step
Notice that immediately the build process resumes and website is loaded correctly (we do not get the prompt back, though)
Expected behavior
dx serve should be able to be backgrounded without interrupting the build process.
The CLI command should detect
Screenshots
N/A
Environment:
Dioxus version: CLI: dioxus 0.6.1 (c2952a7), 0.6.1 in cargo project.
Rust version: 1.82.0
OS info: MacOS
App platform: web
Additional information
This is especially relevant when using Dioxus as a Tauri front-end, as the beforeDevCommand foregrounds the dx serve command, which then makes the whole website not load.
Even though dx serve has a -i option (interactive), the issue persists even with -i false. This option should ideally remove the need for having a tty session attached, hiding output and building with hot-reloading silently in the background.
Questionnaire
I don't have time to fix this right now, but maybe later
The text was updated successfully, but these errors were encountered:
Problem
If the call to
dx serve
is backgrounded, it freezes the build process. It resumes as soon as the process is brought back to the foreground.Steps To Reproduce
Steps to reproduce the behavior:
dx serve &
http://localhost:8080/
fg
in the same terminal as in the first stepExpected behavior
dx serve
should be able to be backgrounded without interrupting the build process.The CLI command should detect
Screenshots
N/A
Environment:
dioxus 0.6.1 (c2952a7)
,0.6.1
in cargo project.1.82.0
web
Additional information
Dioxus
as aTauri
front-end, as thebeforeDevCommand
foregrounds thedx serve
command, which then makes the whole website not load.dx serve
has a-i
option (interactive), the issue persists even with-i false
. This option should ideally remove the need for having a tty session attached, hiding output and building with hot-reloading silently in the background.Questionnaire
I don't have time to fix this right now, but maybe later
The text was updated successfully, but these errors were encountered: