Closed ssslakter closed 1 year ago
Oops, sorry about, that, shoudl be fixed now.
@DonJayamanne The problem seem not go away, now I have in logs version 1.2.2 but still get this error message.
What I also discovered is that it only gets broken in the projects where I have .venv
folder and for other where I have a folder name venv
it works fine.
@Ssslakter please can you share the logs once again.
The logs are just show the debug this time, at least in Python Environments(logging) group.
Maybe there are more logs in some files, if you know where, I could also check them. The error pop-up is the same as in screenshot above
Should be ok now, please update to the latest version.
Sorry for the late response, but I still have the issue, now I tried running vscode on my ubuntu. I created a new workspace and opened python environments panel, and I got the same error as above, It shows none of my environments, even after I created a new venv inside the current project folder. Now, I guess, I see the problem, both times I had this extension installed in a separate vscode profile Then I tried switching to the default one and It worked out. Then created new empty profile and installed only the python environment extension and the problem reappeared, so I believe the fix should be somewhat related to vscode profiles
Type: Bug
Behaviour
Expected vs. Actual
The extension should show available python environments. But the actual behaviour is that I see empty lists in the python envinonment manager explorer window, and notification with error saying.
Steps to reproduce:
Diagnostic data
python.languageServer
setting: DefaultOutput for
Python Environments
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython Environments
)``` Debug: Finished searching for workspace virtual envs Error: TypeError: c.toCommandArgumentForPythonExt is not a function at c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:11191:98 at Array.reduce ()
at getInterpreterInfo (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:11191:25)
at WorkerPool.buildEnvironmentInfo [as workerFunc] (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:10893:72)
at Worker.workFunc (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:7544:88)
at Worker.start (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:7462:47)
Error: TypeError: c.toCommandArgumentForPythonExt is not a function
at c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:11191:98
at Array.reduce ()
at getInterpreterInfo (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:11191:25)
at WorkerPool.buildEnvironmentInfo [as workerFunc] (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:10893:72)
at Worker.workFunc (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:7544:88)
at Worker.start (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:7462:47)
Error: TypeError: c.toCommandArgumentForPythonExt is not a function
at c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:11191:98
at Array.reduce ()
at getInterpreterInfo (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:11191:25)
at WorkerPool.buildEnvironmentInfo [as workerFunc] (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:10893:72)
at Worker.workFunc (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:7544:88)
at Worker.start (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:7462:47)
Debug: Finished searching for windows registry interpreters
Debug: Couldn't locate the conda binary.
Debug: Couldn't locate the conda binary.
Debug: Finished with environment reducer
Error: TypeError: c.toCommandArgumentForPythonExt is not a function
at c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:11191:98
at Array.reduce ()
at getInterpreterInfo (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:11191:25)
at WorkerPool.buildEnvironmentInfo [as workerFunc] (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:10893:72)
at Worker.workFunc (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:7544:88)
at Worker.start (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:7462:47)
Error: TypeError: c.toCommandArgumentForPythonExt is not a function
at c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:11191:98
at Array.reduce ()
at getInterpreterInfo (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:11191:25)
at WorkerPool.buildEnvironmentInfo [as workerFunc] (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:10893:72)
at Worker.workFunc (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:7544:88)
at Worker.start (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:7462:47)
Error: TypeError: c.toCommandArgumentForPythonExt is not a function
at c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:11191:98
at Array.reduce ()
at getInterpreterInfo (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:11191:25)
at WorkerPool.buildEnvironmentInfo [as workerFunc] (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:10893:72)
at Worker.workFunc (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:7544:88)
at Worker.start (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:7462:47)
at runNextTicks (node:internal/process/task_queues:60:5)
at listOnTimeout (node:internal/timers:538:9)
at processTimers (node:internal/timers:512:7)
Error: TypeError: c.toCommandArgumentForPythonExt is not a function
at c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:11191:98
at Array.reduce ()
at getInterpreterInfo (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:11191:25)
at WorkerPool.buildEnvironmentInfo [as workerFunc] (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:10893:72)
at Worker.workFunc (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:7544:88)
at Worker.start (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:7462:47)
Error: TypeError: c.toCommandArgumentForPythonExt is not a function
at c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:11191:98
at Array.reduce ()
at getInterpreterInfo (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:11191:25)
at WorkerPool.buildEnvironmentInfo [as workerFunc] (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:10893:72)
at Worker.workFunc (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:7544:88)
at Worker.start (c:\Users\user\.vscode\extensions\donjayamanne.python-environment-manager-1.2.1\out\client\extension.js:7462:47)
Debug: Finished with environment resolver
Debug: Environments added to cache []
```
I have global interpreters of Python 3.9, 3.10 and 3.11 so it should at least find one of those, and several local venvs in project directories
User Settings
``` languageServer: "Pylance" ```
Extension version: 1.2.1 VS Code version: Code 1.82.0 (8b617bd08fd9e3fc94d14adb8d358b56e3f72314, 2023-09-06T22:07:07.438Z) OS version: Windows_NT x64 10.0.19045 Modes:
System Info
|Item|Value| |---|---| |CPUs|AMD Ryzen 5 3500 6-Core Processor (6 x 3593)| |GPU Status|2d_canvas: enabledcanvas_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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|47.93GB (28.21GB free)| |Process Argv|--crash-reporter-id 8e529196-d597-417d-9db7-21dec6fb9c47| |Screen Reader|no| |VM|0%|