Skip to content

Select interpreter at workspace level doesn't have any effect #17854

Closed

Description

@rchiodo

Environment data

  • VS Code version: Latest insiders
  • Extension version (available under the Extensions sidebar): 2021.11.1382879425-dev
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): XXX

[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]

Expected behaviour

Selecting an interpreter at the workspace level would allow it to be used

Actual behaviour

Selecting an interpreter at the workspace level has no effect

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Create new workspace file
  2. Add a folder with python files in it to the workspace
  3. Run 'Select intepreter'
  4. Pick the 'workspace level' option
  5. Pick an interpreter
    Interpreter is not set in the UI:
    image
    Interpreter does not seem to be used when starting a terminal

Logs

python-output-log.txt

Activity

  1. added
    bug
    triage-needed
    on Oct 26, 2021
  2. added
    area-environments
    and removed
    triage-needed
    on Oct 27, 2021
  3. added
    investigating
    and removed on Oct 27, 2021
  4. karrtikr commented on Oct 27, 2021

    @karrtikr

    I'm unable to reproduce this issue.

    I think your workspace folder might have d:\Source\Testing\storeEnv\Scripts\python.exe selected (which is an invalid interpreter) because of which settings at workspace level has no effect. Can you try clearing the workspace folder setting first using Python: Clear workspace interpreter command.

  5. added
    info-needed
    on Oct 27, 2021
  6. rchiodo commented on Oct 27, 2021

    @rchiodo
    Author

    Hmm, not reproing anymore. Even without the clear workspace interpreter.

  7. karrtikr commented on Oct 27, 2021

    @karrtikr

    I also noticed that sometimes when an interpreter is changed for a workspace folder, we also need to change the currently active editor file for the changes to reflect, it may also have been that.

  8. locked as resolved and limited conversation to collaborators on Nov 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-environmentsbuginfo-neededinvestigating

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions