Skip to content

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

Description

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.

Activity

  1. added
    bugIssue identified by VS Code Team member as probable bug
    area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.
    needs PRReady to be worked on
    and removed
    feature-requestRequest for new features or functionality
    triage-neededNeeds assignment to the proper sub-team
    on Nov 20, 2023
  2. locked as resolved and limited conversation to collaborators on Dec 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

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

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions