From e0901927cf3bdc647b272566095ce6871468d32b Mon Sep 17 00:00:00 2001 From: Simon H Date: Fri, 20 Oct 2017 14:55:37 +0200 Subject: [PATCH 1/2] Fix pyls not found issue for Debian --- lib/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/main.js b/lib/main.js index f57a1e9b..371c26bb 100644 --- a/lib/main.js +++ b/lib/main.js @@ -29,8 +29,8 @@ class PythonLanguageClient extends AutoLanguageClient { } async startServerProcess(projectPath) { - // For some reason Atom only detects the correct env if started from the command line on Mac. - const env = process.platform === "darwin" ? await shellEnv() : process.env; + // For some reason Atom only detects the correct env if started from the command line on Mac and Debian. + const env = process.platform === "darwin" || process.platform === "darwin" ? await shellEnv() : process.env; const childProcess = cp.spawn(atom.config.get("ide-python.pylsPath"), { cwd: projectPath, env: env From 119a9c6f76cb10ae761023bf01238e1a61a191e9 Mon Sep 17 00:00:00 2001 From: Simon H Date: Sat, 21 Oct 2017 00:02:16 +0200 Subject: [PATCH 2/2] Correct typo --- lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/main.js b/lib/main.js index 371c26bb..f9e060ea 100644 --- a/lib/main.js +++ b/lib/main.js @@ -30,7 +30,7 @@ class PythonLanguageClient extends AutoLanguageClient { async startServerProcess(projectPath) { // For some reason Atom only detects the correct env if started from the command line on Mac and Debian. - const env = process.platform === "darwin" || process.platform === "darwin" ? await shellEnv() : process.env; + const env = process.platform === "darwin" || process.platform === "linux" ? await shellEnv() : process.env; const childProcess = cp.spawn(atom.config.get("ide-python.pylsPath"), { cwd: projectPath, env: env