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

In some cases PromptSession.promt() returns None #1899

Open
Demetrio92 opened this issue Jul 26, 2024 · 0 comments
Open

In some cases PromptSession.promt() returns None #1899

Demetrio92 opened this issue Jul 26, 2024 · 0 comments

Comments

@Demetrio92
Copy link

I am reporting a very elusive and hard-to-reproduce issue.

While using ipdb.set_trace() inside https://github.com/isaac-sim/IsaacLab (with docker), I discovered that the debugger hard breaks if used inside the simulation loop (e.g. simulation app is launched and running). Regular pdb does not have such issues.

After some tracing, I figured that parsing of promts by Ipython/terminal/debugger.py somehow returns None here. This line essentially relies on PromptSession.promt() of python-prompt-toolkit, here.

After downgrading to prompt-toolkit==3.0.36 the issue went away.

So,

this combination of ipython with promt_toolkit does not work

ipython==8.26.0
prompt_toolkit==3.0.47

but this one does

ipython==8.26.0
prompt-toolkit==3.0.36

I am fully aware that this an awful bug report, as it is not reproducible without running some 3rd party tools in a docker. But at least it's some documentation of the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant