Skip to content

Unable to start pyls unless started from command line #31

@simon123h

Description

@simon123h

I am running Atom 1.21.1 on Debian.
I only have python-language-server locally installed via pip install --user python-language-server.
pyls is in my path, the command pyls --version gives me the desired output.

pyls and python-ide work just fine, when I start Atom from command line. If I do otherwise, eg. by clicking on a file, I get the prompt

Unable to start the Python language server.
This can occur if you do not have Python installed or if it is not in your path.
[...]

I checked the source and there is this line in main.js:32:
// For some reason Atom only detects the correct env if started from the command line on Mac.
And then some exceptional behavior for Mac.

I feel like I run into the same issue as this comment suggest for Mac. Is that an upstream issue of Atom not detecting the correct env? Should we have a workaround for Debian as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions