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

Getting an error in output during startup #22591

Closed
JoeHRIsaac opened this issue Nov 8, 2023 · 1 comment
Closed

Getting an error in output during startup #22591

JoeHRIsaac opened this issue Nov 8, 2023 · 1 comment
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@JoeHRIsaac
Copy link

Type: Bug

Behaviour

Expected vs. Actual

Expected: Non error in the output window
Actual: following error during startup, last lines:

2023-11-08 15:12:58.401 [info] Starting Pylance language server.
2023-11-08 15:13:00.590 [error] [Error: Command failed: /Users/joeisaac/opt/anaconda3/condabin/conda run -n py27 --no-capture-output python -I /Users/joeisaac/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/get_output_via_markers.py /Users/joeisaac/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/interpreterInfo.py
Unknown option: -I
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try python -h' for more information. ERROR conda.cli.main_run:execute(49): conda run python -I /Users/joeisaac/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/get_output_via_markers.py /Users/joeisaac/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/interpreterInfo.py` failed. (See above for error)

at ChildProcess.exithandler (node:child_process:431:12)
at ChildProcess.emit (node:events:513:28)
at ChildProcess.emit (node:domain:489:12)
at maybeClose (node:internal/child_process:1091:16)
at ChildProcess._handle.onexit (node:internal/child_process:302:5)] {

code: 2,
killed: false,
signal: null,
cmd: '/Users/joeisaac/opt/anaconda3/condabin/conda run -n py27 --no-capture-output python -I /Users/joeisaac/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/get_output_via_markers.py /Users/joeisaac/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/interpreterInfo.py'
}
2023-11-08 15:13:02.592 [info] > ~/opt/anaconda3/envs/py27/bin/python -I ~/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/interpreterInfo.py
2023-11-08 15:13:02.611 [info] > ~/opt/anaconda3/condabin/conda run -n py27 --no-capture-output python -I ~/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/interpreterInfo.py
2023-11-08 15:13:09.196 [error] [Error: Command failed: /Users/joeisaac/opt/anaconda3/condabin/conda run -n py27 --no-capture-output python -I /Users/joeisaac/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/get_output_via_markers.py /Users/joeisaac/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/interpreterInfo.py
Unknown option: -I
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try python -h' for more information. ERROR conda.cli.main_run:execute(49): conda run python -I /Users/joeisaac/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/get_output_via_markers.py /Users/joeisaac/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/interpreterInfo.py` failed. (See above for error)

at ChildProcess.exithandler (node:child_process:431:12)
at ChildProcess.emit (node:events:513:28)
at ChildProcess.emit (node:domain:489:12)
at maybeClose (node:internal/child_process:1091:16)
at Socket.<anonymous> (node:internal/child_process:449:11)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
at Pipe.<anonymous> (node:net:322:12)] {

code: 2,
killed: false,
signal: null,
cmd: '/Users/joeisaac/opt/anaconda3/condabin/conda run -n py27 --no-capture-output python -I /Users/joeisaac/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/get_output_via_markers.py /Users/joeisaac/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/interpreterInfo.py'
}
2023-11-08 15:18:13.622 [info] > ~/opt/anaconda3/condabin/conda info --json
2023-11-08 15:18:14.831 [info] Send text to terminal: conda activate py3816

Steps to reproduce:

  1. Open VS code
  2. Open Output window

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.16
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
  • Value of the python.languageServer setting: Default
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

User Settings


condaPath: "<placeholder>"

languageServer: "Pylance"

VS Code version: Code 1.84.1 (Universal) (2b35e1e6d88f1ce073683991d1eff5284a32690f, 2023-11-06T12:37:18.666Z)
OS version: Darwin x64 23.0.0
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)
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: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 5, 13, 32
Memory (System) 16.00GB (0.06GB free)
Process Argv --enable-proposed-api TabNine.tabnine-vscode --crash-reporter-id b09597ee-8b22-4bdc-9bae-245cbd7f2519
Screen Reader no
VM 0%
Extensions (36)
Extension Author (truncated) Version
aws-toolkit-vscode ama 1.97.0
attendant Cod 1.3.0
python-environment-manager don 1.2.4
gitlens eam 14.4.1
code-runner for 0.12.1
gc-excelviewer Gra 4.2.58
vsc-python-indent Kev 1.18.0
rainbow-csv mec 3.8.0
gitignore mic 1.0.1
fluent-icons mig 0.0.18
vscode-docker ms- 1.27.0
autopep8 ms- 2023.8.0
isort ms- 2023.10.1
pylint ms- 2023.10.0
python ms- 2023.20.0
vscode-pylance ms- 2023.11.10
jupyter ms- 2023.10.1003070148
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.0.17
vscode-jupyter-cell-tags ms- 0.1.8
vscode-jupyter-slideshow ms- 0.1.5
remote-containers ms- 0.321.0
remote-ssh ms- 0.107.0
remote-ssh-edit ms- 0.86.0
cpptools ms- 1.17.5
cpptools-extension-pack ms- 1.3.0
remote-explorer ms- 0.4.1
autodocstring njp 0.6.1
material-icon-theme PKi 4.31.0
vscode-yaml red 1.14.0
intellicode-api-usage-examples Vis 0.2.8
vscodeintellicode Vis 1.2.30
vscode-java-debug vsc 0.55.0
vscode-java-dependency vsc 0.23.2
vscode-java-pack vsc 0.25.15
vscode-maven vsc 0.43.0

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vstes516:30244333
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263:30880072
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
282f8724:30602487
f6dab269:30613381
2i9eh265:30646982
showlangstatbar:30737416
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
welcomedialogc:30882110
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30869155
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixtcf:30871695
pythonregdiag2cf:30871583
pyreplss2:30879913
pythonmypyd1:30879173
pythoncet0:30874138
h48ei257:30883392
pythontbext0:30879054
dsvsc016:30880769
dsvsc017:30880892
dsvsc018:30880894
aa_t_chat:30882232

@joyceerhl joyceerhl transferred this issue from microsoft/vscode Dec 5, 2023
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Dec 5, 2023
@eleanorjboyd
Copy link
Member

Hello, Python 2.7 is no longer supported. If you need to work with python 2.7, please pin the extension to version 2022.8.*.

Thanks!

@eleanorjboyd eleanorjboyd closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2023
@github-actions github-actions bot added the info-needed Issue requires more information from poster label Dec 6, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

3 participants