Skip to content

Kernel detection loop which causes high resource use #25815

Closed

Description

@Glampi42

Type: Bug

General description

When opening an .ipynb document in vscode in the Explorer menu, it causes the kernel detection to run indefinitely, even though the kernel was already detected in the previous sessions and the Python code in the document can run just fine. Also, I have noticed that this kernel detection causes significant resource use.

Steps to reproduce

The following video shows me reproducing the issue:
https://youtu.be/CRF52A-vemc

Here are the steps I took in that video:
(1.) Create an .ipynb Jupyter Notebook project
(2.) Create a Python .venv in the folder of that project
3. Open that folder in vscode
4. Open the Explorer side-menu and open the .ipynb document there
5. Done. Observe the kernel detection indicator in the top-right corner

Detailed description

As one can see in the video, the reload arrows flickers, which indicates that vscode seemingly fails to detect the already set-up Python venv kernel. In my example, the .ipynb already contains Python code that got executed in previous sessions. When I create a new cell with new code, f.e. print("Test"), it runs and shows Test, meaning that the kernel is functioning. Even after executing the new cell, the flickering doesn't stop.

The action that causes this bug, as I have figured out, is opening the .ipynb document via the Explorer menu. When I instead closed vscode with the .ipynb document tab open before closing vscode, and then reopened vscode again, the aforementioned flickering didn't happen. So, the issue can be avoided if one first opens the .ipynb document via the Explorer menu, then closes vscode, and then opens it again, since the .ipynb document tab will be open on second launch. This doesn't solve the issue permanently, however: every time I restart vscode with that tab closed and open the .ipynb document with the Explorer menu, the bug happens again. I also experienced that bug happening even when the tab was open at vscode start, but I can't reliably reproduce it.

In addition to the visual annoyance that this bug causes, I have also observed significant resource usage. When I open the folder from the video above in vscode with 3 tabs (.tex, .ipynb and .pdf) open, the CPU usage is somewhere around 2% (see figures 1, 2):

Image Image

However, when I open the folder in vscode with the .ipynb tab closed before I closed vscode, and then when I repeat the Steps to reproduce, the CPU is used at about 20%, with the heaviest processes being from vscode (see figures 3, 4):

Image Image

This implies that this kernel detection loop isn't just a visual issue that causes flickering of the loading arrows, but is actually trying to locate the kernel and uses a lot of resources for that. To repeat myself, the kernel actually works fine both when the .ipynb document is launched with the Explorer menu, as well when the tab is already open at vscode launch.

Extension version: 2025.10.2026010601
VS Code version: Code 1.109.5 (072586267e68ece9a47aa43f8c108e0dcbf44622, 2026-02-19T19:43:32.382Z)
OS version: Linux x64 6.17.0-14-generic snap
Modes:

System Info
Item Value
CPUs 13th Gen Intel(R) Core(TM) i9-13900H (20 x 754)
GPU Status 2d_canvas: unavailable_software
GPU0: VENDOR= 0xffff [Google Inc. (Google)], DEVICE=0xffff [ANGLE (Google, Vulkan 1.3.0 (SwiftShader Device (Subzero) (0x0000C0DE)), SwiftShader driver-5.0.0)], DRIVER_VENDOR=SwANGLE, DRIVER_VERSION=5.0.0 ACTIVE
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off
webnn: unavailable_software
Load (avg) 2, 1, 0
Memory (System) 15.24GB (9.73GB free)
Process Argv --no-sandbox /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 251 --ozone-platform=x11 --crash-reporter-id f5c3b367-4b45-4c56-9182-ba053bd281d0
Screen Reader no
VM 0%
DESKTOP_SESSION plasma
XDG_CURRENT_DESKTOP KDE
XDG_SESSION_DESKTOP KDE
XDG_SESSION_TYPE wayland
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
82j33506:31327384
6abeh943:31336334
envsactivate1:31464700
cloudbuttont:31379625
aihoversummaries_t:31453032
3efgi100_wstrepl:31403338
use-responses-api:31390855
ec5jj548:31422691
cp_cls_t_966_ss:31454198
4je02754:31466945
a5gib710:31434435
7a04d226_do_not_restore_last_panel_session:31438103
cp_cls_c_1081:31454833
a43f0575b:31442825
e9c30283:31461165
idci7584:31464702
edit_mode_hidden:31461530
864ei723_large_tool_results_to_disk:31460878
showingstats:31457202
i54ji102:31458073
chat:31457767

