-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Unable to update nx on windows with native code #15424
Comments
as a sidenote, I have disabled the daemon in my workspace, and still this happens... I know it's started/initialized when starting (I could see the flashing cmd windows until recently). I thought it shut down after that, but I guess it's still running in the background unused... If it actually shuts down after init, then trying to stop it when node_modules changes will have no effect. But it should be easy to see which process keeps the lock via process monitor or similar... |
If it's started, it wont shut down if you change the nx.json setting. You should be able to run |
I have disabled it via useDaemonProcess=false in nx.json below taskRunnerOptions. So I guess that only implies that it should not be used for the task runner.... |
yea, which is everything that nx does. If the daemon is disabled (you can confirm by running |
yarn nx daemon returns:
I think you can easily find it via process explorer from sysinternals.... (from what I remember many years ago). At least you can test with daemon disabled as I have... The daemon runs in it's own process, so all handles should be closed when process exits. But maybe Nx console itself holds a handle... So the daemon was not running when I tested this, pretty sure disabling nx console would also have fixed it, but I first tried with disabling native hasher... |
just verified it again during 15.8.3->15.8.4 upgrade.
even when daemon is not running (tested via yarn nx daemon) |
Yea, you're right @atsjo. The Nx language server uses the daemonClient behind the scenes and remains open depending on the IDE/editor. I've added support to stop the daemon when doing |
Ok. I have been running with the daemon disabled for a long time now, was very unstable to build, but tried again now, and can't make it work at all... I ensure it is running, and run: yarn nx run-many --target=build
Ensured the daemon was running before build, and after this, it says it's not running... If I try to use yarn nx reset, the result is this:
I reported my problems here: #12237 |
Thanks for your patience @atsjo, the linked PR should fix the issue with not being able to remove the directory. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current behaviour
Updating Nx when the daemon is started causes issues with unlinking the .node file.
Expected behaviour
The daemon should stop itself and release the handle when it notices that node_modules are being changed.
Originally posted by @atsjo in #15377 (comment)
The text was updated successfully, but these errors were encountered: