Skip to content

Commit 50b6a98

Browse files
bors[bot]matklad
andauthored
Merge #2928
2928: Provide better diagnostics if the server is not in path r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
2 parents 3f70236 + 94784cc commit 50b6a98

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

editors/code/src/client.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ export function createClient(config: Config): lc.LanguageClient {
1515

1616
const command = expandPathResolving(config.raLspServerPath);
1717
if (spawnSync(command, ["--version"]).status !== 0) {
18-
window.showErrorMessage(`Unable to execute '${command} --version'`);
18+
window.showErrorMessage(
19+
`Unable to execute '${command} --version'
20+
21+
Perhaps it is not in $PATH?
22+
23+
PATH=${process.env.PATH}
24+
`);
1925
}
2026
const run: lc.Executable = {
2127
command,

0 commit comments

Comments
 (0)