Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

ClassifyPaths mis-classifies on Linux #1324

Closed
@jakebailey

Description

@jakebailey
Starting Microsoft Python language server.
[Info  - 2:43:45 PM] Analysis cache path: /home/jake/.cache/Microsoft/Python Language Server
[Info  - 2:43:45 PM] GetCurrentSearchPaths /home/jake/work/testenv/venv/bin/python3 
[Info  - 2:43:45 PM] Interpreter search paths:
[Info  - 2:43:45 PM]     /tmp/2mbb5rqp.3ej
[Info  - 2:43:45 PM]     /usr/lib/python3.7
[Info  - 2:43:45 PM]     /usr/lib/python3.7/lib-dynload
[Info  - 2:43:45 PM] User search paths:
[Info  - 2:43:45 PM]     /home/jake/work/testenv/venv/lib/python3.7/site-packages
[Info  - 2:43:46 PM] Microsoft Python Language Server version 1.0.0.0
[Info  - 2:43:46 PM] Initializing for /home/jake/work/testenv/venv/bin/python3

The /tmp folder should not make it into the search paths. And on Linux, thanks to symlinks, the venv's site-packages are not underneath any stdlib paths, so items of type site need to explicitly be taken as interpreter.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions