You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
rustup.exe cannot be replaced when an IDE that uses RLS is open on Windows
Steps
Install rustup
Install vscode
Work on a rust project
run rustup some time later and get an error about rustup.exe permission denied
Possible Solution(s)
Suggest having a handof/respawn protocol for the proxies so they can be told to GTFO when rustup.exe needs to be replaced.
Proxies should have a file that they look for on disk, which if found, they immediately exit with error. E.g. ~/.rustup/self-updating. We should advise IDEs etc to deal with exiting servers with a few 10's of ms delay - or that they can look for this file and wait for it to be removed before they try to run the command again.
rustup should then kill the proxies reasonably gracefully during update:
write the file
try the rename
look for processes
wait p90? p95? for the rustc/fmt/docs etc processes to have a decent chance of cleanly exiting
perhaps prompt the user for (kill/wait)
kill any with rls or other server style children unless the user has cleanly exited the server
loop on 3
do the update
remove the file
Notes
Output of rustup --version:
Output of rustup show:
The text was updated successfully, but these errors were encountered:
rbtcollins
changed the title
rustup self update fails when RLS using IDE's are open on Windwos
rustup self update fails when RLS using IDE's are open on Windows
May 22, 2019
If we rename() the old proxies out of the way before trying to delete them, and then opportunistically silently try to unlink() old proxy names whenever we encounter them, this ought to be a fairly rare event. How does that sound?
Problem
rustup.exe cannot be replaced when an IDE that uses RLS is open on Windows
Steps
Possible Solution(s)
Suggest having a handof/respawn protocol for the proxies so they can be told to GTFO when rustup.exe needs to be replaced.
Proxies should have a file that they look for on disk, which if found, they immediately exit with error. E.g.
~/.rustup/self-updating
. We should advise IDEs etc to deal with exiting servers with a few 10's of ms delay - or that they can look for this file and wait for it to be removed before they try to run the command again.rustup should then kill the proxies reasonably gracefully during update:
Notes
Output of
rustup --version
:Output of
rustup show
:The text was updated successfully, but these errors were encountered: