Tomas Farago

Results 5 comments of Tomas Farago

Great, thanks! I will arrange for the CLA to be signed and let you know.

Turns out it will take a while. I will be back at work 22.08., sort it out and get in touch after that. Sorry for the delay...

One solution to this is [here](https://github.com/tfarago/ipython/commit/3df1fb8d7f4cf59fe60aaf625f059b29d30270ca). It completely prevents going into [prompt_for_code](https://github.com/ipython/ipython/blob/8.0.x/IPython/terminal/interactiveshell.py#L596) so one doesn't have to deal with half-finished [run_async](https://github.com/prompt-toolkit/python-prompt-toolkit/blob/master/src/prompt_toolkit/application/application.py#L633) which may result in corrupted state of PT Application....

Another solution, which doesn't rely on dummy tasks but uses the async version `prompt_async` and checks its status is [here](https://github.com/tfarago/ipython/commit/39a400239e729e313678edf4f2b3fc399cbcb276). I wrote a [test](https://github.com/tfarago/ipython/commit/866b9385d5f7345bb78e215801c08bd28bb9b55f) also for this solution.