-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
🐛 Bug: turbo watch
does not detect changes from IntelliJ IDEA
#9463
Comments
Thank you for tracking down the version you noticed this behavior. This is probably related to #9228, but nothing is immediately jumping out at me.
I know fsevents has requires some special casing for file renames (which I'm assuming is the final step: If you would be able to get the logs from the logfile displayed by |
Here are the logs whenever the change is not detected. e.g.
Side note: As a reference, these are the logs whenever a change to the same file is properly detected.
And these are for the same interaction on
|
Verify canary release
Link to code that reproduces this issue
No reproduction. I understand this makes it impossible to debug, but wanted to keep track of the issue and help users with similar issues until it can be reproduced in a public repo. More details below.
Which canary version will you have in your reproduction?
2.3.1-canary.0
Enviroment information
Expected behavior
When saving changes to a file (e.g. removing a single character) using IntelliJ,
turbo watch
reacts to the changes and restarts any affected package task.Actual behavior
On IntelliJ Idea, sometimes,
turbo watch
doesn't detect changes after saving a file.To Reproduce
Attempting to replicate the issue on an example repository has proven unsuccessful.
Since this is happening on a private mono-repo, with many thousands of files involved and ~100 of packages, I suspect it might be related to the amount of files that are being watched.
This used to work fine until
[email protected]
, but as far as I can tell it started breaking from[email protected]
.Further testing pinpointed the issue to
[email protected]
.That being said, I'm able to reproduce the issue only on IntelliJ Idea, since making the same changes on Visual Studio Code works fine.
Workaround and possible source cause
From what I gathered, it looks like the issue is reproducible on my repo only when the Back up files before saving option of IntelliJ Idea is turned on.
This option can be disabled from Preferences -> Appearance & Bahavior -> System Settings.
What this does in practice (e.g. when saving
myfile.ts
), is creating a temporary file calledmyfile.ts~
backing up the original data until the save is successful .Could this temporary file be messing with turbo's watcher?
Additional context
No persistent tasks are involved.
The watched tasks are straight up builds and rely turbo to watch for changes and restart.
The text was updated successfully, but these errors were encountered: