-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Failed to download: EPERM: operation not permitted #6602
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
Comments
That can happen if the language server is running multiple times (if you have more than one Code open or if an older rust-analyzer instance got stuck and didn't close). |
Do you still have this issue? |
Closing since there's not much to do here: we understand the cause (the server is already running), but there's nothing actionable. @strowk please reopen if it stil happens with a single Code instance running or if you find other steps to reproduce it. |
I don't have that issue anymore (I stopped using rust-analyzer) |
What about keeping old |
@Livven we could do that, but it's not trivial:
A PR for this would probably be welcome, though. |
I think there might be another open issue for this but I can't find it right now, let's reopen it since it's something that people seem to really care about. |
Thanks, I'll see if I can find the time and come up with something. I ran into a similar |
Has anybody tried renaming the old executable instead of deleting it and putting the new one in its place? I am told it's not possible to rename running executables but i remember doing exactly that in an updater for an app a wrote a long time ago. |
What happens if running Code instance tries to restart the language server (because it crashes or the user requested it)? If we add a version string to the server executable name we can avoid most of these issues. |
Heads-up: #9585 just landed and should help with this, but not in every case: if you're running two Code instances, update the server from one of them, then restart or crash the server in the other one, it will use the new server version with the old extension, which can sometimes cause problems. |
Update: since #11053, the server binary is bundled with the extension, and (assuming Code handles updates nicely), no longer updated while running. So this is finally fixed for good. |
Uh oh!
There was an error while loading. Please reload this page.
When I start VSCode it shows me a message that I need to install rust analyzer language server. I click download button and then following error is shown:
I'm using Windows 10, VSCode 1.51.1, extension Rust Analyzer v0.2.384
The text was updated successfully, but these errors were encountered: