-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Type: Bug
I am using several devcontainers and the python extenstion inside them.
Inside my container, I fail to launch the python extension because the env used in another one cannot be found in this one:
- i am using poetry to generate a venv in my actual container, it is working fine and is located at /app/workspace/.venv/bin/python
- my other container uses another python env located at /home/airflow/.local/bin/python, and inside my first container the loading of the extension fails. The entire logs is given at the end.
However, i can fix this issue by setting the python locator to "js" in my settings: "python.locator": "js", but need to rebuild each one of my containers with this option...
2024-12-20 08:57:45.334 [info] Native locator: Refresh started
2024-12-20 08:57:45.339 [info] Poetry environment manager found at: /app/.local/bin/poetry
2024-12-20 08:57:45.357 [info] Native locator: Refresh finished in 662 ms
2024-12-20 08:57:45.371 [error] Python Extension: interpreterManager.refresh [l [Error]: Failed to resolve env "/home/airflow/.local/bin/python"
at ae (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2037533)
at oe (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2035493)
at Immediate. (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2031787)
at process.processImmediate (node:internal/timers:483:21)] {
code: -4,
data: undefined
}
2024-12-20 08:57:45.663 [info] > pyenv which python
2024-12-20 08:57:45.663 [info] cwd: .
2024-12-20 08:57:45.868 [error] [
'getActivatedEnvironmentVariables, Class name = M, completed in 1ms, has a falsy return value, Arg 1: Uri:/app/workspace, Arg 2: undefined, Arg 3: undefined, Arg 4: "/bin/zsh"',
[l [Error]: Failed to resolve env "/home/airflow/.local/bin/python"
at ae (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2037533)
at oe (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2035493)
at Immediate. (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2031787)
at process.processImmediate (node:internal/timers:483:21)] {
code: -4,
data: undefined,
vslsStack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ]
}
]
2024-12-20 08:57:45.868 [error] Failed to apply terminal env vars undefined [l [Error]: Failed to resolve env "/home/airflow/.local/bin/python"
at ae (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2037533)
at oe (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2035493)
at Immediate. (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2031787)
at process.processImmediate (node:internal/timers:483:21)] {
code: -4,
data: undefined,
vslsStack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ]
}
2024-12-20 08:57:45.869 [error] [
'Failed to activate a workspace, Class name = v, completed in 1006ms, has a falsy return value, Arg 1: Uri:/app/workspace, Arg 2: {"started":1734685064672}, Return Value: undefined',
[l [Error]: Failed to resolve env "/home/airflow/.local/bin/python"
at ae (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2037533)
at oe (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2035493)
at Immediate. (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2031787)
at process.processImmediate (node:internal/timers:483:21)] {
code: -4,
data: undefined,
vslsStack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ]
}
]
2024-12-20 08:57:45.869 [error] Failure during activation. [l [Error]: Failed to resolve env "/home/airflow/.local/bin/python"
at ae (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2037533)
at oe (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2035493)
at Immediate. (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2031787)
at process.processImmediate (node:internal/timers:483:21)] {
code: -4,
data: undefined,
vslsStack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ]
}
2024-12-20 08:57:45.869 [error] sendStartupTelemetry() failed. [l [Error]: Failed to resolve env "/home/airflow/.local/bin/python"
at ae (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2037533)
at oe (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2035493)
at Immediate. (/app/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/out/client/extension.js:2:2031787)
at process.processImmediate (node:internal/timers:483:21)] {
code: -4,
data: undefined,
vslsStack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ]
}
2024-12-20 08:57:46.929 [info] > conda info --json
2024-12-20 08:57:47.443 [info] > . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/python_files/printEnvVariables.py
2024-12-20 08:57:47.443 [info] shell: bash
2024-12-20 08:57:47.447 [info] > . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-server/extensions/ms-python.python-2024.22.0-linux-x64/python_files/printEnvVariables.py
2024-12-20 08:57:47.447 [info] shell: bash
2024-12-20 08:57:59.446 [info] Native locator: Refresh started
2024-12-20 08:57:59.473 [info] Poetry environment manager found at: /app/.local/bin/poetry
2024-12-20 08:57:59.532 [info] Native locator: Refresh finished in 86 ms
Extension version: 2024.22.0
VS Code version: Code 1.96.0 (138f619c86f1199955d53b4166bef66ef252935c, 2024-12-11T02:29:09.626Z)
OS version: Linux x64 6.8.0-50-generic
Modes:
Remote OS version: Linux x64 6.8.0-50-generic
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz (8 x 3697) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: enabled video_encode: disabled_software vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off webnn: disabled_off |
| Load (avg) | 1, 1, 1 |
| Memory (System) | 15.29GB (10.01GB free) |
| Process Argv | --new-window --crash-reporter-id 6b607d21-2d23-466f-b0cf-8b5b57ece824 |
| Screen Reader | no |
| VM | 0% |
| DESKTOP_SESSION | ubuntu |
| XDG_CURRENT_DESKTOP | Unity |
| XDG_SESSION_DESKTOP | ubuntu |
| XDG_SESSION_TYPE | x11 |
| Item | Value |
|---|---|
| Remote | Dev Container: Some-name Dev Env |
| OS | Linux x64 6.8.0-50-generic |
| CPUs | Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz (8 x 3647) |
| Memory (System) | 15.29GB (10.00GB free) |
| VM | 0% |
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupyter:31046869
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624