Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down