Skip to content
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

Language server update fails if another window is open (Linux) #3896

Closed
Amanieu opened this issue Apr 8, 2020 · 1 comment · Fixed by #7430
Closed

Language server update fails if another window is open (Linux) #3896

Amanieu opened this issue Apr 8, 2020 · 1 comment · Fixed by #7430

Comments

@Amanieu
Copy link
Member

Amanieu commented Apr 8, 2020

The following error occurs when updating the language server while another VSCode window is open:

[2020-04-08 16:24:02.327] [exthost] [error] Activating extension matklad.rust-analyzer failed due to an error:
[2020-04-08 16:24:02.327] [exthost] [error] Error: ETXTBSY: text file is busy, open '/home/amanieu/.config/Code/User/globalStorage/matklad.rust-analyzer/rust-analyzer-linux'

Linux won't let you write to an executable file directly if it is in use since this will truncate the existing file to 0 and cause the process to crash. Instead you should download to a separate file name and then rename it to rust-analyzer-linux once the download is complete.

@lnicola
Copy link
Member

lnicola commented Apr 8, 2020

See also #3403. Unfortunately, the delete and rename trick doesn't work on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants