1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
TroubleshootingFirst, search the troubleshooting FAQ. If your problem appears there (and the proposed solution works for you), great! Otherwise, read on. Start with looking at the rust-analyzer version. Try rust-analyzer:
Show RA Version in VS Code (using Command Palette feature
typically activated by Ctrl+Shift+P) or The next thing to check would be panic messages in rust-analyzer’s log.
Log messages are printed to stderr, in VS Code you can see them in the
To fully capture LSP messages between the editor and the server, run
the The root cause for many "nothing works" problems is that rust-analyzer
fails to understand the project structure. To debug that, first note the
If rust-analyzer outright crashes, try running
When filing issues, it is useful (but not necessary) to try to minimize examples. An ideal bug reproduction looks like this: 💀 💀 💀 It is especially useful when the If you want to go as far as to modify the source code to debug the problem, be sure to take a look at the contribution guide! |