-
-
Notifications
You must be signed in to change notification settings - Fork 912
Lsp-mode does not loading extra paths #1037
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Please include client/server logs as per issue template. |
I just added. |
AFACS searchPaths are specified in the initialize request:
|
It's so weird. I see it's in searchPath but I still cannot resolve the modules in searchPath. Can you try the sample repo here? And modify either
Lsp-log
|
This does not do what you think it does - it identifies the files that lsp-mode will consider as part of the project and does not affect the files that the language server will scan. |
IMO mspyls does not resolve symlinks - this fixed the imports on my side. Based on that I am closing the issue. |
Ok, and yeah, I didn't manage to make pyls working previously. But I'm pretty sure I was able to resolve symlinked modules by modifying Anyway, what's the proper way to add files that lang server will scan? Thanks! |
mspyls can resolve symlinks according to the disscustion here. And if you try set PYTHONPATH and open the |
@ztlevi have you tried to turn on the tracing in VScode and compare it with the tracing in lsp-mode? |
@yyoncho I would like to, but how? |
C-S-p -> User settings -> type |
@yyoncho This is the only python trace option I found. After enable it, it doesn't provide as much information as lsp-mode does. But here is the log, and you will find
In this case, it might be an issue for |
the setting for python is actually called "Log Level" |
@yyoncho Not much information provided cuz it can successfully jump to definition.
|
You might need to add |
I updated the language server via |
That's so weird. Did you have the anything show in |
Is there anything come across your mind that might cause my issue? |
Here it is the log:
I also tested with |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I just updated lsp-mode and it seems no longer load user's libraries like
lsp-python-ms-extra-paths
. It happens right after the upgradation and I double checked I didn't updatelsp-python-ms
. Before, it works perfectly.I also tried pyls with
lsp-clients-python-library-directories
but still no extra libraries loaded.To Reproduce
Add some extra paths to
lsp-python-ms-extra-paths
. Put something there and try to load it from somewhere else. See iflsp-python-ms
can resolve it.Expected behavior
Able to jump to definition.
Which Language Server did you use
lsp-python-ms
OS
Linux
Error callstack
You can tell from the
lsp-log
. There is no user search paths exist.lsp-log:mypyls:91904
The text was updated successfully, but these errors were encountered: