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 choice of python interpreter only pops py3 envs, no py2 envs.
When manually choose the py2 env executable, error occurs.
Steps to reproduce:
Use conda to create virtual env with py2.7
Load the executable as python interpreter
Python version (& distribution if applicable, e.g. Anaconda): 2.7.18
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 (View→Output, change the drop-down the upper-right of the Output panel to Python)
[ERROR 2023-3-5 15:42:56.177]: [Error: Command failed: /home/local/ASUAD/yxiong42/Software/anaconda3/bin/conda run -n DeepRec --no-capture-output python -I /home/local/ASUAD/yxiong42/.vscode/extensions/ms-python.python-2023.6.0/pythonFiles/get_output_via_markers.py /home/local/ASUAD/yxiong42/.vscode/extensions/ms-python.python-2023.6.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(47): conda run python -I /home/local/ASUAD/yxiong42/.vscode/extensions/ms-python.python-2023.6.0/pythonFiles/get_output_via_markers.py /home/local/ASUAD/yxiong42/.vscode/extensions/ms-python.python-2023.6.0/pythonFiles/interpreterInfo.py` failed. (See above for error)
at ChildProcess.exithandler (node:child_process:408:12)
at ChildProcess.emit (node:events:526:28)
at maybeClose (node:internal/child_process:1092:16)
at Socket.<anonymous> (node:internal/child_process:451:11)
at Socket.emit (node:events:526:28)
at Pipe.<anonymous> (node:net:687:12)] {
Extension version: 2023.6.0
VS Code version: Code 1.77.1 (b7886d7461186a5eac768481578c1d7ca80e2d21, 2023-04-04T23:20:37.202Z)
OS version: Linux x64 5.15.0-69-generic
Modes:
Sandboxed: No
We don't support python2 anymore. If you need to work with python 2.7 you will have to pin to 2022.2.* version of the extension, which was the last version that had the debugger (debugpy) with support for python 2.7, and was tested with 2.7.
Type: Bug
Behaviour
Expected vs. Actual
The choice of python interpreter only pops py3 envs, no py2 envs.
When manually choose the py2 env executable, error occurs.
Steps to reproduce:
python.languageServer
setting: DefaultOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)[ERROR 2023-3-5 15:42:56.177]: [Error: Command failed: /home/local/ASUAD/yxiong42/Software/anaconda3/bin/conda run -n DeepRec --no-capture-output python -I /home/local/ASUAD/yxiong42/.vscode/extensions/ms-python.python-2023.6.0/pythonFiles/get_output_via_markers.py /home/local/ASUAD/yxiong42/.vscode/extensions/ms-python.python-2023.6.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(47):
conda run python -I /home/local/ASUAD/yxiong42/.vscode/extensions/ms-python.python-2023.6.0/pythonFiles/get_output_via_markers.py /home/local/ASUAD/yxiong42/.vscode/extensions/ms-python.python-2023.6.0/pythonFiles/interpreterInfo.py` failed. (See above for error)killed: false,
code: 2,
signal: null,
cmd: '/home/local/ASUAD/yxiong42/Software/anaconda3/bin/conda run -n DeepRec --no-capture-output python -I /home/local/ASUAD/yxiong42/.vscode/extensions/ms-python.python-2023.6.0/pythonFiles/get_output_via_markers.py /home/local/ASUAD/yxiong42/.vscode/extensions/ms-python.python-2023.6.0/pythonFiles/interpreterInfo.py'
}
Starting Pylance language server.
User Settings
Extension version: 2023.6.0
VS Code version: Code 1.77.1 (b7886d7461186a5eac768481578c1d7ca80e2d21, 2023-04-04T23:20:37.202Z)
OS version: Linux x64 5.15.0-69-generic
Modes:
Sandboxed: No
System Info
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
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: