You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loading "Testing" for a Python test, the following errors are found in Python Output:
2024-08-28 07:19:56.178 [error] Reading directory to watch failed [Error: ENOENT: no such file or directory, scandir '/home/user/company/projects/my_project/.pixi/envs'
at Object.readdirSync (node:fs:1509:26)
at t.readdirSync (node:electron/js2c/node_init:2:11418)
at /home/user/.vscode/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:586747
at /home/user/.vscode/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:586938
at Array.map (<anonymous>)
at d.initWatchers (/home/user/.vscode/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:586656)
at async d.ensureWatchersReady (/home/user/.vscode/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:543067)] {
errno: -2,
code: 'ENOENT',
syscall: 'scandir',
path: '/home/user/company/projects/my_project/.pixi/envs'
}
2024-08-28 07:19:56.178 [error] Dir "/home/user/company/projects/my_project/.pixi/envs" is not watchable (directory does not exist)
Either provide Pixi and Pixi extension with MS-Python extension, downgrade these to warning, info, or debug, or provide non-exception throwing checks before engaging Pixi command or folders
Steps to reproduce:
Start with an environment without Pixi installed
Remove any Pixi extensions from VS Code
Remove .pixi/envs from project
Launch Debug/Testing extensions.
Review Output panel
Look for errors.
Diagnostic data
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
2024-08-28 07:19:56.178 [info] Experiment 'pythonCreateEnvOnPipInstall' is active
2024-08-28 07:19:56.178 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-08-28 07:19:56.178 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-08-28 07:19:56.178 [info] Experiment 'pythonTestAdapter' is active
2024-08-28 07:19:56.178 [error] Reading directory to watch failed [Error: ENOENT: no such file or directory, scandir '/home/user/company/projects/my_project/.pixi/envs'
at Object.readdirSync (node:fs:1509:26)
at t.readdirSync (node:electron/js2c/node_init:2:11418)
at /home/user/.vscode/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:586747
at /home/user/.vscode/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:586938
at Array.map (<anonymous>)
at d.initWatchers (/home/user/.vscode/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:586656)
at async d.ensureWatchersReady (/home/user/.vscode/extensions/ms-python.python-2024.12.3-linux-x64/out/client/extension.js:2:543067)] {
errno: -2,
code: 'ENOENT',
syscall: 'scandir',
path: '/home/user/company/projects/my_project/.pixi/envs'
}
2024-08-28 07:19:56.178 [error] Dir "/home/user/company/projects/my_project/.pixi/envs" is not watchable (directory does not exist)
2024-08-28 07:19:56.178 [info] Default formatter is set to ms-python.black-formatter for workspace /home/mpeters/starbucks/projects/sdagr-spuds
2024-08-28 07:19:56.178 [info] Python interpreter path: ~/starbucks/projects/anaconda3/envs/sdagr-spuds/bin/python
2024-08-28 07:19:56.178 [info] > conda info --json
2024-08-28 07:19:56.241 [info] > pyenv which python
2024-08-28 07:19:56.241 [info] cwd: .
2024-08-28 07:19:58.770 [info] Starting Pylance language server.
2024-08-28 07:20:00.895 [info] > conda config --get auto_activate_base
Extension version: 2024.12.3
VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z)
OS version: Linux x64 5.15.153.1-microsoft-standard-WSL2 snap
Modes:
Python version (& distribution if applicable, e.g. Anaconda): 3.10.14
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
Value of the python.languageServer setting: Default
@matthewapeters Hello, thank you for filing this issue. This issue should've been resolved in the latest pre-release: #23942
Can you try the latest pre-release version of Python extension and see if you see the same message? Please make sure to clear output console before you update too.
Uh oh!
There was an error while loading. Please reload this page.
Type: Bug
Behaviour
Loading "Testing" for a Python test, the following errors are found in Python Output:
Either provide Pixi and Pixi extension with MS-Python extension, downgrade these to warning, info, or debug, or provide non-exception throwing checks before engaging Pixi command or folders
Steps to reproduce:
Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Extension version: 2024.12.3
VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z)
OS version: Linux x64 5.15.153.1-microsoft-standard-WSL2 snap
Modes:
python.languageServer
setting: DefaultUser Settings
Installed Extensions
System Info
canvas_oop_rasterization: disabled_off
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
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: