dom96 / choosenim

Tool for easily installing and managing multiple versions of the Nim programming language.
BSD 3-Clause "New" or "Revised" License
680 stars 67 forks source link

"Access is denied" on Windows when installing/updating Nim. #21

Open ghost opened 7 years ago

ghost commented 7 years ago

If some file in "nim-#devel" or "nim-0.17.0" is being used - like opened in some editor, or some executable from this folder is running, choosenim throws this error:

C:\Users\Tiberium>choosenim update devel --verbose
   Updating devel
Downloading Nim devel from GitHub
[##################################################] 100.0% 0kb/s
Error: unhandled exception: Access is denied.
 [OSError]

In my case I was using VSCode with Nim plugin, and this plugin used nimsuggest.exe from "nim-#devel\bin" folder. Closing VSCode solved this issue to me

dom96 commented 6 years ago

I was going to fix this but I think I need to test it on Windows, so not this time :)

genotrance commented 4 years ago

I see this on Linux as well when nimsuggest is in use with nvim.

Error: unhandled exception: cannot open: /home/gt/.nimble/bin/nimsuggest [IOError]

genotrance commented 4 years ago

This is being managed in https://github.com/dom96/choosenim/pull/164/files#diff-3ab14ff5be652db61b90113771e4ad16R124.

Choosenim no longer crashes but gives a warning. You still need to rerun choosenim to fix the nimsuggest shim but at least it doesn't die. I think this can be closed now.