Closed dpkatz closed 5 years ago
Actually, it looks like this is really an issue in pyls
that is just exacerbated by pyls-mypy
. The relevant issue for pyls
is palantir/python-language-server#431.
Closing this since the issue is elsewhere.
Thanks for updating this issue, I'll keep an eye on your report to the language server!
Hi -
when I use
pyls
andpyls-mypy
on a python file in Emacs everything works fine for a while. Documentation pops up, function signatures are shown inline, etc. Then, after perhaps a few dozen interactions I get the following (repeatable) error:Once that error is raised, I see it every time the cursor hits any interesting piece of code.
If I uninstall
pyls-mypy
from my python environment, the problem goes away.I can trigger this behavior even with a completely trivial file like this:
by just moving the cursor on and off of
sys
several times (which I assume triggers communication with the server each time as it pops up the module information).If I watch the number of python processes as a function of how I interact with the server I see something like this (taken from moving the cursor on and off of
sys
in the trivial file mentioned above):sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
sys
and so on until I got the error with 81 python processes running. The number 81 seems to be pretty consistent for me - I get that number of processes with different files and different interactions (e.g. module info, function info, displaying function signatures, etc.)
Any ideas?
Thanks.
Dan
\ \
Setup:
OS: macOS 10.13.6
Python: 3.7.0 Python package installer: pipenv Python packages: