-
Notifications
You must be signed in to change notification settings - Fork 116
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
PyCharm terminal broken by right prompt item #476
Comments
I am seeing the same issue. I tried disabling Shell Integration as well. It didn't help. |
This seems to happen only on MacOS, when I tried it on windows it was fine. |
Same here on Ubuntu 22.04, reverting to v5 works around the problem |
I'm facing the same issue on macOS and PyCharm 2023.3.3. |
Same issue. But works fine when "python" item is removed from right promt |
in my case it was not python but kubernetes. I suspect several items are affected then. I replaced the emoji with a dot like this: |
For me, the unexpected icon is |
It seems like I believe this may be caused by the Jetbrains terminal not handling some Nerd Font characters correctly? Considering the prompt works fine in iTerm with the same icons, it seems likely that Jetbrains is to blame, probably due to handling ambiguous-width characters as double-width. In the mean time, setting |
The python icon is also broken in my iterm, maybe I have to update the font to use it? But I went ahead and looked up the icons @pieterrombauts mentioned so it is hopefully possible to just copy paste them: # Python: copied from https://www.unicodepedia.com/unicode/private-use-area/e73c/private-use-area-e73c/
set --universal tide_python_icon
# Kubernetes: copied from https://www.unicodepedia.com/unicode/miscellaneous-technical/2388/helm-symbol/
set --universal tide_kubectl_icon ⎈ |
Anyone here has any other icons they had issues with?
|
@StefanLobbenmeierObjego The alternative icons from your PR work for me on Arch Linux, the terminal in IntelliJ behaves properly! |
I feel a bit hesitant to immediately revert the icons to once that avoid the issue in Jetbrains since the current icons are nicer in my opinion (like using the real Kubernetes logo instead of a generic ship steering wheel). Ideally, Jetbrains should fix their terminal implementation to support the Nerd Font icons, but they have a very old issue that doesn't seem to be high priority. I don't think Tide should have to decrease the user experience for the majority of users that use this prompt with other terminals that have implemented proper Nerd Font support. Maybe a better solution for this would be to have an additional step in the configuration process to opt to disable Nerd-Font icons, and instead use generic single-width unicode icons instead. |
@pieterrombauts I agree, @StefanLobbenmeierObjego's PR is a workaround for a bug that JetBrains should fix in their products, not a bug with Tide or its icons. I would also much rather use the default icons and I think they should not be replaced just so JetBrains IDEs play nice with them. However, having a non-functional terminal in your IDE is a PITA, so at the very least it's nice to know this workaround exists. |
I see, upvoted the linked youtrack issue, maybe we can get the ball rolling there 😄 i can understand that this project does not want to work around the intellij bug, so for me it is fine to just revert the icons manually.
I could also confirm that iTerm handles the new icons correctly after installing the fonts again |
I have the same issue outside of Pycharm (using vscode terminal) when entering to directory containing Python repository. Workaround: I made my prompt 2line+transient and now works acceptable (I still produces 2 color prompt lines on enter) |
Thanks for the inspiring comments, I copied the Python icon from the Nerd Fonts icons cheatsheet and set it universally to the variable |
I just had the same problem. My problem was the icon that it was showing, and I changed it to the emoji 🐍 (as I was working in a python project) and now it works.
And now it works. I want to thank everybody for sharing info about this here, so I could apply a workaround! |
Describe the bug
The whole terminal in pycharm seems to get broken when using a right prompt item.
Steps to reproduce
Screenshots
Environment
Output of
tide bug-report
:Additional context
N/A
The text was updated successfully, but these errors were encountered: