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 6
6
- [ rust-analyzer Binary] ( rust_analyzer_binary.md )
7
7
- [ Other Editors] ( other_editors.md )
8
8
- [ Troubleshooting] ( troubleshooting.md )
9
+ - [ FAQ] ( faq.md )
9
10
- [ Configuration] ( configuration.md )
10
11
- [ Non-Cargo Based Projects] ( non_cargo_based_projects.md )
11
12
- [ 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 1
1
# Troubleshooting
2
2
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
+
3
7
Start with looking at the rust-analyzer version. Try ** rust-analyzer:
4
8
Show RA Version** in VS Code (using ** Command Palette** feature
5
9
typically activated by Ctrl+Shift+P) or ` rust-analyzer --version ` in the
You can’t perform that action at this time.
0 commit comments