-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
TSServer holds file locks on build output, preventing 'clean' #29064
Comments
@MLoughry Can you provide tsserver log from such session, I have observed directory watchers to be cause of such holds as compared to file watching so repro and log would be helpful to see what we can do here. Thanks |
It's not a 100% repro, so of course it's being difficult now. 😔 I'll try to get you a log. |
@sheetalkamat, I managed to catch a repro, and posted the logs to https://github.com/MLoughry/typescript-29064 From
|
Pinging @sheetalkamat Even if this is not currently prioritized, can the |
Experiencing the same issue |
Is there another workaround besides restarting VS Code? |
Same issue when trying to run
it seems the TSService has a lock on the tsc -v npm -v |
This is duplicate of #29407 and marking as such |
TypeScript Version: 3.2.1
Search Terms:
tsserver, file lock, delete, clean, rimraf
Code
No code.
When running TSServer (as part of VSCode) with project references and an
outDir
specified (such that downstream project references reference the.d.ts
files in theoutDir
), TSServer will sometimes hold locks on files, preventing build processes from "cleaning" theoutDir
, such as by usingrimraf
Expected behavior:
Cleaning happens without error
Actual behavior:
Error: EPERM: operation not permitted, unlink 'D:\vso\client-web\obj\datetime\packages'
, for example, though any of variousEPREM
errors can occur. Closing VSCode or instructing it to restart the TSServer always resolves the issue.The text was updated successfully, but these errors were encountered: