You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The python extension attempts to run pixi even though I don't have it installed and haven't tried to enable it. The only symptom is an error message showing in the log. (pasted below under diagnostic data)
Steps to reproduce:
Enable python extension
Open a python file
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-07-28 10:43:19.970 [info] Experiment 'pythonCreateEnvOnPipInstall' is active
2024-07-28 10:43:19.970 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-07-28 10:43:19.970 [info] Experiment 'pythonSurveyNotification' is active
2024-07-28 10:43:19.970 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-07-28 10:43:19.970 [info] Experiment 'pythonTestAdapter' is active
2024-07-28 10:43:19.970 [info] Python interpreter path: /opt/homebrew/bin/python3
2024-07-28 10:43:19.974 [info] > pixi --version
2024-07-28 10:43:19.975 [error] [Error: spawn pixi ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
errno: -2,
code: 'ENOENT',
syscall: 'spawn pixi',
path: 'pixi',
spawnargs: [ '--version' ]
}
2024-07-28 10:43:19.975 [warning] could not find a pixi interpreter for the interpreter at /opt/homebrew/bin/python3
2024-07-28 10:43:19.997 [warning] could not find a pixi interpreter for the interpreter at /opt/homebrew/bin/python3
2024-07-28 10:43:20.374 [info] Starting Jedi language server for default.
Extension version: 2024.10.0
VS Code version: Code 1.91.1 (Universal) (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:07:54.982Z)
OS version: Darwin arm64 22.6.0
Modes:
Python version (& distribution if applicable, e.g. Anaconda): 3.12.2
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Global
Value of the python.languageServer setting: Default
This is expected. It is trying to check if there is one installed or if a shell alias has been registered for pixi. this should not have impact on how the extension works. It does the same for conda, hatch, pyenv etc.
If it's only trying to check if it's installed, wouldn't it be better to hide stderr to avoid an error message appearing in the log? This confused me while I was troubleshooting another issue, because at first I thought this error was related to the other one, but it turned out to be unrelated.
+1, can this warning message be removed or given the proper context? Any random warning in the console without context is just noise and likely to confuse.
Type: Bug
Behaviour
The python extension attempts to run pixi even though I don't have it installed and haven't tried to enable it. The only symptom is an error message showing in the log. (pasted below under diagnostic data)
Steps to reproduce:
Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Extension version: 2024.10.0
VS Code version: Code 1.91.1 (Universal) (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:07:54.982Z)
OS version: Darwin arm64 22.6.0
Modes:
python.languageServer
setting: DefaultUser Settings
Installed Extensions
System Info
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: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: