I recently installed VS Code only for Rust use, but am having trouble getting rust-analyzer setup for it.
I initially had the Rust
plug-in, then switched to rust-analyzer
since apparently it's the wave of the future. I read through the "Rust Analyzer won't work!" thread, and have tried uninstalling / reinstalling, and setting Cargo: All Features
to true
.
Per the rust-analyzer User Manual's Troubleshooting section, I tried "rust-analyzer-trace-server": "verbose"
, since it was the first one I could figure out how to do. I found the following output:
[2020-06-22 11:20:28.501] [exthost] [error] Activating extension matklad.rust-analyzer failed due to an error:
[2020-06-22 11:20:28.503] [exthost] [error] Error: Failed to bootstrap rust-analyzer. Open "Help > Toggle Developer Tools > Console" to see the logs
at ~/.vscode/extensions/matklad.rust-analyzer-0.2.215/out/src/main.js:16808:15
at async activate (~/.vscode/extensions/matklad.rust-analyzer-0.2.215/out/src/main.js:16800:24)
at async Promise.all (index 0)
at async Promise.all (index 1)
at async Promise.all (index 81)
at async Promise.all (index 1)
And in the logs there is:
ERR No application in the Launch Services database matches the input criteria.:
Error: No application in the Launch Services database matches the input criteria.
Is this the problem? How might I fix it?
I'm not sure what information might be useful. Here is my current VS Code settings.json:
{
"telemetry.enableTelemetry": false,
"rust-client.engine": "rust-analyzer",
"rust-client.autoStartRls": false,
"editor.fontSize": 16,
"rust-analyzer.cargo.allFeatures": true,
"rust-analyzer.cargo.target": null,
"rust-analyzer.trace.server": "verbose"
}
Also, I am migrating from Atom due to issues with Rust (can't find rust-analyzer unless I disable then enable the plugin on startup...), so I have another rust-analyzer
, which is located in my $PATH
.