Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python extension tries to run pixi by default #23879

Closed
llamafilm opened this issue Jul 28, 2024 · 3 comments
Closed

Python extension tries to run pixi by default #23879

llamafilm opened this issue Jul 28, 2024 · 3 comments
Assignees
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@llamafilm
Copy link

llamafilm commented Jul 28, 2024

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:

  1. Enable python extension
  2. Open a python file

Diagnostic data

Output for Python in the Output panel (ViewOutput, 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
User Settings


languageServer: "Jedi"

Installed Extensions
Extension Name Extension Id Version
JavaScript Debugger ms-vscode.js-debug 1.91.0
JavaScript Debugger Companion Extension ms-vscode.js-debug-companion 1.1.2
Python ms-python.python 2024.10.0
Table Visualizer for JavaScript Profiles ms-vscode.vscode-js-profile-table 1.0.9
System Info
Item Value
CPUs Apple M2 Pro (12 x 2400)
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: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 2, 2, 2
Memory (System) 16.00GB (0.04GB free)
Process Argv /Users/ebalsley/My Drive (ebalsley@netflix.com)/projects/Netbox/msenetbox --crash-reporter-id 11e589b2-48d6-4af6-9407-725f0132c526
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
0ee40948:31013168
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupyter:31046869
2f103344:31071589
impr_priority:31102340
nativerepl2:31104044
refactorc:31101458
ccpltc:31103427
pythonrstrctxt:31103193
hdi1a554:31097393

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jul 28, 2024
@karthiknadig karthiknadig self-assigned this Jul 29, 2024
@karthiknadig
Copy link
Member

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.

@karthiknadig karthiknadig closed this as not planned Won't fix, can't repro, duplicate, stale Jul 31, 2024
@github-actions github-actions bot added the info-needed Issue requires more information from poster label Jul 31, 2024
@llamafilm
Copy link
Author

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.

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Jul 31, 2024
@nathanperkins
Copy link

+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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

3 participants