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
Ubuntu 21.10 "Can not attach stdlib sources automatically" #8364
Comments
Yes uninstalling all Ubuntu packages and using rustup works as expected. But at some point it would be great to get it working with the packages provided by the distribution. But then I guess it is more a bug of the distro then a problem with the rust plugin. |
I have the same issue when using the rust packages provided by fedora35 |
I'm having this same issue and attaching the sources manually does not seem to help. The "Can not attach..." message keeps showing up and the plugin is not able to navigate through std::" |
UPDATE:
EDIT: Seems like an issue with cargo metadata: rust-lang/cargo#10096 |
I'm experiencing the same issue on Ubuntu 20.04 (unable to attach stdlib sources installed via clion log says:
|
I'm using system installation of Rust at work, rustup is not available and we can't install it by policy. |
@enerjazzer Without rustup you have to download an stdlib sources somehow (using system package manager or manually) and specify the path to it in IntelliJ Rust project settings. For example, on You don't need stdlib sources for building rust code, so it's expected that |
It is downloaded. But the plugin still doesn't see it. Please fix |
Environment
Problem description
Opening or creating a rust project shows "Can not attach stdlib sources automatically without rustup".
Attaching the sources manually seems to fail and I tried with many different paths.
It seems rustup itself is not available in a Debian package and the available snap did not help.
Installed rust Debian packages:
The text was updated successfully, but these errors were encountered: