Skip to content

Reconsider changing default value of "python.terminal.activateEnvInCurrentTerminal" to true #19563

Description

@Gamrix

Environment data

  • Language Server version: 2022.7.40
  • OS and version: darwin x64
  • Python version (and distribution if applicable, e.g. Anaconda): Python 3.8.8, conda 4.13.0
  • python.analysis.indexing: null
  • python.analysis.typeCheckingMode: off

Repro Steps

  1. Have Anaconda, and create an anaconda venv that is not base (in addition to base
  2. Add the following to the workspace settings (get path from activating the env, then typingwhich python)
    {
    "python.defaultInterpreterPath": "/Users/[...]/anaconda3/envs/[your_env]/bin/python",
    }
  3. Restart VSCode to activate Anaconda
  4. Open a terminal window using View: Toggle Terminal, note how conda activate yourenv is run
  5. Close and reopen VSCode.

Expected behavior

When I restart VsCode, the previous environment is restored (or if not possible, the environment that is associated with the defaultInterpreterPath is restored)

Actual behavior

When I restart VSCode, the enviroment is not restored, and instead the base envirnoment is active.

Logs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

info-neededIssue requires more information from postertriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions