Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

VSCode plugin hangs with file lock #294

Closed
pronebird opened this issue Apr 4, 2018 · 6 comments
Closed

VSCode plugin hangs with file lock #294

pronebird opened this issue Apr 4, 2018 · 6 comments

Comments

@pronebird
Copy link

Running cargo build in console on Windows emits LINK : fatal error LNK1104: cannot open file ...derive_builder.dll

Can't delete file either. Closing VSCode solves the issue.

@FreeMasen
Copy link

I am experiencing the same issue LINK1104 disabling RLS also solves this issue, so it seems to be coming from the RLS plugin.

@nrc
Copy link
Member

nrc commented Apr 6, 2018

This should be fixed in todays nightly, please comment if not and I'll re-open.

@nrc nrc closed this as completed Apr 6, 2018
@philippludwig
Copy link

I ran into this bug today; where do I get "todays nightly"?

@nrc
Copy link
Member

nrc commented May 10, 2018

I ran into this bug today; where do I get "todays nightly"?

rustup update should get it for you if you are using the nightly channel on Rustup

@philippludwig
Copy link

Oh my bad, I thought you were talking about the VSCode extension.
I'm using nightly, so no luck there. However, I have figured out that I'm actually running into issue #836.

Anyway, I found a workaround; Using the CARGO_TARGET_DIR environment variable I keep two target folders - one for RLS and one for running my application, avoiding any file locks.

Thanks for your support!

@FreeMasen
Copy link

It appears that this issue has cropped up again. On both 5/11's nightly and today(5/14)'s nightly I am getting the same link error. Disabling the plugin allows cargo to successfully link.

Xanewok pushed a commit to Xanewok/rls-vscode that referenced this issue Mar 27, 2019
Change readme "Switch to nightly" to "Update nightly"; Fix typo
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants