Skip to content

Pylance is using path to environment folder as interpreter path #20657

@karrtikr

Description

@karrtikr
[Info  - 1:44:07 PM] (21220) Pylance language server 2023.2.10 (pyright 01758105) starting
[Info  - 1:44:07 PM] (21220) Server root directory: /home/username/.vscode/extensions/ms-python.vscode-pylance-2023.2.10/dist
[Info  - 1:44:07 PM] (21220) Starting service instance "venvtest"
[Info  - 1:44:07 PM] (21220) No configuration file found.
[Info  - 1:44:07 PM] (21220) No pyproject.toml file found.
[Info  - 1:44:07 PM] (21220) Setting pythonPath for service "venvtest": "/home/username/Desktop/Tests/Python/venvtest/.venv"
[Warn  - 1:44:07 PM] (21220) stubPath /home/username/Desktop/Tests/Python/venvtest/typings is not a valid directory.
[Info  - 1:44:07 PM] (21220) Assuming Python platform Linux
[Info  - 1:44:07 PM] (21220) Searching for source files
[Info  - 1:44:07 PM] (21220) Found 1 source file
[Info  - 1:44:07 PM] (21220) Background analysis(1) root directory: /home/username/.vscode/extensions/ms-python.vscode-pylance-2023.2.10/dist
[Info  - 1:44:07 PM] (21220) Background analysis(1) started

Originally posted by @zebra-f in #20644 (comment)

Metadata

Metadata

Assignees

Labels

area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.author-verification-requestedIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugneeds PRReady to be worked onverifiedVerification succeeded

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions