I created a new folder and did a cargo init in it and now rust-analyzer won't work in it. The error is something having to do with Javascript (which makes sense considering: Electron), but the error is useless to me in trying to fix the problem. So obviously rust-analyzer doesn't work, but neither do any of the auto-completion, hints, highlighting, etc.
Any ideas on what I need to do?
ERROR [2/28/2022, 5:45:57 AM]: Bootstrap error [Error: Failed to execute /home/newuser/.vscode/extensions/matklad.rust-analyzer-0.2.956/server/rust-analyzer --version
at Xb (/home/newuser/.vscode/extensions/matklad.rust-analyzer-0.2.956/out/main.js:85:2121)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Bb (/home/newuser/.vscode/extensions/matklad.rust-analyzer-0.2.956/out/main.js:84:3252)
at async Vm (/home/newuser/.vscode/extensions/matklad.rust-analyzer-0.2.956/out/main.js:84:3083)
at async Promise.all (index 0)]
I had similar trouble this morning after updating to the latest rust-analzyer. Following the advice in this response:
helped me sort it out. My setup is decidedly different, but once I convinced my editor to run the rust-analyzer out of nightly everything went smoothly.