Activity

  1. Glampi42 commented on Feb 26, 2026

    @Glampi42
    Author

    Update: I have found another reproducible way to trigger the bug described above.

    Steps to reproduce

    (-1.) Create a folder with a .tex and a .ipynb document
    (0.) Create a venv Python envo in that folder

    1. Open the folder in vscode; open both .tex and .ipynb documents in the Explorer menu
    2. Select the .tex document tab as the active tab
    3. Close vscode
    4. Open the folder in vscode
    5. Switch to the .ipynb document tab
    6. Done. The bug happens, and the CPU usage rises

    What doesn't cause the bug:

    1. Open the folder in vscode; open both .tex and .ipynb documents in the Explorer menu
    2. Select the .ipynb document tab as the active tab
    3. Close vscode
    4. Open the folder in vscode

    So, when the .ipynb document is the one that is active before closing vscode, then the bug doesn't happen. However, if one starts vscode with a different tab being active before closing vscode in the previous session, and then switches to the .ipynb document tab, the kernel detection loops.

  2. david-cortes commented on Mar 7, 2026

    @david-cortes

    For me a similar issue happens also when restoring saved interactive windows, right when launching vscode.

  3. eleanorjboyd commented on Mar 11, 2026

    @eleanorjboyd
    Member

    Thanks for the issue report! To help us investigate, could you please include logs from the Python output and the Jupyter channel? Here's how to get them for python (same process but different output panel for Jupyter:

    🐍 How to Get Logs from the Python Output Channel

    1. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on Mac).
    2. Run the command: Developer: Set Log Level…
      • Select Trace.
    3. Reproduce the issue.
    4. Open the Output panel (you can do this via the Command Palette: View: Toggle Output).
    5. In the Output panel dropdown, select Python.
    6. Copy the relevant logs and paste them here along with any error messages.

    Most likely root cause: An event feedback loop between the Jupyter extension's kernel resolution and the Python environments extension's onDidChangeEnvironments events. The resolve() method in venvManager.ts calls addEnvironment() which fires change events even if the environment already exists, potentially causing Jupyter to re-request resolution in a loop. Investigating this theory

  4. Glampi42 commented on Mar 12, 2026

    @Glampi42
    Author

    Python output panel logs:

    2026-03-12 17:10:47.722 [info] [test-by-project] Activating project-based testing mode
    2026-03-12 17:10:47.722 [info] [test-by-project] Discovering projects for workspace: /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241
    2026-03-12 17:10:47.722 [info] [test-by-project] Found 1 total Python projects from API
    2026-03-12 17:10:47.722 [info] [test-by-project] Filtered to 1 projects in workspace
    2026-03-12 17:10:47.722 [info] [test-by-project] Creating adapter for: Versuch 241 at file:///home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch%20241
    2026-03-12 17:10:47.867 [info] > pyenv which python
    2026-03-12 17:10:47.867 [info] cwd: ~/Documents/University/Praktikum/PAP2.2/Versuch 241
    2026-03-12 17:10:48.087 [info] Active interpreter [/home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241]:  /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:10:48.087 [info] [test-by-project] Registered 1 project(s) for /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241
    2026-03-12 17:10:48.089 [info] [test-by-project] Activated 1 project(s) for /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241
    2026-03-12 17:10:48.090 [info] [test-by-project] Subscribed to Python project changes
    2026-03-12 17:10:51.229 [info] > conda info --json
    2026-03-12 17:10:51.346 [info] Active interpreter [/home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/241_notebook.ipynb]:  /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:10:51.401 [info] > . "~/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/activate" && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2026.2.0-linux-x64/python_files/printEnvVariables.py
    2026-03-12 17:10:51.401 [info] shell: bash
    2026-03-12 17:10:51.406 [info] > . "~/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/activate" && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2026.2.0-linux-x64/python_files/printEnvVariables.py
    2026-03-12 17:10:51.406 [info] shell: bash
    2026-03-12 17:10:51.415 [info] > . "~/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/activate" && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2026.2.0-linux-x64/python_files/printEnvVariables.py
    2026-03-12 17:10:51.416 [info] shell: bash
    2026-03-12 17:10:59.779 [info] Starting Pylance language server.
    2026-03-12 17:10:59.781 [info] Active interpreter [/home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241]:  /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python3
    

    ^ seems nominal to me.

    Python Environments output panel logs:

    ...
    2026-03-12 17:14:01.657 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:14:01.658 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:14:01.660 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:14:01.661 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:14:01.662 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:14:01.663 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:14:01.664 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:14:01.665 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:14:01.666 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:14:01.667 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:14:01.669 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:14:01.671 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:14:01.672 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:14:01.674 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:14:01.675 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:14:01.676 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    ...
    

    ^ seems to resolve the environment non-stop.

    Jupyter output panel logs:

    Visual Studio Code (1.110.1, undefined, desktop)
    Jupyter Extension Version: 2025.10.2026030601.
    Python Extension Version: 2026.2.0.
    Python Environment Extension Version: 1.22.0.
    Pylance Extension Version: 2026.1.1.
    Platform: linux (x64).
    Home = /home/marko-havryshko
    Temp Storage folder ~/.config/Code/User/globalStorage/ms-toolsai.jupyter/version-2025.10.2026030601
    Workspace folder ~/Documents/University/Praktikum/PAP2.2/Versuch 241
    17:10:51.368 [info] Starting Kernel (Python Path: ~/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python, Venv, 3.13.7) for '~/Documents/University/Praktikum/PAP2.2/Versuch 241/241_notebook.ipynb' (disableUI=true)
    17:10:51.436 [info] Process Execution: ~/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python -m pip list
    17:10:51.444 [info] Process Execution: ~/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
    17:10:51.457 [info] Process Execution: ~/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python -m ipykernel_launcher --f=/run/user/1000/jupyter/runtime/kernel-v316ff0afd8164cb17640050ac0bfcd45cb17a5d2e.json
        > cwd: ~/Documents/University/Praktikum/PAP2.2/Versuch 241
    17:10:51.853 [info] Kernel successfully started
    17:10:51.862 [info] Process Execution: ~/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2025.10.2026030601-linux-x64/pythonFiles/printJupyterDataDir.py
    

    ^ doesn't produce logs non-stop like Python Environments does.

  5. Glampi42 commented on Mar 12, 2026

    @Glampi42
    Author

    The start of the Python Environments output panel log, before it starts the infinite loop:

    2026-03-12 17:19:14.779 [info] Python-envs extension version: 1.22.0
    2026-03-12 17:19:14.779 [info] 
    === Python Envs Configuration Levels ===
    2026-03-12 17:19:14.779 [info] {
      "section": "Python Envs Configuration Levels",
      "defaultEnvManager": {
        "workspaceFolderValue": "undefined",
        "workspaceValue": "undefined",
        "globalValue": "undefined",
        "defaultValue": "ms-python.python:venv"
      },
      "defaultPackageManager": {
        "workspaceFolderValue": "undefined",
        "workspaceValue": "undefined",
        "globalValue": "undefined",
        "defaultValue": "ms-python.python:pip"
      }
    }
    2026-03-12 17:19:14.779 [info] [pet] Starting Python Locator /home/marko-havryshko/.vscode/extensions/ms-python.vscode-python-envs-1.22.0-linux-x64/python-env-tools/bin/pet server
    2026-03-12 17:19:14.779 [info] [pet] configure: Sending configuration update: {"workspaceDirectories":["/home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241"],"environmentDirectories":["/home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/**/.venv"],"pipenvExecutable":"pipenv","poetryExecutable":"poetry","cacheDirectory":"/home/marko-havryshko/.config/Code/User/globalStorage/ms-python.vscode-python-envs/pythonLocator"}
    2026-03-12 17:19:14.958 [info] Discovered env: /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:19:14.995 [info] Discovered env: /usr/bin/python3
    2026-03-12 17:19:15.001 [info] [pet] Telemetry:  {"event":"RefreshPerformance","data":{"refreshPerformance":{"total":65,"breakdown":{"GlobalVirtualEnvs":20,"Locators":58,"Path":65,"Workspaces":17},"locators":{"Conda":45,"Homebrew":0,"LinuxGlobal":56,"PipEnv":0,"Pixi":0,"Poetry":0,"PyEnv":0,"Uv":0,"Venv":0,"VirtualEnv":0,"VirtualEnvWrapper":0}}}}
    2026-03-12 17:19:15.002 [info] Found venv environment: .venv (3.13.7)
    2026-03-12 17:19:15.010 [info] Discovered env: /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:19:15.021 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:19:15.028 [info] Python API: Changed environment from undefined to .venv (3.13.7) for: /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241
    2026-03-12 17:19:15.028 [info] Internal: Changed environment from undefined to .venv (3.13.7) for: /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241
    2026-03-12 17:19:15.058 [info] Discovered env: /usr/bin/python3
    2026-03-12 17:19:15.074 [info] Conda not found, turning off conda features. [Error: Conda not found
    	at F (/home/marko-havryshko/.vscode/extensions/ms-python.vscode-python-envs-1.22.0-linux-x64/dist/extension.js:2:586347)
    	at runNextTicks (node:internal/process/task_queues:65:5)
    	at process.processImmediate (node:internal/timers:453:9)
    	at async L (/home/marko-havryshko/.vscode/extensions/ms-python.vscode-python-envs-1.22.0-linux-x64/dist/extension.js:2:586472)
    	at async t.registerCondaFeatures (/home/marko-havryshko/.vscode/extensions/ms-python.vscode-python-envs-1.22.0-linux-x64/dist/extension.js:2:604805)
    	at async t.safeRegister (/home/marko-havryshko/.vscode/extensions/ms-python.vscode-python-envs-1.22.0-linux-x64/dist/extension.js:2:280272)
    	at async Promise.all (index 1)
    	at async Immediate.<anonymous> (/home/marko-havryshko/.vscode/extensions/ms-python.vscode-python-envs-1.22.0-linux-x64/dist/extension.js:2:727568)]
    2026-03-12 17:19:15.074 [info] [pet] Telemetry:  {"event":"RefreshPerformance","data":{"refreshPerformance":{"total":71,"breakdown":{"GlobalVirtualEnvs":14,"Locators":56,"Path":71,"Workspaces":6},"locators":{"Conda":52,"Homebrew":0,"LinuxGlobal":54,"PipEnv":0,"Pixi":0,"Poetry":0,"PyEnv":0,"Uv":0,"Venv":0,"VirtualEnv":0,"VirtualEnvWrapper":0}}}}
    2026-03-12 17:19:15.077 [info] Discovered env: /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:19:15.122 [info] Discovered env: /usr/bin/python3
    2026-03-12 17:19:15.135 [info] Pipenv not found
    2026-03-12 17:19:15.135 [info] Pipenv not found, turning off pipenv features. If you have pipenv installed in a non-standard location, set the "python.pipenvPath" setting.
    2026-03-12 17:19:15.135 [info] [pet] Telemetry:  {"event":"RefreshPerformance","data":{"refreshPerformance":{"total":58,"breakdown":{"GlobalVirtualEnvs":7,"Locators":47,"Path":58,"Workspaces":4},"locators":{"Conda":42,"Homebrew":0,"LinuxGlobal":42,"PipEnv":0,"Pixi":0,"Poetry":0,"PyEnv":0,"Uv":0,"Venv":0,"VirtualEnv":0,"VirtualEnvWrapper":0}}}}
    2026-03-12 17:19:15.141 [info] Discovered env: /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:19:15.434 [info] Discovered env: /usr/bin/python3
    2026-03-12 17:19:15.466 [info] Pyenv not found, turning off pyenv features.
    2026-03-12 17:19:15.467 [info] [pet] Telemetry:  {"event":"RefreshPerformance","data":{"refreshPerformance":{"total":63,"breakdown":{"GlobalVirtualEnvs":13,"Locators":50,"Path":63,"Workspaces":6},"locators":{"Conda":47,"Homebrew":0,"LinuxGlobal":49,"PipEnv":0,"Pixi":0,"Poetry":0,"PyEnv":0,"Uv":0,"Venv":0,"VirtualEnv":0,"VirtualEnvWrapper":0}}}}
    2026-03-12 17:19:15.526 [info] Discovered env: /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:19:15.528 [info] Discovered env: /usr/bin/python3
    2026-03-12 17:19:15.545 [info] Poetry not found, turning off poetry features.
    2026-03-12 17:19:15.546 [info] [interpreterSelection] Applying initial environment selection for 1 workspace folder(s)
    2026-03-12 17:19:15.550 [info] [pet] Telemetry:  {"event":"RefreshPerformance","data":{"refreshPerformance":{"total":70,"breakdown":{"GlobalVirtualEnvs":15,"Locators":59,"Path":70,"Workspaces":2},"locators":{"Conda":56,"Homebrew":0,"LinuxGlobal":58,"PipEnv":0,"Pixi":0,"Poetry":0,"PyEnv":0,"Uv":0,"Venv":0,"VirtualEnv":0,"VirtualEnvWrapper":0}}}}
    2026-03-12 17:19:15.554 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:19:15.558 [info] [interpreterSelection] Versuch 241: defaultInterpreterPath: 3.13.7.final.0 (source: defaultInterpreterPath)
    2026-03-12 17:19:15.559 [warning] [priorityChain:global] defaultInterpreterPath '${workspaceFolder}/.venv/bin/python3' contains unresolved variables, falling back to auto-discovery
    2026-03-12 17:19:15.561 [info] Python API: Changed environment from .venv (3.13.7) to defaultInterpreterPath: 3.13.7.final.0 for: /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241
    2026-03-12 17:19:15.561 [info] Internal: Changed environment from .venv (3.13.7) to defaultInterpreterPath: 3.13.7.final.0 for: /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241
    2026-03-12 17:19:15.573 [info] [interpreterSelection] global: Python 3.13.7 (source: autoDiscovery)
    2026-03-12 17:19:15.574 [info] Python API: Changed environment from undefined to Python 3.13.7 for: global
    2026-03-12 17:19:15.574 [info] Internal: Changed environment from undefined to Python 3.13.7 for: global
    2026-03-12 17:19:22.586 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:19:22.949 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:19:22.967 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    ...
    
  6. Glampi42 commented on Mar 12, 2026

    @Glampi42
    Author

    The logs above were made with info log level, didn't know it resets to the info-level every new session. Here is the start of Python Environments output panel logs in log level trace:

    2026-03-12 17:27:40.812 [info] Python-envs extension version: 1.22.0
    2026-03-12 17:27:40.812 [info] 
    === Python Envs Configuration Levels ===
    2026-03-12 17:27:40.812 [info] {
      "section": "Python Envs Configuration Levels",
      "defaultEnvManager": {
        "workspaceFolderValue": "undefined",
        "workspaceValue": "undefined",
        "globalValue": "undefined",
        "defaultValue": "ms-python.python:venv"
      },
      "defaultPackageManager": {
        "workspaceFolderValue": "undefined",
        "workspaceValue": "undefined",
        "globalValue": "undefined",
        "defaultValue": "ms-python.python:pip"
      }
    }
    2026-03-12 17:27:40.812 [info] [pet] Starting Python Locator /home/marko-havryshko/.vscode/extensions/ms-python.vscode-python-envs-1.22.0-linux-x64/python-env-tools/bin/pet server
    2026-03-12 17:27:40.812 [info] [pet] configure: Sending configuration update: {"workspaceDirectories":["/home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241"],"environmentDirectories":["/home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/**/.venv"],"pipenvExecutable":"pipenv","poetryExecutable":"poetry","cacheDirectory":"/home/marko-havryshko/.config/Code/User/globalStorage/ms-python.vscode-python-envs/pythonLocator"}
    2026-03-12 17:27:41.202 [info] Discovered env: /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:27:41.209 [info] Discovered env: /usr/bin/python3
    2026-03-12 17:27:41.215 [info] Pipenv not found
    2026-03-12 17:27:41.215 [info] Pipenv not found, turning off pipenv features. If you have pipenv installed in a non-standard location, set the "python.pipenvPath" setting.
    2026-03-12 17:27:41.219 [info] [pet] Telemetry:  {"event":"RefreshPerformance","data":{"refreshPerformance":{"total":64,"breakdown":{"GlobalVirtualEnvs":21,"Locators":57,"Path":64,"Workspaces":18},"locators":{"Conda":46,"Homebrew":0,"LinuxGlobal":56,"PipEnv":0,"Pixi":0,"Poetry":0,"PyEnv":0,"Uv":0,"Venv":0,"VirtualEnv":0,"VirtualEnvWrapper":0}}}}
    2026-03-12 17:27:41.228 [info] Discovered env: /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:27:41.268 [info] Discovered env: /usr/bin/python3
    2026-03-12 17:27:41.284 [info] Conda not found, turning off conda features. [Error: Conda not found
    	at F (/home/marko-havryshko/.vscode/extensions/ms-python.vscode-python-envs-1.22.0-linux-x64/dist/extension.js:2:586347)
    	at runNextTicks (node:internal/process/task_queues:65:5)
    	at process.processImmediate (node:internal/timers:453:9)
    	at async L (/home/marko-havryshko/.vscode/extensions/ms-python.vscode-python-envs-1.22.0-linux-x64/dist/extension.js:2:586472)
    	at async t.registerCondaFeatures (/home/marko-havryshko/.vscode/extensions/ms-python.vscode-python-envs-1.22.0-linux-x64/dist/extension.js:2:604805)
    	at async t.safeRegister (/home/marko-havryshko/.vscode/extensions/ms-python.vscode-python-envs-1.22.0-linux-x64/dist/extension.js:2:280272)
    	at async Promise.all (index 1)
    	at async Immediate.<anonymous> (/home/marko-havryshko/.vscode/extensions/ms-python.vscode-python-envs-1.22.0-linux-x64/dist/extension.js:2:727568)]
    2026-03-12 17:27:41.284 [info] [pet] Telemetry:  {"event":"RefreshPerformance","data":{"refreshPerformance":{"total":62,"breakdown":{"GlobalVirtualEnvs":15,"Locators":48,"Path":62,"Workspaces":9},"locators":{"Conda":43,"Homebrew":0,"LinuxGlobal":46,"PipEnv":0,"Pixi":0,"Poetry":0,"PyEnv":0,"Uv":0,"Venv":0,"VirtualEnv":0,"VirtualEnvWrapper":0}}}}
    2026-03-12 17:27:41.294 [info] Discovered env: /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:27:41.339 [info] Discovered env: /usr/bin/python3
    2026-03-12 17:27:41.353 [info] Pyenv not found, turning off pyenv features.
    2026-03-12 17:27:41.353 [info] [pet] Telemetry:  {"event":"RefreshPerformance","data":{"refreshPerformance":{"total":66,"breakdown":{"GlobalVirtualEnvs":12,"Locators":53,"Path":66,"Workspaces":6},"locators":{"Conda":44,"Homebrew":0,"LinuxGlobal":51,"PipEnv":0,"Pixi":0,"Poetry":0,"PyEnv":0,"Uv":0,"Venv":0,"VirtualEnv":0,"VirtualEnvWrapper":0}}}}
    2026-03-12 17:27:41.360 [info] Discovered env: /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:27:41.407 [info] Discovered env: /usr/bin/python3
    2026-03-12 17:27:41.419 [info] Poetry not found, turning off poetry features.
    2026-03-12 17:27:41.420 [info] [interpreterSelection] Applying initial environment selection for 1 workspace folder(s)
    2026-03-12 17:27:41.421 [info] [pet] Telemetry:  {"event":"RefreshPerformance","data":{"refreshPerformance":{"total":64,"breakdown":{"GlobalVirtualEnvs":14,"Locators":53,"Path":64,"Workspaces":7},"locators":{"Conda":42,"Homebrew":0,"LinuxGlobal":51,"PipEnv":0,"Pixi":0,"Poetry":0,"PyEnv":1,"Uv":0,"Venv":0,"VirtualEnv":0,"VirtualEnvWrapper":0}}}}
    2026-03-12 17:27:41.427 [info] Discovered env: /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:27:41.434 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:27:41.438 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:27:41.470 [info] Discovered env: /usr/bin/python3
    2026-03-12 17:27:41.474 [info] [interpreterSelection] Versuch 241: defaultInterpreterPath: 3.13.7.final.0 (source: defaultInterpreterPath)
    2026-03-12 17:27:41.474 [warning] [priorityChain:global] defaultInterpreterPath '${workspaceFolder}/.venv/bin/python3' contains unresolved variables, falling back to auto-discovery
    2026-03-12 17:27:41.476 [info] Python API: Changed environment from undefined to defaultInterpreterPath: 3.13.7.final.0 for: /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241
    2026-03-12 17:27:41.476 [info] Internal: Changed environment from undefined to defaultInterpreterPath: 3.13.7.final.0 for: /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241
    2026-03-12 17:27:41.486 [info] [interpreterSelection] global: Python 3.13.7 (source: autoDiscovery)
    2026-03-12 17:27:41.486 [info] Python API: Changed environment from undefined to Python 3.13.7 for: global
    2026-03-12 17:27:41.486 [info] Internal: Changed environment from undefined to Python 3.13.7 for: global
    2026-03-12 17:27:41.487 [info] [pet] Telemetry:  {"event":"RefreshPerformance","data":{"refreshPerformance":{"total":65,"breakdown":{"GlobalVirtualEnvs":12,"Locators":48,"Path":65,"Workspaces":7},"locators":{"Conda":43,"Homebrew":0,"LinuxGlobal":47,"PipEnv":0,"Pixi":0,"Poetry":0,"PyEnv":0,"Uv":0,"Venv":0,"VirtualEnv":0,"VirtualEnvWrapper":0}}}}
    2026-03-12 17:27:41.488 [info] Found venv environment: .venv (3.13.7)
    2026-03-12 17:27:41.490 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:27:41.496 [info] Python API: Changed environment from defaultInterpreterPath: 3.13.7.final.0 to .venv (3.13.7) for: /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241
    2026-03-12 17:27:41.496 [info] Internal: Changed environment from defaultInterpreterPath: 3.13.7.final.0 to .venv (3.13.7) for: /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241
    2026-03-12 17:28:08.314 [debug] Checking venv (ms-python.python:venv) for /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python3
    2026-03-12 17:28:08.314 [debug] Environment search directories: 1 paths
    2026-03-12 17:28:08.315 [debug] [pet] configure: No changes detected, skipping configuration update.
    2026-03-12 17:28:08.316 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.317 [debug] Using venv (ms-python.python:venv) to handle /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python3
    2026-03-12 17:28:08.672 [debug] Checking venv (ms-python.python:venv) for /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.672 [debug] Using venv (ms-python.python:venv) to handle /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.673 [debug] Checking venv (ms-python.python:venv) for /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python3
    2026-03-12 17:28:08.673 [debug] Environment search directories: 1 paths
    2026-03-12 17:28:08.673 [debug] [pet] configure: No changes detected, skipping configuration update.
    2026-03-12 17:28:08.698 [debug] Checking venv (ms-python.python:venv) for /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.698 [debug] Using venv (ms-python.python:venv) to handle /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.699 [debug] Checking venv (ms-python.python:venv) for /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.699 [debug] Using venv (ms-python.python:venv) to handle /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.703 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.712 [debug] Checking venv (ms-python.python:venv) for /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.712 [debug] Using venv (ms-python.python:venv) to handle /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.712 [debug] Checking venv (ms-python.python:venv) for /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.712 [debug] Using venv (ms-python.python:venv) to handle /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.717 [debug] Checking venv (ms-python.python:venv) for /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.717 [debug] Using venv (ms-python.python:venv) to handle /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.720 [debug] Using venv (ms-python.python:venv) to handle /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python3
    2026-03-12 17:28:08.720 [debug] Checking venv (ms-python.python:venv) for /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python3
    2026-03-12 17:28:08.721 [debug] Environment search directories: 1 paths
    2026-03-12 17:28:08.721 [debug] [pet] configure: No changes detected, skipping configuration update.
    2026-03-12 17:28:08.723 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.725 [debug] Checking venv (ms-python.python:venv) for /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.725 [debug] Checking venv (ms-python.python:venv) for /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.725 [debug] Using venv (ms-python.python:venv) to handle /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.726 [debug] Using venv (ms-python.python:venv) to handle /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.726 [debug] Checking venv (ms-python.python:venv) for /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.726 [debug] Using venv (ms-python.python:venv) to handle /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.728 [debug] Using venv (ms-python.python:venv) to handle /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python3
    2026-03-12 17:28:08.728 [debug] Checking venv (ms-python.python:venv) for /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python3
    2026-03-12 17:28:08.728 [debug] Environment search directories: 1 paths
    2026-03-12 17:28:08.729 [debug] [pet] configure: No changes detected, skipping configuration update.
    2026-03-12 17:28:08.730 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.731 [debug] Using venv (ms-python.python:venv) to handle /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python3
    2026-03-12 17:28:08.732 [debug] Checking venv (ms-python.python:venv) for /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python3
    2026-03-12 17:28:08.733 [debug] Environment search directories: 1 paths
    2026-03-12 17:28:08.733 [debug] [pet] configure: No changes detected, skipping configuration update.
    2026-03-12 17:28:08.735 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.736 [debug] Using venv (ms-python.python:venv) to handle /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python3
    2026-03-12 17:28:08.738 [debug] Checking venv (ms-python.python:venv) for /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python3
    2026-03-12 17:28:08.738 [debug] Environment search directories: 1 paths
    2026-03-12 17:28:08.738 [debug] [pet] configure: No changes detected, skipping configuration update.
    2026-03-12 17:28:08.740 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.742 [debug] Using venv (ms-python.python:venv) to handle /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python3
    2026-03-12 17:28:08.743 [debug] Checking venv (ms-python.python:venv) for /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python3
    2026-03-12 17:28:08.743 [debug] Environment search directories: 1 paths
    2026-03-12 17:28:08.744 [debug] [pet] configure: No changes detected, skipping configuration update.
    2026-03-12 17:28:08.746 [info] Resolved Python Environment /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python
    2026-03-12 17:28:08.749 [debug] Using venv (ms-python.python:venv) to handle /home/marko-havryshko/Documents/University/Praktikum/PAP2.2/Versuch 241/.venv/bin/python3
    ...
    
  7. added
    bugIssue identified by VS Code Team member as probable bug
    confirmation pendingThe issue needs to be confirmed through a maintainer reproducing the bug.
    and removed
    triage-neededNeeds assignment to the proper sub-team
    on Mar 13, 2026
  8. Glampi42 commented on Apr 27, 2026

    @Glampi42
    Author

    As of the latest VSCode version, the issue seems to have been resolved since I can't reproduce the bug anymore. Thanks, I'm closing this issue.

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

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugconfirmation pendingThe issue needs to be confirmed through a maintainer reproducing the bug.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions