-
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 fails to load workspace #12555
Comments
If you go to your project folder in the terminal and run |
Both terminal and vscode terminal tab output the same thing:
|
What does running |
It says:
|
Hrm. Does |
So what you are saying is that it will work with vscode and not vscodium? I thought it wouldn't make any difference so I didn't mention that I installed Vscodium and not Vscode |
No, but if you're using VSCodium that would be pertinent information. How did you install rust-analyzer (the server binary, not the extension)? What version of the extension do you have installed? |
rust-analyzer v0.2.853 |
That's a rather old version of the extension, because VSCodium doesn't support the platform-specific extensions we publish nowadays. I'm not sure what the best way to install a current version in VSCodium is right now; you might be able to download and install a vsix from the releases page here. |
I guess I will just install vscode, it seems like the simplest solution. Thanks for your help and patience. |
You're welcome! |
Yeah, installing the VSIX from the release page works. You can also do this, but it's probably against the license. |
@lnicola You mean the latest version works in VSCodium? Because from what @flodiebold said, it shouldn't work due to the "platform-specific extensions" mentioned.
@flodiebold do you have further clarity you can provide? Because if it does work in VSCodium then updating the existing open-vsx.org listing would be excellent. |
If @lnicola says it works, I would assume it works. I'm probably not up to date on what's blocking the openvsx releases, it might just be the rust-lang move now. |
You can download the VSIX from GitHub and install it, this always worked. What didn't was actually publishing it to open-vsx.org. They've recently added support for the stuff we need, but we've been waiting to get access to the rust-lang namespace there. This is done and someone from the infra team is now looking into getting an access token and adding it to our CI. When that happens, we'll try to publish a version there. If nothing goes wrong (*), there will be a pre-release version this week and a stable one on Monday. (*): we've seen the official (Microsoft) marketplace fail in some spectacular ways, OpenVSX may or may not be working. EDIT: access token is now set up. |
That's excellent news and thank you for the clarification. Best of luck getting it all sorted out as we've also had some issues from time to time uploading to both marketplaces. But with some persistence, it always gets done. |
@toddewilliams you might want to follow #11080. |
I tried to find solutions on the stackoverflow and other similar issues in this list but none of the solutions seemed to work for me. I'm a rust noob and I've installed rust-analyzer in vscode. On mostly every "get started" video on youtube RA seems to work out of the books but I get this error message:
In my workspace I only have a rust project folder created by running: cargo new projectname.
rustc --version outputs this rustc 1.61.0 (fe5b13d68 2022-05-18)
cargo --version outputs this cargo 1.61.0 (a028ae4 2022-04-29)
which rustc --> ~/.cargo/bin/rustc
which cargo --> ~/.cargo/bin/cargo
To be honest I'm getting really desperate here. Can't get this to work for a couple of days now.
Cargo.toml contains this:
I am well aware that this is one of the most common issues with beginners and that fixes are usually simple so don't hold it against me for repeating a question. Thanks in advance for your help.
The text was updated successfully, but these errors were encountered: