mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Merge #2928
2928: Provide better diagnostics if the server is not in path r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
50b6a989d2
1 changed files with 7 additions and 1 deletions
|
@ -15,7 +15,13 @@ export function createClient(config: Config): lc.LanguageClient {
|
|||
|
||||
const command = expandPathResolving(config.raLspServerPath);
|
||||
if (spawnSync(command, ["--version"]).status !== 0) {
|
||||
window.showErrorMessage(`Unable to execute '${command} --version'`);
|
||||
window.showErrorMessage(
|
||||
`Unable to execute '${command} --version'
|
||||
|
||||
Perhaps it is not in $PATH?
|
||||
|
||||
PATH=${process.env.PATH}
|
||||
`);
|
||||
}
|
||||
const run: lc.Executable = {
|
||||
command,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue