Description
Type: Bug
I'm running code version 1.81.1 and python 3.11.3 using Arch linux. I've tried the pre-release and release version of the python extension with identical results. The python extension won't load properly, the log shows an error as soon as I open any python workspace:
2023-08-17 10:19:17.604 [error] [
'Failed to activate a workspace, Class name = g, completed in 256ms, has a falsy return value, Arg 1: , Return Value: undefined',
[TypeError: this.context.getEnvironmentVariableCollection is not a function
at _.activate (/home/user/.vscode/extensions/ms-python.python-2023.15.12221007/out/client/extension.js:2:440573)
at /home/user/.vscode/extensions/ms-python.python-2023.15.12221007/out/client/extension.js:2:2386
at Array.map ()
at g.activateWorkspace (/home/user/.vscode/extensions/ms-python.python-2023.15.12221007/out/client/extension.js:2:2376)]
]
A lot of stuff won't work (including the "Python: Report Issue..." command, but also basic stuff like auto completion, Ctrl+Click to jump to definitions, ...). I'm not sure if the cause of this is actually the error above, but I couldn't find anything else that looked suspicious. There were no issues before I recently updated from version 1.79.2 to 1.81.x.
I did not find any other reports that look similiar to this, so I'd guess it's an issue somewhere on my side. However, I was unable to find a solution, so I still ended up filing an issue to receive some support.
Extension version: 2023.15.12221007
VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-11T08:12:48.924Z)
OS version: Linux x64 6.4.10-arch1-1
Modes:
System Info
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz (6 x 3900) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off 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 video_decode: enabled video_encode: disabled_software vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off |
Load (avg) | 0, 1, 1 |
Memory (System) | 31.10GB (22.67GB free) |
Process Argv | |
Screen Reader | no |
VM | 0% |
DESKTOP_SESSION | undefined |
XDG_CURRENT_DESKTOP | undefined |
XDG_SESSION_DESKTOP | undefined |
XDG_SESSION_TYPE | tty |
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vshan820:30294714
vstes263cf:30335440
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vscccc:30803845
3biah626:30602489
89544117:30613380
showlangstatbar:30737416
03d35959:30757346
pythoncmv:30756943
fixshowwlkth:30771522
showindicator:30805244
i26e3531:30792625
asynctok:30810527
dsvsc013:30795093
dsvsc014:30804076
diffeditorv2:30812749