Open chaoflow opened 3 years ago
Please see the server options with
python -m pyls --help
@ccordoba12 Thank you for the fast reply!
It works now with the following:
.doom.d/config.el:
(use-package lsp-mode
:custom
(lsp-pyls-server-command '("pyls" "--log-file" "/tmp/pyls.log"))
(lsp-pyls-configuration-sources ["flake8" "pycodestyle"]))
The error was caused by having a comma in the last line which let to "{',': 'pycodestyle'}" being pass as a config source to pyls.
I think such an error should be caught during server startup and result in an "invalid config source" error instead.
We don't have time to work on this, so it's up to you if you want to submit a pull request for it.
Using (doom) emacs with lsp-mode, I see the following message when moving the cursor onto code:
python-language-server is installed via repo checkout in develop mode into project venv:
Emacs Messages buffer shows:
How do I debug this? Can I tell python-language-server to verbosely log to some file? If not, could you point me to the function handling requests, to try/except in there?
Any pointers greatly appreciated.