File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
src/tools/rust-analyzer/docs/book/src Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 66 - [ rust-analyzer Binary] ( rust_analyzer_binary.md )
77 - [ Other Editors] ( other_editors.md )
88- [ Troubleshooting] ( troubleshooting.md )
9+ - [ FAQ] ( faq.md )
910- [ Configuration] ( configuration.md )
1011 - [ Non-Cargo Based Projects] ( non_cargo_based_projects.md )
1112- [ Security] ( security.md )
Original file line number Diff line number Diff line change 1+ # Troubleshooting FAQ
2+
3+ ### I see a warning "Variable ` None ` should have snake_case name, e.g. ` none ` "
4+
5+ rust-analyzer fails to resolve ` None ` , and thinks you are binding to a variable
6+ named ` None ` . That's usually a sign of a corrupted sysroot. Try removing and re-installing
7+ it: ` rustup component remove rust-src ` then ` rustup component install rust-src ` .
Original file line number Diff line number Diff line change 11# Troubleshooting
22
3+ First, search the [ troubleshooting FAQ] ( troubleshooting/faq.html ) . If
4+ your problem appears there (and the proposed solution works for you),
5+ great! Otherwise, read on.
6+
37Start with looking at the rust-analyzer version. Try ** rust-analyzer:
48Show RA Version** in VS Code (using ** Command Palette** feature
59typically activated by Ctrl+Shift+P) or ` rust-analyzer --version ` in the
You can’t perform that action at this time.
0 commit comments