From 8aea0e4d62a0526aeac0bea3eb9a79f6003cec20 Mon Sep 17 00:00:00 2001 From: Lukas Geiger Date: Thu, 12 Oct 2017 22:36:52 -0500 Subject: [PATCH] Only use shell-env on mac --- lib/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/main.js b/lib/main.js index 121c050e..f57a1e9b 100644 --- a/lib/main.js +++ b/lib/main.js @@ -29,7 +29,8 @@ class PythonLanguageClient extends AutoLanguageClient { } async startServerProcess(projectPath) { - const env = await shellEnv(); + // 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; const childProcess = cp.spawn(atom.config.get("ide-python.pylsPath"), { cwd: projectPath, env: env