-
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
File watching fails due to file not found on Ubuntu 22.04 LTS #8800
Comments
having same issue, turborepo is not working properly on WSL due to this |
It seems like these issues are related: #8765 and #8491 Furthermore, it appears that this is a Linux specific issue originating here:
(this function is feature flagged - the MacOS execution path is different) I do wonder - is it really appropriate to exit the loop there? It appears that the file is gone before |
When setting up manual recursive watching on folders (as is the case under Linux), the watching thread should not exit if a directory no longer exists. This is likely to occur within build output directories and it should not be the cause for interrupting the daemon.
When setting up manual recursive watching on folders (as is the case under Linux), the watching thread should not exit if a directory no longer exists. This is likely to occur within build output directories and it should not be the cause for interrupting the daemon.
Verify canary release
Link to code that reproduces this issue
Please see steps to reproduce
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Linux
Which canary version will you have in your reproduction?
2.0.7-canary.1
Describe the Bug
In my case, the failure is due to
turbo
trying to access a file (apparently) that was changed but also was removed immediately. Thus, the file access failed which seems to stop file watching entirely.turbo daemon clean
is needed afterwards to be able to start a build at all (GitButler in this case). But no matter what, even withCARGO_BUILD_JOBS=1
to 'slow it down', it fails with something like……as obtained by
turbo daemon logs
.This was tested with
v2.0.9
by the way.Expected Behavior
It shouldn't crash if a file is removed before it can access it.
To Reproduce
Prerequisites for the GitButler project
Note that
pnpm
is also needed as runner.git clone https://github.com/gitbutlerapp/gitbutler cd gitbutler pnpm install pnpm tauri dev
The
pnpm tauri dev
call will try to launchturbo
- the first time it straight up fails, the second time it runs for a while but fails later when Rust is compiling.Additional context
Originally mentioned in #8006.
The text was updated successfully, but these errors were encountered: