Docs: how to start the server?
I'm sorry to ask such question, but i can't figure out how to start this server to use with emacs' "eglot" (in stdio mode basically)
I did pip install 'python-language-server' and pip install 'python-language-server[all]'
UPDATE: Figured it out python -m pyls
Solved in https://github.com/palantir/python-language-server/pull/430
Yes! Thank you for making this an issue. This really needs to be in the docs. I'm right now creating a bash script in ~/bin that reads like this ~/bin/python-language-server: #!/bin/bash python -m pyls
Of course, I suppose that could be done in one line: #!/usr/bin/python -m pyls
But the one line version doesn't work. Fails with " /usr/bin/python: No module named pyls" but if I copy the same darn line down one, with /bin/bash above, it works. Go figure.
Anyway, I'm done here.
Do PLEASE add this to the docs somewhere!
And how to config the monaco editor to use this server? Any demo about this? Thanks a lot.
@wufeng87 did you find a solution?
There are some examples of connecting monaco to PYLS here: https://github.com/palantir/python-jsonrpc-server#examples
The script installed by pip3 install python-language-server is broken.
$ pyls
Traceback (most recent call last):
File "/usr/local/bin/pyls", line 5, in <module>
from pyls.__main__ import main
ModuleNotFoundError: No module named 'pyls.__main__'