Skip to content

Commit 5434cc0

Browse files
committed
Only use shell-env on mac
1 parent ce39acc commit 5434cc0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ class PythonLanguageClient extends AutoLanguageClient {
2929
}
3030

3131
async startServerProcess(projectPath) {
32-
const env = await shellEnv();
32+
// For some reason Atom only detects the correct env if started from the command line on Mac.
33+
const env = process.platform === "darwin" ? await shellEnv() : process.env;
3334
const childProcess = cp.spawn(atom.config.get("ide-python.pylsPath"), {
3435
cwd: projectPath,
3536
env: env

0 commit comments

Comments
 (0)