-
Notifications
You must be signed in to change notification settings - Fork 164
Handle cases when the outer workspace is not a rust project #419
Comments
A similar usage scenario for this is with WebAssembly. The template project for this scenario (https://github.com/rustwasm/rust-webpack-template) also sets it up so a workspace root will be the webpack project, and the Rust project is stored under I will give the proposed diff a try. |
Any progress on this issue? Currently running into the same thing when using the rust-webpack-template and opening the root project folder, I instead have to open the I'm new to rust/WebAssembly and the whole ecosystem, but I'm loving it so far, and this extension goes a long way to making the transition nice and smooth, if this could be fixed, that'd be amazing. Thanks. |
It seems like this is a duplicate of #222 which has a PR filed recently, but hasn't been merged. |
This is high on the feature list of the RLS and ties into improving our project layout detection story. More of this is tracked in the RLS repository. |
Is this the RLS repo story you mention? |
I believe this has been fixed by #638, which was merged on 2019-09-18 and included in release 0.7.0 on 2019-10-15. Note that you need to explicitly set |
Hm, after setting My workspace directory structure has root project folder with a "rust-dir" subdirectory:
When I do alt+shift+b and select the
I get the same error with the |
I'm using Neon to create a NodeJS native module with Rust. The project layout consists of an npm project as the root and a subfolder "native" that has the rust project.
In VSCode I create a workspace with 2 folders:
The function
getOuterMostWorkspaceFolder
presents an issue because the outer most folder is not a rust project.https://github.com/rust-lang-nursery/rls-vscode/blob/096974566afe1ab34ae0f868c7dd6a127f41b059/src/extension.ts#L85-L97
I resolved this problem locally by checking if the outer most folder is a rust project. I'm not sure if this will cause problems with something else or if there's a better way, but this solution is working for me.
The text was updated successfully, but these errors were encountered: