-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Rust-analyzer raises an error when opening a project in WSL2 #10893
Comments
Not sure, it's possible that |
Seems like there's no problem with the PATH. I just have the rust toolchain installed on remote Kali-Linux side, not on the host Windows side. DESKTOP-J74E4AM$ cargo
Rust's package manager
USAGE:
cargo [+toolchain] [OPTIONS] [SUBCOMMAND]
OPTIONS:
-V, --version Print version info and exit
--list List installed commands
### omitted the rest
DESKTOP-J74E4AM$ printenv
PATH=/home/umaaji/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:... ### omitted the rest |
Try: $ ps aux | grep code # vscode-server or something like that
$ cat /proc/PID_OF_CODE_SERVER/environ | tr '\000' $'\n' | grep PATH And same thing with the |
It seems like it just shows me the executed grep itself. Here are the entire results of running grep, for information. DESKTOP-J74E4AM$ ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1056 516 ? Sl Nov30 0:16 /init
root 626 0.0 0.0 1404 472 ? Ss 02:29 0:00 /init
root 627 0.0 0.0 1404 472 ? S 02:29 0:00 /init
umaaji 628 0.0 0.1 7032 3716 pts/0 Ss 02:29 0:01 -bash
umaaji 1281 0.0 0.1 9852 3328 pts/0 R+ 23:31 0:00 ps aux |
Are you running that in the Code terminal? |
Hi i had a simmilar problem with WSL ➜ uname -a
Linux DESKTOP-GCH8R3L 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
➜ matklad.rust-analyzer-0.2.964 server/rust-analyzer --version
server/rust-analyzer: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by server/rust-analyzer)
➜ matklad.rust-analyzer-0.2.964 ..
➜ extensions matklad.rust-analyzer-0.3.963/server/rust-analyzer
matklad.rust-analyzer-0.3.963/server/rust-analyzer: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by matklad.rust-analyzer-0.3.963/server/rust-analyzer) https://askubuntu.com/questions/1021420/glibc-2-25-not-found-on-ubuntu-windows-subsystem-for-linux |
i was thinking i had a newer version .... ok sorry i found the correct issue 🙈 |
I have my rust development environment on top of WSL2 (kali-linux). After installing rust-analyzer from the marketplace in VSCode, I got this error on the hovering toast so that I cannot go forward.
rust-analyzer failed to load workspace: No such file or directory (os error 2)
Does the problem happen because rust toolchain is built on WSL2? If so, how do I solve it?
I've done a preliminary search about some relevant issues but I cannot find the answer yet.
Thanks in advance.
DESKTOP-J74E4AM$ cargo --version cargo 1.55.0 (32da73ab1 2021-08-23) DESKTOP-J74E4AM$ rustc --version rustc 1.55.0 (c8dfcfe04 2021-09-06) DESKTOP-J74E4AM$ uname -a Linux DESKTOP-J74E4AM 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 GNU/Linux
My VSCode setup:
My rust-analyzer version:
rust-analyzer version: d9b2291f5 2021-11-29 stable
The text was updated successfully, but these errors were encountered: