-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
vitest plugin keeps a file lock on rollup and esbuild which halts package upgrades at times #418
Comments
I cannot reproduce this behavior. If
The |
Hello @SimmeNilsson. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with |
I've updated my initial description with output and reproduction repo. Steps described in the README of the repo. As for the output, it is not when I exercise the test that I have the problem. Edit: The file locking process in my last repro was |
Is this the full output at the moment of getting an error? Did you remove anything from it? |
[INFO 4:34:20 PM] [v0.12.3] Vitest extension is activated because Vitest is installed or there is a Vite/Vitest config file in the workspace. I think I understand what you meant now. In the two scenarios I've provided that window is either missed (A) or not present at all (B). Scenario A Scenario B Edit: Scenario C |
Any luck in reproducing given the scenarios detailed above? |
I get this when switching between branches that have different versions of esbuild or rollup in |
Do you use Windows? |
Yes |
Oh I keep getting that one and I was wondering where it was coming from. So annoying, I have to manually delete the node modules before rebuilding my code... |
Does this happen only with yarn 1? Are there any other instances of this happening with other package managers? |
Yarn 4.4.1 here |
So, the issue here is that the Vitest extension constantly maintains Vitest running in the background for an instant response. This typically functions well as package managers generally do not delete everything from the
|
Describe the bug
When I upgrade my npm packages using yarn 1.x I every now and then get
error Error: EPERM: operation not permitted, unlink '...\node_modules@esbuild\win32-x64\esbuild.exe'
or
error Error: EPERM: operation not permitted, unlink '...\node_modules@rollup\rollup-win32-x64-msvc\rollup.win32-x64-msvc.node'
The locking process belongs to the vitest VS Code plugin.
I am not running any tests at the time.
Reproduction
Usually happens when I upgrade npm packages.
Specifically when yarn tries to unlink either esbuild or rollup.
For reproduction example and instructions see this repo:
https://github.com/SimmeNilsson/FileLockVitestPlugin
Output
Version
0.12.3
Validations
The text was updated successfully, but these errors were encountered: