Textual Development in PyCharm/IDEA products #628
Replies: 2 comments 1 reply
-
Not a PyCharm user, but from the amount of issues we get, PyCharm doesn't emulate a terminal all that well. I think there was some checkbox in settings that enables terminal emulation which may improve things. VSCode has a solid terminal emulator, but I tend to switch to iTerm to test Textual code. |
Beta Was this translation helpful? Give feedback.
-
I had a similar issue. In PyCharm's Run/Debug Configurations, there's a "Emulate terminal in output console" button that you can press and it works better. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks,
Have a few questions around how people are developing Textual Apps in products like PyCharm.
If I use the example: https://github.com/Textualize/textual#creating-widgets and run my app via iTerm2:
Screen.Recording.2022-07-29.at.13.05.48.mov
I can easily see the
on_enter
andon_exit
behaviour.However if I try and run this in the PyCharm Terminal:
Screen.Recording.2022-07-29.at.13.07.26.mov
You can see that the hover functionality isn't quite correct. I have to physically click and drag the cursor for it to register these events.
Question 1 - Is there something obvious to change in PyCharm/IDEA IDEs to change this behaviour? Are other people experiencing this?
Also, similar situation, it'd be nice to be able to
Run
the application, with the usualRun <>
options in PyCharm.I get even stranger output on that view:
Screen.Recording.2022-07-29.at.13.11.59.mov
I fully appreciate that this is likely an issue with this being the python interpreter view so likely not supported. But it would be nice 😛
Question 2 - If people are actively dev-ing in PyCharm/IDEA IDEs, is there a nice run configuration I can set so that the
Run
option gives me a nice textual experience? 😄Appreciate any input folks have! ❤️
Beta Was this translation helpful? Give feedback.
All reactions