Skip to content

Show notification when deactivate command is run in terminal #22121

Description

@karrtikr

Ref: #20950

Deactivate command is broken for venv when in pythonTerminalEnvVarActivation experiment #22037:

image

Investigate whether it's possible to detect when a "deactivate" command is run and show a notification guiding users to the workaround for their shell: #22037 (comment).

Activity

  1. karrtikr commented on Oct 1, 2023

    @karrtikr
    Author

    microsoft/vscode#145234 could be the long term solution, we can either use it to reliably detect when a deactivate command is run with its output or we can use it to apply the workaround itself and remove the notification.

    We should at least be able to remove part of the workaround which initializes the variables: #22037 (comment).

  2. karrtikr commented on Oct 1, 2023

    @karrtikr
    Author

    Notification:

    Deactivating virtual environments may not work by default due to a technical limitation in our activation approach, but it can be resolved with a few simple steps.
    [See Instructions] [Don't Show Again]

  3. karrtikr commented on Oct 2, 2023

    @karrtikr
    Author

    Add wiki for it: https://aka.ms/AAmx2ft

  4. karrtikr commented on Oct 2, 2023

    @karrtikr
    Author

    "deactivate" not working by default is a limitation of our new approach to activate terminals. To fix this the following script needs to be added to any of the init scripts for the shell you're using:

    Tip: Clicking the "Edit <script>" button on the notification automatically does this editing for you.

    Bash


    • Download the deactivate script into say, ~/.vscode-python directory.

    • Edit your ~/.bashrc file to add the following, you can run code ~/.bashrc in bash to open the file in VS Code:

      # >>> VSCode venv deactivate hook >>>
      source <path_to_dir>/deactivate
      # <<< VSCode venv deactivate hook <<<

      where <path_to_dir> is the directory where you downloaded the deactivate script.

    • For example, if path to directory was ~/.vscode-python:

      image


    Powershell


    • Download the deactivate.ps1 script into say, ~/.vscode-python directory.

    • Edit your PowerShell profile to add the following, you can run code $Profile in pwsh to open (or if need be, create) the file in VS Code:

      # >>> VSCode venv deactivate hook >>>
      & "<path_to_dir>/deactivate.ps1"
      # <<< VSCode venv deactivate hook <<<

      where <path_to_dir> is the directory where you downloaded the deactivate script.

    • For example, if path to directory was ~/.vscode-python:

      image


    Zsh


    • Download the deactivate script into say, ~/.vscode-python directory.

    • Edit your ~/.zshrc file to add the following, you can run code ~/.zshrc in zsh to open the file in VS Code:

      # >>> VSCode venv deactivate hook >>>
      source <path_to_dir>/deactivate
      # <<< VSCode venv deactivate hook <<<

      where <path_to_dir> is the directory where you downloaded the deactivate script.

    • For example, if path to directory was ~/.vscode-python:

      image


    Fish


    • Download the deactivate.fish script into say, ~/.vscode-python directory.

    • Edit your config.fish file to add the following, you can run code $__fish_config_dir/config.fish in fish to open the file in VS Code:

      # >>> VSCode venv deactivate hook >>>
      source <path_to_dir>/deactivate.fish
      # <<< VSCode venv deactivate hook <<<

      where <path_to_dir> is the directory where you downloaded the deactivate script.

    • For example, if path to directory was ~/.vscode-python:

      image


    Csh


    • Download the deactivate.csh script into say, ~/.vscode-python directory.

    • Edit your ~/.cshrc file to add the following, you can run code ~/.cshrc in csh to open the file in VS Code:

      # >>> VSCode venv deactivate hook >>>
      source <path_to_dir>/deactivate.csh
      # <<< VSCode venv deactivate hook <<<

      where <path_to_dir> is the directory where you downloaded the deactivate script.

    • For example, if path to directory was ~/.vscode-python:

      image


    Other shells


    • Use default script for the OS:
      • If on Windows, use the script under Powershell category.
      • Otherwise, use the script under Bash category.
    • Add the script at the end of corresponding initialization script for your shell.

    Make sure to restart the shell after editing your script, reloading VS Code will not work to apply this change.

    Why it works:

    In the new approach, we do not run <venv>/<bin>/activate script which traditionally registers the deactivate shell hook. Hence we need to add it manually to shell initialization script (~/.bashrc for example) which is executed automatically when a terminal starts.

    Alternative solution:

    Turn off auto-activation: Set "python.terminal.activateEnvironment": false and reopen the shells.

  5. removed
    needs spikeLabel for issues that need investigation before they can be worked on.
    on Oct 4, 2023
  6. karrtikr commented on Oct 5, 2023

    @karrtikr
    Author
    Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

    2023-10-05 10:12:06.326 [info] Experiment 'pythonTerminalEnvVarActivation' is active
    2023-10-05 10:12:06.326 [info] Experiment 'pythonaa' is active
    2023-10-05 10:12:06.335 [info] Experiment 'pythonPromptNewFormatterExt' is active
    2023-10-05 10:12:06.335 [info] Experiment 'pythonPromptNewToolsExt' is active
    2023-10-05 10:12:06.335 [info] Experiment 'pythonSurveyNotification' is active
    2023-10-05 10:12:06.335 [info] Experiment 'pythonTestAdapter' is active
    2023-10-05 10:12:06.335 [debug] Getting roots
    2023-10-05 10:12:06.335 [debug] Getting roots
    2023-10-05 10:12:06.335 [debug] Found roots
    2023-10-05 10:12:06.335 [debug] Start watching file for changes /home/brettcannon/.conda/environments.txt
    2023-10-05 10:12:06.335 [debug] Start watching: /home/brettcannon/.conda with pattern environments.txt using VSCode API
    2023-10-05 10:12:06.335 [debug] Found roots
    2023-10-05 10:12:06.335 [debug] Start watching root /home/brettcannon/Repositories/python/cpython for globs ["python","*/python","*/bin/python"]
    2023-10-05 10:12:06.335 [debug] Start watching: /home/brettcannon/Repositories/python/cpython with pattern python using VSCode API
    2023-10-05 10:12:06.335 [debug] Start watching: /home/brettcannon/Repositories/python/cpython with pattern */python using VSCode API
    2023-10-05 10:12:06.336 [debug] Start watching: /home/brettcannon/Repositories/python/cpython with pattern */bin/python using VSCode API
    2023-10-05 10:12:06.336 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"wsl_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:06.336 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"wsl_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:06.336 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"wsl_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:06.336 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:06.336 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"wsl_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:06.336 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"wsl_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:06.336 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:06.336 [debug] Waiting for test server to start...
    2023-10-05 10:12:06.336 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:06.336 [debug] VS Code was not launched from the command line, not selecting activated interpreter
    2023-10-05 10:12:06.336 [info] Test server listening.
    2023-10-05 10:12:06.336 [debug] Test server started.
    2023-10-05 10:12:06.336 [debug] Needed to validate /home/brettcannon/Repositories/python/cpython/.venv/bin/python with latest info
    2023-10-05 10:12:06.336 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:12:06.336 [info] Python interpreter path: ./.venv/bin/python
    2023-10-05 10:12:06.336 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:12:06.336 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:12:06.336 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:12:06.431 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:06.431 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"wsl_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:06.431 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"wsl_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:06.431 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:06.431 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"wsl_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:06.431 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"wsl_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:06.431 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:06.431 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"wsl_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:06.431 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"wsl_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:06.431 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:06.453 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:06.694 [debug] Clearing context for python dependencies not installed: /home/brettcannon/Repositories/python/cpython/Tools/wasm/wasi.py
    2023-10-05 10:12:07.518 [debug] Activating environments in terminal is disabled for /home/brettcannon/Repositories/python/cpython/Tools/wasm/wasi.py
    2023-10-05 10:12:07.519 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:12:07.521 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:12:07.522 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:12:13.736 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:12:13.848 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:12:13.921 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:12:14.107 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:12:14.108 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:12:14.108 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:12:14.110 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:12:14.110 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:12:14.110 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:12:14.110 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:12:14.111 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:12:14.111 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:12:14.143 [debug] Clearing context for python dependencies not installed: /home/brettcannon/Repositories/python/cpython/Tools/wasm/wasi.py
    2023-10-05 10:12:17.288 [debug] Extension ms-python.vscode-pylance accessed onDidChangeActiveEnvironmentPath with args: undefined
    2023-10-05 10:12:17.322 [debug] Extension ms-python.vscode-pylance accessed onDidEnvironmentVariablesChange with args: undefined
    2023-10-05 10:12:20.154 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:12:20.173 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:12:20.202 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:12:20.211 [debug] Clearing context for python dependencies not installed: /home/brettcannon/Repositories/python/cpython/Tools/wasm/wasi.py
    2023-10-05 10:12:24.806 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:12:24.806 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:12:24.807 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:12:25.009 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:12:25.224 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:12:25.234 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:12:25.237 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:12:25.237 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:12:25.238 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:12:25.344 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:12:25.382 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:12:25.396 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:12:25.745 [debug] Clearing context for python dependencies not installed: /home/brettcannon/Repositories/python/cpython/Tools/wasm/wasi.py
    2023-10-05 10:12:26.015 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:12:26.017 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:12:26.018 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:12:26.052 [debug] Clearing context for python dependencies not installed: /home/brettcannon/Repositories/python/cpython/Tools/wasm/wasi.py
    2023-10-05 10:12:27.990 [debug] Clearing context for python dependencies not installed: /home/brettcannon/Repositories/python/cpython/Tools/wasm/wasi.py
    2023-10-05 10:12:33.968 [info] Starting Pylance language server.
    2023-10-05 10:12:33.990 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:12:33.998 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:12:34.001 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:12:34.017 [debug] [object Object]. Shell identified as undefined 
    2023-10-05 10:12:34.017 [debug] Shell path '/home/linuxbrew/.linuxbrew/bin/fish', base path '/home/linuxbrew/.linuxbrew/bin/fish'
    2023-10-05 10:12:34.019 [debug] Shell path identified as shell 'fish'
    2023-10-05 10:12:34.019 [debug] Terminal shell path '/home/linuxbrew/.linuxbrew/bin/fish' identified as shell 'fish'
    2023-10-05 10:12:34.020 [debug] [object Object]. Shell identified as fish 
    2023-10-05 10:12:34.020 [debug] Shell identified as 'fish'
    2023-10-05 10:12:34.023 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:12:34.024 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:12:34.024 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:12:34.027 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"wsl_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:34.027 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"wsl_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:34.027 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/home/brettcannon/Repositories/python/cpython"-Arg-Separator-undefined
    2023-10-05 10:12:34.113 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:12:34.113 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:12:34.151 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:12:34.151 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:12:34.222 [debug] Extension ms-python.vscode-pylance accessed getActiveEnvironmentPath with args: undefined
    2023-10-05 10:12:34.229 [debug] Extension ms-python.vscode-pylance accessed resolveEnvironment with args: {"id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","path":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python"}
    2023-10-05 10:12:34.240 [debug] Extension ms-python.vscode-pylance accessed getActiveEnvironmentPath with args: undefined
    2023-10-05 10:12:34.244 [debug] Extension ms-python.vscode-pylance accessed getEnvironmentVariables with args: undefined
    2023-10-05 10:12:34.252 [debug] Extension ms-python.vscode-pylance accessed resolveEnvironment with args: {"id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","path":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python"}
    2023-10-05 10:12:42.380 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:12:42.381 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:12:42.381 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
    2023-10-05 10:12:42.420 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:12:42.420 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:12:42.421 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:12:42.421 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:12:42.423 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:12:42.424 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:12:42.424 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:12:42.440 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
    2023-10-05 10:12:51.390 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
    2023-10-05 10:14:04.560 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:14:04.561 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:14:04.561 [debug] Clearing context for python dependencies not installed: /home/brettcannon/.vscode-server-insiders/data/logs/20231005T101114/exthost1/ms-python.python/Python.log
    2023-10-05 10:14:04.573 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:14:04.583 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:14:04.586 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:14:04.587 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:14:04.590 [debug] Cached data exists KeyPrefix=Cache_Method_Output_E.ensureEnvironmentContainsPython-Args="/home/brettcannon/Repositories/python/cpython/.venv/bin/python"-Arg-Separator-undefined
    2023-10-05 10:14:04.606 [debug] Clearing context for python dependencies not installed: /home/brettcannon/.vscode-server-insiders/data/logs/20231005T101114/exthost1/ms-python.python/Python.log
    2023-10-05 10:15:22.922 [debug] Clearing context for python dependencies not installed: /home/brettcannon/.vscode-server-insiders/data/logs/20231005T101114/exthost1/ms-python.python/Python.log
    2023-10-05 10:15:23.191 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:15:23.266 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:15:23.309 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:15:23.322 [debug] Clearing context for python dependencies not installed: /home/brettcannon/.vscode-server-insiders/data/logs/20231005T101114/exthost1/ms-python.python/Python.log
    2023-10-05 10:15:24.479 [debug] Clearing context for python dependencies not installed: /home/brettcannon/.vscode-server-insiders/data/logs/20231005T101114/exthost1/ms-python.python/Python.log
    2023-10-05 10:15:35.015 [debug] Clearing context for python dependencies not installed: /home/brettcannon/.vscode-server-insiders/data/logs/20231005T101114/exthost1/ms-python.python/Python.log
    2023-10-05 10:15:35.458 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:15:35.475 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:15:35.479 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:15:35.504 [debug] Clearing context for python dependencies not installed: /home/brettcannon/.vscode-server-insiders/data/logs/20231005T101114/exthost1/ms-python.python/Python.log
    2023-10-05 10:15:35.971 [debug] Clearing context for python dependencies not installed: /home/brettcannon/.vscode-server-insiders/data/logs/20231005T101114/exthost1/ms-python.python/Python.log
    2023-10-05 10:15:36.156 [debug] Clearing context for python dependencies not installed: /home/brettcannon/.vscode-server-insiders/data/logs/20231005T101114/exthost1/ms-python.python/Python.log
    2023-10-05 10:15:36.280 [debug] Clearing context for python dependencies not installed: /home/brettcannon/.vscode-server-insiders/data/logs/20231005T101114/exthost1/ms-python.python/Python.log
    2023-10-05 10:15:36.388 [debug] Clearing context for python dependencies not installed: /home/brettcannon/.vscode-server-insiders/data/logs/20231005T101114/exthost1/ms-python.python/Python.log
    2023-10-05 10:15:36.609 [debug] Clearing context for python dependencies not installed: /home/brettcannon/.vscode-server-insiders/data/logs/20231005T101114/exthost1/ms-python.python/Python.log
    2023-10-05 10:15:38.398 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:15:38.513 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:15:38.667 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:15:38.696 [debug] Clearing context for python dependencies not installed: /home/brettcannon/.vscode-server-insiders/data/logs/20231005T101114/exthost1/ms-python.python/Python.log
    2023-10-05 10:15:40.281 [debug] Clearing context for python dependencies not installed: /home/brettcannon/.vscode-server-insiders/data/logs/20231005T101114/exthost1/ms-python.python/Python.log
    2023-10-05 10:15:40.653 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:15:40.654 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:15:40.657 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:15:40.658 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:15:40.659 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:15:40.659 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:15:40.689 [debug] Clearing context for python dependencies not installed: /home/brettcannon/.vscode-server-insiders/data/logs/20231005T101114/exthost1/ms-python.python/Python.log
    2023-10-05 10:15:40.747 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:15:40.764 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:15:40.769 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:15:40.796 [debug] Clearing context for python dependencies not installed: /home/brettcannon/.vscode-server-insiders/data/logs/20231005T101114/exthost1/ms-python.python/Python.log
    2023-10-05 10:15:41.611 [debug] Clearing context for python dependencies not installed: /home/brettcannon/.vscode-server-insiders/data/logs/20231005T101114/exthost1/ms-python.python/Python.log
    2023-10-05 10:16:14.396 [debug] Clearing context for python dependencies not installed: undefined
    2023-10-05 10:16:14.403 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:16:14.403 [debug] Clearing context for python dependencies not installed: /home/brettcannon/Repositories/python/cpython/Tools/wasm/wasi.py
    2023-10-05 10:16:14.409 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:16:14.413 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:16:14.425 [debug] Cached data exists KeyPrefix=Cache_Method_Output_E.ensureEnvironmentContainsPython-Args="/home/brettcannon/Repositories/python/cpython/.venv/bin/python"-Arg-Separator-{"uri":{"$mid":1,"fsPath":"/home/brettcannon/Repositories/python/cpython","external":"file:///home/brettcannon/Repositories/python/cpython","path":"/home/brettcannon/Repositories/python/cpython","scheme":"file"},"name":"cpython","index":0}
    2023-10-05 10:16:14.429 [debug] Clearing context for python dependencies not installed: /home/brettcannon/Repositories/python/cpython/Tools/wasm/wasi.py
    2023-10-05 10:16:16.936 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:16:16.941 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:16:16.947 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:16:16.989 [debug] Clearing context for python dependencies not installed: /home/brettcannon/Repositories/python/cpython/Tools/wasm/wasi.py
    2023-10-05 10:16:18.556 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
    2023-10-05 10:16:18.556 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
    2023-10-05 10:16:18.560 [debug] Found cached env for /home/brettcannon/Repositories/python/cpython/.venv/bin/python
    2023-10-05 10:16:18.561 [debug] Resolved /home/brettcannon/Repositories/python/cpython/.venv/bin/python from cache: {"name":".venv","location":"/home/brettcannon/Repositories/python/cpython/.venv","kind":"virt-venv","executable":{"filename":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","sysPrefix":"/home/brettcannon/Repositories/python/cpython/.venv","ctime":1696525413034,"mtime":1696525413034},"searchLocation":{"$mid":1,"path":"/home/brettcannon/Repositories/python/cpython/.venv","scheme":"vscode-remote"},"display":"Python 3.11.5 ('.venv': venv)","version":{"major":3,"minor":11,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"3.11.5 (main, Aug 31 2023, 07:57:41) [GCC]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/brettcannon/Repositories/python/cpython/.venv/bin/python","detailedDisplayName":"Python 3.11.5 ('.venv': venv)"}
    2023-10-05 10:16:18.563 [debug] Cached data exists KeyPrefix=Cache_Method_Output_E.ensureEnvironmentContainsPython-Args="/home/brettcannon/Repositories/python/cpython/.venv/bin/python"-Arg-Separator-undefined
    

  7. karrtikr commented on Oct 5, 2023

    @karrtikr
    Author

    Bugbash feedback:

    • Have a button which opens init script (~/.bashrc for example) and inserts the source ~/deactivate without saving the file
    • Edit "Learn more" to contain screenshots to visually indicate how things will look like after script is inserted
    • Remove option of editing .bashrc directly to put the contents as that is more susceptible to errors which we can't fix later
    • Address feedback from Eleanor regarding the text, and seek further feedback from the PMs!
  8. karrtikr commented on Oct 14, 2023

    @karrtikr
    Author

    Brett Cannon (@brettcannon) Your log seems to contain a line:

     Activating environments in terminal is disabled for /home/brettcannon/Repositories/python/cpython/Tools/wasm/wasi.py
    

    indicating "python.terminal.activateEnvironment" setting was set to false for your workspace, which is why activation didn't work. 🙂

  9. karrtikr commented on Oct 18, 2023

    @karrtikr
    Author

    TODO: Add a special variable to indicate whether shell integration is active.

  10. changed the title [-]Spike: Show notification when deactivate command is run in terminal[/-] [+]Show notification when deactivate command is run in terminal[/+] on Oct 21, 2023
  11. vv-monsalve commented on Oct 31, 2023

    @vv-monsalve

    To fix this the following script needs to be added to any of the init scripts for the shell you're using:

    Thank you! This finally worked to restore the excellent "deactivate" option.

    Couldn't the new approach to activate terminals be optional?
    For many reasons, I often use different environments, and having the possibility to activate/deactivate them at will was an amazing option in VSCode. It used to allow, for example, the development of certain projects under different sets of dependencies, e.g. to test tools under development.

  12. karrtikr commented on Oct 31, 2023

    @karrtikr
    Author

    All these things should be possible with the new approach as well. If you need more guidance, please create a new issue using Python: Report Issue command and we can help you do that for your case.

  13. vv-monsalve commented on Nov 1, 2023

    @vv-monsalve

    Thank you. I'll keep using it with the added deactivate script and see from there. I'll create a new issue if needed.

  14. karrtikr commented on Nov 8, 2023

    @karrtikr
    Author

    #22448 solves this without the need for a notification or altering .bashrc.

  15. locked as resolved and limited conversation to collaborators on Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions