From 94784cc546916f26ff9e312923a16463852e8e00 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 28 Jan 2020 17:00:00 +0100 Subject: Provide better diagnostics if the server is not in path --- editors/code/src/client.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts index 1ff64a930..15e1a0873 100644 --- a/editors/code/src/client.ts +++ b/editors/code/src/client.ts @@ -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, -- cgit v1.2.3