Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

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

Open
arunkhattri opened this issue Jul 8, 2020 · 3 comments

Comments

@arunkhattri
Copy link

arunkhattri commented Jul 8, 2020

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 ???

@seagle0128
Copy link
Collaborator

Did you check microsoft/python-language-server#1847?

@arunkhattri
Copy link
Author

arunkhattri commented Jul 8, 2020

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....

@seagle0128
Copy link
Collaborator

Please provide more details for trouble shooting.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants