Open calidion opened 5 years ago
This Neon? https://github.com/neon-bindings/neon
yes.
Hi @calidion, do you mind posting some context to the error message?
Quick question: jave you installed rls
and and rust
with the required components via rustup
?
rustup update
rustup component add rls-preview rust-analysis rust-src
from https://github.com/eclipse/corrosion/blob/master/documentation/Troubleshooting.md
It is very obvious on vscode.
neon project moves rust code into dir native
, so it is not inside the root directory of the project.
you can checkout my source here: https://github.com/vigcoin/neon or create a new neon project and edit it with vscode.
@calidion I did try briefly rls --cli
on your repo and wasn't able to reproduce your error. Will try in IDE (Eclipse Corrosion) later.
{"jsonrpc":"2.0","method":"window/showMessage","params":{"message":"could not find `Cargo.toml` in `/home/eric/vigcoin/neon-vigcoin` or any parent directory","type":1}}
{"jsonrpc":"2.0","method":"window/progress","params":{"done":true,"id":"progress_0","message":null,"percentage":null,"title":"Indexing"}}
I use vscode with rls extenstion.
Hi @calidion
I did try your project on Eclipse. You may extrapolate for VSC.
Using neon\native
as the project's root works.
Using neon
as the project root doesn't work - As there is no Cargo.toml
in the root of the project, Eclipse does not recognize it as a rust
project.
I believe this behaviour is as intended.
If it's not too big a problem you could try placing a Cargo.toml
containing a [workspace]
section in the root of your neon
project.
https://doc.rust-lang.org/book/ch14-03-cargo-workspaces.html
Last command:
Racer Output: RUST_SRC_PATH environment variable must be set to point to the src directory of a rust checkout. E.g. "/home/foouser/src/rust/src" Racer Error: