Skip to content

Python Debugger won't launch for conda envs #18847

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

Closed
araguilar1 opened this issue Apr 1, 2022 · 5 comments · Fixed by #18858
Closed

Python Debugger won't launch for conda envs #18847

araguilar1 opened this issue Apr 1, 2022 · 5 comments · Fixed by #18858
Assignees
Labels
area-debugging bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@araguilar1
Copy link

Issue Type: Bug

Behaviour

Debug overlay appears for a brief second, and then nothing happens afterwards.
Ran suggested command in #18436 (comment)

Got this output:
Content-Length: 137

{"seq": 1, "type": "event", "event": "output", "body": {"category": "telemetry", "output": "ptvsd", "data": {"packageVersion": "1.6.0"}}}Content-Length: 139

{"seq": 2, "type": "event", "event": "output", "body": {"category": "telemetry", "output": "debugpy", "data": {"packageVersion": "1.6.0"}}}

Expected vs. Actual

Expected: launch python debugging session
Actual: debugging session does not launch, no indication of error.

Steps to reproduce:

  1. Install python extension v2022.4.0
  2. Install anaconda python, conda version 4.12.0
  3. Create python 3.9.7 conda env
  4. Launch python debugger with F5 or via menu on any python script

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.9.7
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
  • Value of the python.languageServer setting: Default
User Settings


defaultLS: {"defaultLSType":"Pylance"}

downloadLanguageServer: true

envFile: "<placeholder>"

venvPath: "<placeholder>"

venvFolders: "<placeholder>"

condaPath: "<placeholder>"

pipenvPath: "<placeholder>"

poetryPath: "<placeholder>"

languageServer: "Pylance"

linting
• enabled: true
• cwd: "<placeholder>"
• Flake8Args: "<placeholder>"
• flake8Enabled: false
• flake8Path: "<placeholder>"
• lintOnSave: true
• banditArgs: "<placeholder>"
• banditEnabled: false
• banditPath: "<placeholder>"
• mypyArgs: "<placeholder>"
• mypyEnabled: false
• mypyPath: "<placeholder>"
• pycodestyleArgs: "<placeholder>"
• pycodestyleEnabled: false
• pycodestylePath: "<placeholder>"
• prospectorArgs: "<placeholder>"
• prospectorEnabled: false
• prospectorPath: "<placeholder>"
• pydocstyleArgs: "<placeholder>"
• pydocstyleEnabled: false
• pydocstylePath: "<placeholder>"
• pylamaArgs: "<placeholder>"
• pylamaEnabled: false
• pylamaPath: "<placeholder>"
• pylintArgs: "<placeholder>"
• pylintPath: "<placeholder>"

sortImports
• args: "<placeholder>"
• path: "<placeholder>"

formatting
• autopep8Args: "<placeholder>"
• autopep8Path: "<placeholder>"
• provider: "autopep8"
• blackArgs: "<placeholder>"
• blackPath: "<placeholder>"
• yapfArgs: "<placeholder>"
• yapfPath: "<placeholder>"

testing
• cwd: "<placeholder>"
• debugPort: 3000
• nosetestArgs: "<placeholder>"
• nosetestsEnabled: undefined
• nosetestPath: "<placeholder>"
• promptToConfigure: true
• pytestArgs: "<placeholder>"
• pytestEnabled: false
• pytestPath: "<placeholder>"
• unittestArgs: "<placeholder>"
• unittestEnabled: false
• autoTestDiscoverOnSaveEnabled: true

terminal
• activateEnvironment: true
• executeInFileDir: "<placeholder>"
• launchArgs: "<placeholder>"

experiments
• enabled: true
• optInto: []
• optOutFrom: []

tensorBoard
• logDirectory: "<placeholder>"

Extension version: 2022.4.0
VS Code version: Code 1.66.0 (e18005f0f1b33c29e81d732535d8c0e47cafb0b5, 2022-03-30T05:50:14.623Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 x 2808)
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
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.86GB (7.10GB free)
Process Argv --crash-reporter-id c0dff8ce-90e2-4295-a29b-735d652b281d
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30443607
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
pythonvsnew555:30457759
vscscmwlcmt:30465135
pynewfile477:30463512

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Apr 1, 2022
@SunCodeEarth
Copy link

Exactly the same issue. The pre-Release version v2022.5.10911002 does not work, either. Only the older version works.

@daholste
Copy link
Member

daholste commented Apr 4, 2022

Same here. Older version works for me as well. Only happens when I start VS Code by typing "code" from activated environment on Miniconda, which I need to do

@cheTesta
Copy link

cheTesta commented Apr 4, 2022

Workaround --> Temporarily downgrading to v2022.2.1924087327

@karrtikr
Copy link

karrtikr commented Apr 4, 2022

Can you try installing https://github.com/karrtikr/vscode-python/suites/5930400930/artifacts/202870711 and see if it fixes the issue? Use Extension: Install from VSIX command to install the VSIX.

@karrtikr karrtikr added the verification-needed Verification of issue is requested label Apr 4, 2022
@karrtikr karrtikr added this to the April 2022 milestone Apr 4, 2022
@karrtikr karrtikr changed the title Python Debugger won't launch Python Debugger won't launch for conda envs Apr 4, 2022
@SunCodeEarth
Copy link

Yes, it does. Thanks very much.

@karrtikr karrtikr added verified Verification succeeded and removed verification-needed Verification of issue is requested labels Apr 5, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-debugging bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants