Type: Bug
Behaviour
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
User Settings
languageServer: "Pylance"
testing
• cwd: "<placeholder>"
• pytestArgs: "<placeholder>"
• pytestEnabled: true
• unittestArgs: "<placeholder>"
terminal
• activateEnvironment: false
Installed Extensions
| Extension Name |
Extension Id |
Version |
| Azure Account |
ms-vscode.azure-account |
0.12.0 |
| Azure App Service |
ms-azuretools.vscode-azureappservice |
0.25.3 |
| Azure CLI Tools |
ms-vscode.azurecli |
0.6.0 |
| Azure Container Apps |
ms-azuretools.vscode-azurecontainerapps |
0.7.0 |
| Azure Databases |
ms-azuretools.vscode-cosmosdb |
0.22.0 |
| Azure Developer CLI |
ms-azuretools.azure-dev |
0.8.3 |
| Azure Functions |
ms-azuretools.vscode-azurefunctions |
1.15.3 |
| Azure Pipelines |
ms-azure-devops.azure-pipelines |
1.228.0 |
| Azure Resources |
ms-azuretools.vscode-azureresourcegroups |
0.9.2 |
| Azure Static Web Apps |
ms-azuretools.vscode-azurestaticwebapps |
0.12.2 |
| Azure Storage |
ms-azuretools.vscode-azurestorage |
0.16.1 |
| Azure Storage Explorer |
formulahendry.azure-storage-explorer |
0.1.2 |
| Azure Tools |
ms-vscode.vscode-node-azure-pack |
1.2.0 |
| Azure Virtual Machines |
ms-azuretools.vscode-azurevirtualmachines |
0.6.5 |
| Azurite |
Azurite.azurite |
3.32.0 |
| Black Formatter |
ms-python.black-formatter |
2024.2.0 |
| Databricks |
databricks.databricks |
1.3.1 |
| Docker |
ms-azuretools.vscode-docker |
1.29.2 |
| Git Graph |
mhutchie.git-graph |
1.30.0 |
| GitLens — Git supercharged |
eamodio.gitlens |
15.3.1 |
| JavaScript Debugger |
ms-vscode.js-debug |
1.92.0 |
| JavaScript Debugger Companion Extension |
ms-vscode.js-debug-companion |
1.1.3 |
| Jupyter |
ms-toolsai.jupyter |
2024.7.0 |
| Jupyter Cell Tags |
ms-toolsai.vscode-jupyter-cell-tags |
0.1.9 |
| Jupyter Keymap |
ms-toolsai.jupyter-keymap |
1.1.2 |
| Jupyter Notebook Renderers |
ms-toolsai.jupyter-renderers |
1.0.19 |
| Jupyter Slide Show |
ms-toolsai.vscode-jupyter-slideshow |
0.1.6 |
| Kubernetes |
ms-kubernetes-tools.vscode-kubernetes-tools |
1.3.16 |
| Markdown Preview Github Styling |
bierner.markdown-preview-github-styles |
2.0.4 |
| PowerShell |
ms-vscode.powershell |
2024.2.2 |
| Pylance |
ms-python.vscode-pylance |
2024.8.2 |
| Pylint |
ms-python.pylint |
2023.10.1 |
| Python |
ms-python.python |
2024.12.3 |
| Python Debugger |
ms-python.debugpy |
2024.10.0 |
| Table Visualizer for JavaScript Profiles |
ms-vscode.vscode-js-profile-table |
1.0.9 |
| Vim |
vscodevim.vim |
1.28.0 |
| YAML |
redhat.vscode-yaml |
1.15.0 |
System Info
| Item |
Value |
| CPUs |
12th Gen Intel(R) Core(TM) i9-12900H (20 x 0) |
| GPU Status |
2d_canvas: unavailable_software 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 |
| Load (avg) |
1, 1, 0 |
| Memory (System) |
31.19GB (27.88GB free) |
| Process Argv |
--no-sandbox . --crash-reporter-id 333a228-54d3-4a24-9af3-df5c1022c851 |
| Screen Reader |
no |
| VM |
0% |
| DESKTOP_SESSION |
undefined |
| XDG_CURRENT_DESKTOP |
undefined |
| XDG_SESSION_DESKTOP |
undefined |
| XDG_SESSION_TYPE |
x11 |
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
bdiig495:31013172
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupyter:31046869
impr_priority:31102340
nativerepl2:31104044
refactort:31108082
pythonrstrctxt:31112756
wkspc-onlycs-t:31111718
wkspc-ranged-t:31125599
fje88620:31121564
aajjf12562:31125793
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
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel 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.languageServersetting: 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