question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ipdb `with launch_ipdb_on_exception():` gives pylint E1129 error mesage

See original GitHub issue

I am using: ipdb==0.13.9


For the code-block from answer for Launch an IPython shell on exception

from ipdb import launch_ipdb_on_exception

with launch_ipdb_on_exception():
    main()

I am getting following warning message: [not-context-manager] Context manager 'generator' doesn't implement __enter__ and __exit__. [E1129]

How could I prevent this warning message?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
avatar-lavventuracommented, Dec 16, 2022

I was polite as well 😃 But when I asked the question I believe latest version for ipython was 7.27.0. When I updated the ipython version, it is solved my issue.

1reaction
gotchacommented, Dec 13, 2022

Sorry for the delayed answer. I missed your post.

Did you try with a more recent IPython ?

pip install ipython==8.7.0 in your venv

Read more comments on GitHub >

github_iconTop Results From Across the Web

pylint - launch_ipdb_on_exception() gives :Context manager ...
from ipdb import launch_ipdb_on_exception def main(): with launch_ipdb_on_exception(): # The rest of the code goes here. [...] I am getting ...
Read more >
Top 5 ipdb Code Examples - Snyk
To help you get started, we've selected a few ipdb examples, based on popular ways it is used in public projects. Secure your...
Read more >
How to Write a Checker - Pylint 2.16.0-dev documentation
in your code, the problems being displayed to the user through messages. The message dictionary should specify what messages the checker is going...
Read more >
TIL Pytest doesn't play nicely with ipdb - David Winterbottom
Pytest doesn't play nicely with ipdb. To ensure breakpoint() triggers ipdb as my default debugger, I used to set:.
Read more >
eric - Python Adventures - WordPress.com
“ import pdb ” or “ import ipdb as pdb “, then “ pdb.set_trace() ... I made Pylov because the PyLint plugin of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found