-
Notifications
You must be signed in to change notification settings - Fork 33
Description
I think this is related to microsoft/vscode-python#24525
Behaviour
When upgrading to any version past 2024.10.0, the extensions and interactive window will fail to detect any virtual environment on a mapped drive.
Steps to reproduce:
- install conda on a mapped drive
- create an enviornment on any mapped drive
- downgrade to 2024.10.0 and it appears, upgrade past that and it disappears.
the output on 2024.10:
2025-02-20 06:02:43.788 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-02-20 06:02:43.788 [info] Experiment 'pythonTestAdapter' is active
2025-02-20 06:02:43.788 [error] Reading directory to watch failed [Error: ENOENT: no such file or directory, scandir 'x:\Shared Projects\Good Neighbors Index\ai\.pixi\envs'
at Object.readdirSync (node:fs:1508:26)
at t.readdirSync (node:electron/js2c/node_init:2:13703)
at l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2024.10.0-win32-x64\out\client\extension.js:2:574598
at l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2024.10.0-win32-x64\out\client\extension.js:2:574789
at Array.map (<anonymous>)
at d.initWatchers (l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2024.10.0-win32-x64\out\client\extension.js:2:574507)
at async d.ensureWatchersReady (l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2024.10.0-win32-x64\out\client\extension.js:2:536827)] {
errno: -4058,
code: 'ENOENT',
syscall: 'scandir',
path: 'x:\\Shared Projects\\Good Neighbors Index\\ai\\.pixi\\envs'
}
2025-02-20 06:02:43.789 [error] Dir "x:\Shared Projects\Good Neighbors Index\ai\.pixi\envs" is not watchable (directory does not exist)
2025-02-20 06:02:43.789 [info] Default formatter is set to charliermarsh.ruff for workspace x:\Shared Projects\Good Neighbors Index\ai
2025-02-20 06:02:43.790 [info] Python interpreter path: .\venv\python.exe
2025-02-20 06:02:44.314 [info] > pyenv which python
2025-02-20 06:02:44.314 [info] cwd: x:\Shared Projects\Good Neighbors Index\ai
2025-02-20 06:02:44.514 [info] > conda info --json
2025-02-20 06:02:44.515 [info] shell: powershell
2025-02-20 06:02:44.834 [info] > conda info --json
2025-02-20 06:02:47.070 [info] Starting Jedi language server for ai.
2025-02-20 06:02:53.628 [info] > conda run -p "x:\Shared Projects\Good Neighbors Index\ai\venv" --no-capture-output python l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2024.10.0-win32-x64\python_files\get_output_via_markers.py l:/DataSets9/arthur/programs/VSCode-win32-x64-1.97.2/data/extensions/ms-python.python-2024.10.0-win32-x64/python_files/printEnvVariables.py
2025-02-20 06:02:53.628 [info] shell: powershell
2025-02-20 06:02:59.069 [info] > C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\python.exe l:/DataSets9/arthur/programs/VSCode-win32-x64-1.97.2/data/extensions/ms-python.python-2024.10.0-win32-x64/python_files/printEnvVariables.py
2025-02-20 06:02:59.069 [info] shell: powershell
...
2025-02-20 06:03:02.064 [info] Prepending environment variable PATH in collection to x:\Shared Projects\Good Neighbors Index\ai\venv;x:\Shared Projects\Good Neighbors Index\ai\venv\Library\mingw-w64\bin;x:\Shared Projects\Good Neighbors Index\ai\venv\Library\usr\bin;x:\Shared Projects\Good Neighbors Index\ai\venv\Library\bin;x:\Shared Projects\Good Neighbors Index\ai\venv\Scripts;x:\Shared Projects\Good Neighbors Index\ai\venv\bin;W:\arthur\programs\Miniforge3\condabin;C:\Program Files\Quarto\bin;C:\Program Files\Python39\Scripts;C:\Program Files\Python39;C:\Program Files\Python37\Scripts;C:\Program Files\Python37;C:\Program Files (x86)\Python37-32\Scripts;C:\Program Files (x86)\Python37-32;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\System Center Operations Manager 2007;C:\Program Files (x86)\Microsoft VS Code\bin;W:\arthur\programs\Miniforge3;W:\arthur\programs\Miniforge3\Library\mingw-w64\bin;W:\arthur\programs\Miniforge3\Library\usr\bin;W:\arthur\programs\Miniforge3\Library\bin;W:\arthur\programs\Miniforge3\Scripts;C:\Program Files\PostgreSQL\13\bin;C:\Users\Arthur.Gailes\AppData\Roaming\TinyTeX\bin\win32;C:\Users\Arthur.Gailes\node-v14.17.3-win-x64;C:\Program Files (x86)\Stata15;C:\Users\Arthur.Gailes\AppData\Local\atom\bin;C:\OSGeo4W\share\gdal;C:\Users\Arthur.Gailes\AppData\Local\Programs\Git\bin;W:\arthur\programs\Positron\bin;W:\R\R-4.3.1\bin\x64; {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
...
2025-02-20 06:03:02.067 [info] Send text to terminal: & "C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/python.exe" l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2024.10.0-win32-x64\python_files\printEnvVariablesToFile.py l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2024.10.0-win32-x64\python_files\deactivate\powershell\envVars.txt
And on 2025.0.0:
2025-02-20 06:04:27.457 [info] Send text to terminal: & "C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/python.exe" l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2025.0.0-win32-x64\python_files\printEnvVariablesToFile.py l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2025.0.0-win32-x64\python_files\deactivate\powershell\envVars.txt
2025-02-20 06:05:11.284 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-02-20 06:05:11.284 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-02-20 06:05:11.284 [info] Experiment 'pythonTestAdapter' is active
2025-02-20 06:05:11.284 [info] Native locator: Refresh started
2025-02-20 06:05:12.320 [info] > pyenv which python
2025-02-20 06:05:12.320 [info] cwd: x:\Shared Projects\Good Neighbors Index\ai
2025-02-20 06:05:12.394 [info] > conda info --json
2025-02-20 06:05:20.915 [info] Conda environment manager found at: C:\ProgramData\Anaconda3\Scripts\conda.exe
2025-02-20 06:05:20.915 [info] Conda not found on PATH, skipping: C:\ProgramData\Anaconda3\Scripts\conda.exe
2025-02-20 06:05:20.915 [info] You can set the path to conda using the setting: `python.condaPath` if you want to use a different conda binary
2025-02-20 06:05:20.929 [info] Native locator: Refresh finished in 11779 ms
2025-02-20 06:05:21.289 [error] [
'getActivatedEnvironmentVariables, Class name = M, completed in 8888ms, has a falsy return value, Arg 1: <Uri:x:\\Shared Projects\\Good Neighbors Index\\ai>, Arg 2: undefined, Arg 3: undefined, Arg 4: "C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe"',
l [Error]: Failed to resolve env "x:\\Shared Projects\\Good Neighbors Index\\ai\\venv\\python.exe"
at ae (l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2025.0.0-win32-x64\out\client\extension.js:2:1973990)
at oe (l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2025.0.0-win32-x64\out\client\extension.js:2:1971950)
at Immediate.<anonymous> (l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2025.0.0-win32-x64\out\client\extension.js:2:1968244)
at processImmediate (node:internal/timers:483:21) {
code: -4,
data: undefined
}
]
2025-02-20 06:05:21.289 [error] Failed to apply terminal env vars undefined l [Error]: Failed to resolve env "x:\\Shared Projects\\Good Neighbors Index\\ai\\venv\\python.exe"
at ae (l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2025.0.0-win32-x64\out\client\extension.js:2:1973990)
at oe (l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2025.0.0-win32-x64\out\client\extension.js:2:1971950)
at Immediate.<anonymous> (l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2025.0.0-win32-x64\out\client\extension.js:2:1968244)
at processImmediate (node:internal/timers:483:21) {
code: -4,
data: undefined,
vslsStack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ]
}
2025-02-20 06:05:21.289 [error] Python Extension: interpreterManager.refresh l [Error]: Failed to resolve env "x:\\Shared Projects\\Good Neighbors Index\\ai\\venv\\python.exe"
at ae (l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2025.0.0-win32-x64\out\client\extension.js:2:1973990)
at oe (l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2025.0.0-win32-x64\out\client\extension.js:2:1971950)
at Immediate.<anonymous> (l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2025.0.0-win32-x64\out\client\extension.js:2:1968244)
at processImmediate (node:internal/timers:483:21) {
code: -4,
data: undefined,
vslsStack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ]
}
2025-02-20 06:05:21.290 [error] [
'Failed to activate a workspace, Class name = v, completed in 11175ms, has a falsy return value, Arg 1: <Uri:x:\\Shared Projects\\Good Neighbors Index\\ai\\exploration\\pinecone_setup.py>, Arg 2: {"started":1740049509121}, Return Value: undefined',
l [Error]: Failed to resolve env "x:\\Shared Projects\\Good Neighbors Index\\ai\\venv\\python.exe"
at ae (l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2025.0.0-win32-x64\out\client\extension.js:2:1973990)
at oe (l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2025.0.0-win32-x64\out\client\extension.js:2:1971950)
at Immediate.<anonymous> (l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2025.0.0-win32-x64\out\client\extension.js:2:1968244)
at processImmediate (node:internal/timers:483:21) {
code: -4,
data: undefined,
vslsStack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ]
}
]
2025-02-20 06:05:21.290 [error] Failure during activation. l [Error]: Failed to resolve env "x:\\Shared Projects\\Good Neighbors Index\\ai\\venv\\python.exe"
at ae (l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2025.0.0-win32-x64\out\client\extension.js:2:1973990)
at oe (l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2025.0.0-win32-x64\out\client\extension.js:2:1971950)
at Immediate.<anonymous> (l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2025.0.0-win32-x64\out\client\extension.js:2:1968244)
at processImmediate (node:internal/timers:483:21) {
code: -4,
data: undefined,
vslsStack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ]
}
2025-02-20 06:05:21.290 [error] sendStartupTelemetry() failed. l [Error]: Failed to resolve env "x:\\Shared Projects\\Good Neighbors Index\\ai\\venv\\python.exe"
at ae (l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2025.0.0-win32-x64\out\client\extension.js:2:1973990)
at oe (l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2025.0.0-win32-x64\out\client\extension.js:2:1971950)
at Immediate.<anonymous> (l:\DataSets9\arthur\programs\VSCode-win32-x64-1.97.2\data\extensions\ms-python.python-2025.0.0-win32-x64\out\client\extension.js:2:1968244)
at processImmediate (node:internal/timers:483:21) {
code: -4,
data: undefined,
vslsStack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ]
}
Setting the condaPath to my user installation at the mapped drive does not help.
- Python version (& distribution if applicable, e.g. Anaconda): 3.12.9
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
- Value of the
python.languageServersetting: Jedi
User Settings
languageServer: "Jedi"
Installed Extensions
| Extension Name | Extension Id | Version |
|---|---|---|
| 2077-theme | End | 1.5.3 |
| angular-console | nrw | 18.41.1 |
| better-comments | aar | 3.0.2 |
| change-case | wma | 1.0.0 |
| code-runner | for | 0.12.2 |
| code-spell-checker | str | 4.0.34 |
| continue | Con | 0.9.269 |
| debugpy | ms- | 2024.14.0 |
| es7-react-js-snippets | dsz | 4.4.3 |
| gc-excelviewer | Gra | 4.2.63 |
| gitlens | eam | 16.3.2 |
| html-css-class-completion | Zig | 1.20.0 |
| intellicode-api-usage-examples | Vis | 0.2.9 |
| jinjahtml | sam | 0.20.0 |
| js-debug | ms- | 1.97.1 |
| js-debug-companion | ms- | 1.1.3 |
| jupyter | ms- | 2024.11.0 |
| jupyter-keymap | ms- | 1.1.2 |
| jupyter-renderers | ms- | 1.1.0 |
| markdown-all-in-one | yzh | 3.6.2 |
| material-icon-theme | PKi | 5.19.0 |
| material-theme | zhu | 3.19.0 |
| monokai-charcoal-high-contrast | 74t | 3.4.0 |
| night-owl | sdr | 2.1.1 |
| noctis | liv | 10.43.3 |
| nord-visual-studio-code | arc | 0.19.0 |
| paul-typescript-toolkit | pau | 0.0.6 |
| php-debug | xde | 1.35.0 |
| php-intellisense | zob | 1.3.3 |
| php-pack | xde | 1.0.3 |
| phpserver | bra | 3.0.2 |
| pmndrs | pmn | 0.3.7 |
| powershell | ms- | 2025.0.0 |
| prettier-vscode | esb | 11.0.0 |
| prisma | Pri | 6.4.1 |
| python | ms- | 2025.0.0 |
| quarto | qua | 1.118.0 |
| quicktype | qui | 23.0.170 |
| r | REd | 2.8.4 |
| r-debugger | RDe | 0.5.5 |
| radical-vscode | dhe | 3.3.1 |
| rainbow-csv | mec | 3.17.0 |
| remote-containers | ms- | 0.397.0 |
| remote-explorer | ms- | 0.4.3 |
| remote-ssh | ms- | 0.117.1 |
| remote-ssh-edit | ms- | 0.87.0 |
| remote-wsl | ms- | 0.88.5 |
| rest-client | hum | 0.25.1 |
| sass-indented | syl | 1.8.33 |
| shades-of-purple | ahm | 7.3.2 |
| shiny | Pos | 1.1.0 |
| simple-react-snippets | bur | 1.2.8 |
| snazzy-light | loi | 1.4.1 |
| stata-enhanced | kyl | 1.6.1 |
| synthwave-vscode | Rob | 0.1.17 |
| theme-bluloco-light | ulo | 3.7.4 |
| theme-cobalt2 | wes | 2.5.0 |
| theme-monokai-hc | Dat | 1.1.1 |
| theme-oceanicnext | nau | 0.0.4 |
| theme-panda | tin | 1.3.0 |
| theme-retro | ret | 0.1.0 |
| vsc-material-theme | Equ | 34.7.9 |
| vsc-material-theme-icons | equ | 3.8.12 |
| vscode-color | ans | 0.4.5 |
| vscode-database | baj | 2.2.3 |
| vscode-dbt | bas | 0.5.1 |
| vscode-dbt-power-user | inn | 0.54.1 |
| vscode-docker | ms- | 1.29.4 |
| vscode-eslint | dba | 3.0.10 |
| vscode-fileutils | sle | 3.10.3 |
| vscode-firefox-debug | fir | 2.14.1 |
| vscode-htmlhint | HTM | 1.0.5 |
| vscode-icons | vsc | 12.11.0 |
| vscode-intelephense-client | bme | 1.12.6 |
| vscode-jest-runner | fir | 0.4.74 |
| vscode-js-profile-table | ms- | 1.0.10 |
| vscode-jupyter-cell-tags | ms- | 0.1.9 |
| vscode-jupyter-python | kyl | 0.2.0 |
| vscode-jupyter-slideshow | ms- | 0.1.6 |
| vscode-mysql | for | 0.5.0 |
| vscode-postgres | cko | 1.4.3 |
| vscode-postman | eri | 2.1.0 |
| vscode-power-mode | hoo | 3.0.2 |
| vscode-project-structure | Aus | 0.1.3 |
| vscode-pull-request-github | Git | 0.104.1 |
| vscode-pylance | ms- | 2024.12.1 |
| vscode-react-typescript | inf | 1.3.1 |
| vscode-scss | mrm | 0.10.0 |
| vscode-sort-json | ric | 1.20.0 |
| vscode-speech | ms- | 0.12.1 |
| vscode-tailwindcss | bra | 0.14.6 |
| vscodeintellicode | Vis | 1.3.2 |
| vsliveshare | ms- | 1.0.5948 |
| vue-theme | mar | 2.0.2 |
| winteriscoming | joh | 1.4.4 |
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc1:31192215
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
dwoutputs:31242946
customenabled:31241370
hdaa2157:31222309
copilot_t_ci:31222730
jda6j935:31233686
copilothoveron:31240708