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

Bacon fails to properly rerun on changes that happen while compilation is ongoing #170

Closed
GeeWee opened this issue Feb 19, 2024 · 8 comments

Comments

@GeeWee
Copy link

GeeWee commented Feb 19, 2024

Split off from #163

bacon seems to get "stuck" if it compiles something with an error, and the error has been fixed before the compilation is done. It does not always rerun the compilation. E.g. see the following loom to demonstrate the problem, where you can see that the first time, bacon performs the recompilation successfully, but not the second time (15s in approx).

I've tried to replicate the same problem with cargo-watch which seems to handle this case successfully. See this loom as an example.

@Canop
Copy link
Owner

Canop commented Feb 19, 2024

To ease analysis: can you reproduce the problem with the no-async branch ?

Please edit your post with the editor and OS as it's certainly related to the way they save the file.

@GeeWee
Copy link
Author

GeeWee commented Feb 19, 2024

For sure. I've just tried with the no-async-branch and originally the behaviour seems to be the same, however after restarting my shell I'm not longer able to reproduce after switching the branch. So it might have resolved itself with the new executor!

@GeeWee
Copy link
Author

GeeWee commented Apr 4, 2024

After running the no-async-branch for a while the problem doesn't seem to occur, in that it doesn't fail to compile. It does however flicker a lot with results - my theory is that it still does racy work in parallel or similar in the background when many file updates happen quickly.

@Canop
Copy link
Owner

Canop commented Apr 4, 2024

The no-async branch has been merged to main, and some changes happened since. Do you reproduce the flickering problem with current main ?

@GeeWee
Copy link
Author

GeeWee commented Apr 4, 2024

Just tried re-running main. I don't see the flickering anymore, but the original issue has resurfaced :(

@Canop
Copy link
Owner

Canop commented Apr 8, 2024

I managed to make it happen a few times, but not in reproducible way :\

@GeeWee
Copy link
Author

GeeWee commented Apr 8, 2024

Yeah me neither :( - but glad that it's not just my computer being wonky!

@Canop
Copy link
Owner

Canop commented Oct 13, 2024

I think this has been solved with the 3.0.

Please reopen if I'm wrong.

@Canop Canop closed this as completed Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants