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

RLS fails to start in multi-project setup on non-OS drive #713

Closed
ghost opened this issue Dec 9, 2019 · 3 comments · Fixed by #759
Closed

RLS fails to start in multi-project setup on non-OS drive #713

ghost opened this issue Dec 9, 2019 · 3 comments · Fixed by #759

Comments

@ghost
Copy link

ghost commented Dec 9, 2019

The VS Code error message: Could not spawn RLS: `spawn C:\WINDOWS\system32\cmd.exe ENOENT`

Setting "rust-client.enableMultiProjectSetup" to false in settings.json prevents the issue.

Only occurs when running in a workspace folder on a different disk drive than the Windows OS drive.
In my case, Windows is installed to C:, and I'm attempting to work in D:\projects\foo.

Example directory structure:

  • D:\projects\foo
    • bar\
      • src\
        • main.rs
      • Cargo.toml
    • baz\
      • src\
        • main.rs
      • Cargo.toml

https://github.com/rust-lang/rls-vscode/blob/c85bf69f3a00184ee4600da34e6387178eba754c/src/extension.ts#L454
I noticed cwd here is set to "\projects\foo", without the drive letter.

settings.json:

"rust-client.enableMultiProjectSetup": true
"rust-client.channel": "stable"
PS D:\projects\foo> rustup -V
rustup 1.20.2 (13979c968 2019-10-16)

PS D:\projects\foo> rustup show
Default host: x86_64-pc-windows-msvc
rustup home:  C:\Users\...\.rustup

installed toolchains
--------------------

stable-x86_64-pc-windows-msvc
nightly-x86_64-pc-windows-msvc

active toolchain
----------------

stable-x86_64-pc-windows-msvc (default)
rustc 1.39.0 (4560ea788 2019-11-04)

PS D:\projects\foo> code -v
1.40.2
f359dd69833dd8800b54d458f6d37ab7c78df520
x64

PS D:\projects\foo> code --list-extensions --show-versions | rg rust
[email protected]
@ppisecky
Copy link

ppisecky commented Feb 3, 2020

I am having the exact same issue

@ghost
Copy link

ghost commented Feb 28, 2020

Same situation, same issue

@mihai-dinculescu
Copy link

Is there any update on this?

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

Successfully merging a pull request may close this issue.

2 participants