-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
defer
removing a binary after it's used causes OSError
#10359
Comments
defer: removeFile exe
gives: The process cannot access the file because it is being used by another process
defer
removing a binary after it's used causes OSError
works fine locally (windows 10 x64) |
ya may be hard to repro; closing for now; if pops up again we can re-open ; thx for trying it locally |
reopening as this happened in a completely unrelated PR (by @BontaVlad #10228) again: https://ci.appveyor.com/project/dom96/nim/builds/21635870
so there is a bug, we just need to find a minimal test case (and perhaps it is a flaky one) note that I've patched |
IME Windows' file deletion is simply buggy. Even Windows's very own explorer sometimes fails with errors like these. Closing. |
I don't have a minimal example and it may be hard to reproduce so feel free to close this issue; but just wanted to mention it.
I never saw that error before; it looks like a bug; it only happens on windows; it occurs when a binary is removed in a
defer
statement, the binary being only used inside the block.seems unrelated to the corresponding PR #10353
https://ci.appveyor.com/project/Araq/nim/builds/21708811
git rev-parse HEAD
fb4968a
relevant code snippet:
$nim/tests/misc/tparseopt.nim
error log from appveyor:
The text was updated successfully, but these errors were encountered: