lsp-python-ms icon indicating copy to clipboard operation
lsp-python-ms copied to clipboard

user search paths and interpreter search paths are different for auto-completions...

Open arunkhattri opened this issue 4 years ago • 3 comments

The following clients were selected based on priority: (server-id mspyls, priority 1)
Analysis cache path: /home/arunkhattri/.cache/Microsoft/Python Language Server
Microsoft Python Language Server version 1.0.0.0
Workspace root: /home/arunkhattri/gitlab/datacamp/dataScienceTrack/stats_thinking
GetCurrentSearchPaths /home/arunkhattri/.pyenv/versions/dataScience/bin/python3 
Interpreter search paths:
    /home/arunkhattri/.pyenv/versions/3.8.2/lib/python3.8
    /home/arunkhattri/.pyenv/versions/3.8.2/lib/python3.8/lib-dynload
    /home/arunkhattri/.pyenv/versions/dataScience/lib/python3.8/site-packages
User search paths:
Initializing for /home/arunkhattri/.pyenv/versions/dataScience/bin/python3

Above is from initial lines of *lsp-log*.

I suppose because of this i am not getting completion candidates for numpy, pandas etc....

In inferior python auto-completion is perfect, however in editor story is different...

How can i add site-packages also in user search path ???

arunkhattri avatar Jul 08 '20 15:07 arunkhattri

Did you check https://github.com/microsoft/python-language-server/issues/1847?

seagle0128 avatar Jul 08 '20 16:07 seagle0128

In the inferior python auto completion is working perfectly for numpy. Issue is somehow it's not looking in site-packages whereas in case of inferior python it's looking in site-packages also...

in vscode autocompletion is perfect....

arunkhattri avatar Jul 08 '20 17:07 arunkhattri

Please provide more details for trouble shooting.

seagle0128 avatar Jul 09 '20 04:07 seagle0128