Skip to content
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

Latest rust-analyzer no longer works with the toolchain in this repo #5760

Open
valadaptive opened this issue Mar 4, 2025 · 1 comment · May be fixed by #5761
Open

Latest rust-analyzer no longer works with the toolchain in this repo #5760

valadaptive opened this issue Mar 4, 2025 · 1 comment · May be fixed by #5761
Labels
bug Something is broken

Comments

@valadaptive
Copy link
Contributor

egui currently uses Rust 1.81 for everything (specified in rust-toolchain), but the latest version of rust-analyzer no longer supports it.

One solution would be to just bump the Rust version to 1.82, which might result in some MSRV increases sneaking in. We could also specify RUSTUP_TOOLCHAIN=stable for rust-analyzer specifically (via rust-analyzer.cargo.extraEnv), but if anything goes wrong with either toolchain, it might be hard to debug considering there would be a "secret extra toolchain" only set in the VS Code config.

@valadaptive valadaptive added the bug Something is broken label Mar 4, 2025
@valadaptive valadaptive linked a pull request Mar 4, 2025 that will close this issue
@Veykril
Copy link

Veykril commented Mar 4, 2025

Specifying the rust-analyzer component in the toolchain file should also make vscode pick up the server from that instead (i dont think we have that documented yet)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants