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

Use a temp directory for the hot reloading pipe #1697

Merged
merged 2 commits into from Dec 7, 2023

Conversation

ealmloff
Copy link
Member

@ealmloff ealmloff commented Dec 6, 2023

This hides the hot reloading file by placing it in the temp directory.

This reverses #842. If the issue is just with @ in a path, this shouldn't revert that fix.

Closes #1616

@ealmloff ealmloff added tweak Small changes to improve experience hot-reload Related to the hot reload crate labels Dec 6, 2023
@jkelleyrtp jkelleyrtp self-requested a review December 7, 2023 05:14
Copy link
Member

@jkelleyrtp jkelleyrtp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will cause issues if two projects are being hotreloaded simultaneously, right? We should try one of three things:

  • put the pipe in the target directory
  • put the pipe in a folder in the temp dir
  • multiplex the pipe itself

Eventually we probably want 3 but either 1 or 2 would be fine.

@ealmloff
Copy link
Member Author

ealmloff commented Dec 7, 2023

This will cause issues if two projects are being hotreloaded simultaneously, right? We should try one of three things:

  • put the pipe in the target directory
  • put the pipe in a folder in the temp dir
  • multiplex the pipe itself

Eventually we probably want 3 but either 1 or 2 would be fine.

It now puts the socket in the target folder

@jkelleyrtp jkelleyrtp merged commit fe7df0c into DioxusLabs:master Dec 7, 2023
10 checks passed
@ealmloff ealmloff deleted the hot-reload-temp-dir branch March 15, 2024 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hot-reload Related to the hot reload crate tweak Small changes to improve experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use a tempdir to hide the dioxusin pipe for hotreloading
2 participants