Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WSL Hot Reload #2721

Merged
merged 5 commits into from
Jul 29, 2024
Merged

Fix WSL Hot Reload #2721

merged 5 commits into from
Jul 29, 2024

Conversation

DogeDark
Copy link
Member

WSL has issues propagating file modification events to our CLI through the notify crate. We use notify's poll watcher to fix this when we detect a WSL host. Additionally, this PR adds a new CLI setting to specify the poll interval as it can consume resources for larger projects.

  • WSL detection & Poll Watcher
  • wsl-file-poll-interval CLI setting
  • --wsl-file-poll-interval= serve argument
  • Slight difference in dx config set command usage
  • Fixes a bug in CLI settings where writing to settings.toml with a non-complete directory structure could fail.

Closes #1867

@DogeDark DogeDark added bug Something isn't working cli Related to the dioxus-cli program labels Jul 27, 2024
@jkelleyrtp jkelleyrtp merged commit b7127ad into DioxusLabs:main Jul 29, 2024
13 checks passed
@DogeDark DogeDark deleted the fix-wsl-hot-reload branch July 29, 2024 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli Related to the dioxus-cli program
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cli hot reload does not work for WSL
2 participants