prompt-toolkit / prompt-toolkit/python-prompt-toolkit
Single enter adds 2 lines in console when debugging with PyCharm
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 815
- PR merge metrics
- No merged PRs in 30d
Description
We've used prompt_toolkit since the 1.x version but since upgrading to 2.x we run into trouble when debugging using PyCharm on OSX. Each 'enter' in the console is executed twice.
We did not have this problem when using the 1.x version and strange enough it also doesn't happen when using a regular terminal (e.g. iTerm on OSX). My dev environment didn't change, all we did was updating to 2.x so this makes me believe the issue is likely with the new version. I tried 2.0.1, 2.0.5 and just now 2.0.7. For what it's worth; I use the "emulate terminal in output console" option in PyCharm.
Any pointers/ideas how to fix would be appreciated. If there is any way to provide additional information, please let me know.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with prompt_toolkit 2.x in PyCharm on OSX with “emulate terminal in output console” enabled, then compare it with a regular terminal such as iTerm and the reported 1.x behavior. Trace the console input handling for duplicate Enter events; done means one Enter executes only once in PyCharm.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100