Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Code completion doesn't work when Jedi is used without a default activated environment #22495

Copy link
Copy link
Closed
@johnhany97

Description

@johnhany97
Issue body actions

Context

When running the Python language server backed by Jedi, I've found that selecting a different Python interpreter from a different environment doesn't yield any code completions.

However, if I were to run the following commands before launching VSCode:

$ conda activate custom_env
$ code

then custom_env's Python interpreter would be picked up successfully.

Proposal

As proposed in #22466, we could look to leverage environmentPath (ref) in the analysis options to avoid the current behaviour where Jedi would simply fallback to the default activated environment.

Metadata

Metadata

Assignees

Labels

area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugverifiedVerification succeededVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.