Skip to content

Conversation

simon123h
Copy link

@simon123h simon123h commented Oct 20, 2017

This PR fixes my issue #31 on my Debian machine.
Definitely needs further review as it affects all linux machines!

As with the already implemented workaround for Mac, this is not more than a workaround and might not get down to the root of the problem.

Copy link
Collaborator

@lgeiger lgeiger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR won't fix the issue on Debian since it doesn't change behavior. You can always configure a absolut path to the pyls executable in the ide-python settings.

lib/main.js Outdated
// 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;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't change behavior.

Copy link
Author

@simon123h simon123h Oct 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ough, my bad! It was supposed to be linux not darwin in the second condition. I fixed it in the PR.

Anyways, it would be interesting to know if this is a personal issue or general to Linux/Debian systems.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately this will re-introduce #20 😕

@kbrose
Copy link

kbrose commented Oct 21, 2017

Maybe there's some combination of these checks and using await atom.updateProcessEnv(); as in https://github.com/lgeiger/ide-python/pull/28/files to make this work in all cases?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants