-
Notifications
You must be signed in to change notification settings - Fork 142
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
Debug does not work with new Python Gevent/Greenlet versions #1126
Comments
As a note, the newer greenlet (2.0.1) was released on November 7th, so, this matches the date that we started receiving reports of the breakage (https://pypi.org/project/greenlet/#history) -- it may be related to the Mac OS failure related gevent in the CI too. The solution right now is keeping to greenlet 1.1.3 until we can check that we can fix this in the debugger side (possibly this needs to be fixed in the greenlet side too, I still need to investigate as a failing assert for the trace function REFCNT seems a bit strange in the first place). |
There seem to be 2 issues lying around with the latest release: One of them is the assertion failure (I think this is probably fixable only in greenlet... I reported python-greenlet/greenlet#332 to track that). The other one is the tracing warning... I probably need to adapt the code in the debugger to handle that properly, but it seems that I still have issues with greenlets missing breakpoints with the latest version of gevent, so, this will need more investigation on my side (gevent seems to be unsetting the tracing function). |
hi this is not fixed for me. I am still getting this error
when I try to debug tests |
As noted earlier, the assert itself was incorrect as written, and needs to be fixed on the greenlet side - this was python-greenlet/greenlet#332. It looks like they have just fixed it a few days ago, and that shipped in greenlet 2.0.2 - can you make sure that you're using that version? |
@int19h ah ok greenlet 2.0.2 seems to resolve it. Thank you! |
issue persists for me with |
Issue persists for me with
|
Environment data
Actual behavior
Already reported this issue in #515 but seems still broke
Running the app from the debug console doesn't stop in any breakpoints and a warning is printed.
Gevent installs
greenlet==2.0.1
, that seems to be the main problem. Installedgreenlet==1.1.3
and it worksExpected behavior
Stop in all breakpoints and resolve warnings
Steps to reproduce:
setup a virtualenv
install packages
create file
run.py
launch.json
settings.json
Run from debug
Logs
The text was updated successfully, but these errors were encountered: