Skip to content
Closed
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
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ Symbols:

``pip install python-language-server``

You can then start the server with this command:

``python -m pyls``
Copy link
Contributor

Choose a reason for hiding this comment

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

Does just running pyls not work for you?

Copy link
Author

@GeorgeBekh GeorgeBekh Oct 15, 2018

Choose a reason for hiding this comment

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

Doesn't seem like it. I install it without sudo so it probably shouldn't work in my case and in general

Copy link

Choose a reason for hiding this comment

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

Did you make sure pyls is in your path?

Copy link
Author

@GeorgeBekh GeorgeBekh Oct 31, 2018

Choose a reason for hiding this comment

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

No, because i didn't know where it was located. Now i see that it's in ~/.local/bin/pyls on my system and it's not in my $PATH.

I propose this change because it looks like this method (python -m pyls) is less ambiguous and error-prone. May be i'm wrong so please feel free to correct me

Choose a reason for hiding this comment

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

Less error-prone is right. I don't have ~/.local/bin/pyls on my computer. but python -m pyls works. pip show -v python-language-server enabled me to guess that it was in /usr/local/bin, which is in my path.

But I didn't know that command. And had to alias it to "python-language-server" for my editor plugin to find it.


If the respective dependencies are found, the following optional providers will be enabled:

* Rope_ for Completions and renaming
Expand Down