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