Open fakedrake opened 1 year ago
I work with several editable packages while using this server, so I don't think this is correct.
Most servers require the workspace folders to be specified in the initialize
request (in the workspaceFolders
property) for project-wide functionality to work. I would expect this to be the case with pylsp
also.
So try opening a folder as a project instead of individual files if your editor/LSP allows that.
The problem is fairly straightforward:
pylsp
can't deal with editable packages. To create an environment that reproduces my problem:I open
script.py
from my editor and try to jump to the definition with my cursor onjaxtyping
, but it claims it can't find the definition even though python is demonstrably aware of the package.the relevant parts of my editor log:
I haven't used python in many years, so I don't know much about
pylsp
but this seems like a very trivial use case, so I am inclined to believe that it is not a bug but an error on my part. That said, I went through the docs and couldn't find anything that relates to my problem.