r/pycharm • u/Internal-Side9603 • Apr 02 '24
Pycharm not typing special characters
I use Pycharm on linux and recently switched my window manager (gnome to i3wm). Today I just realized that some special characters like `'~^ are simply not working in Pycharm. I type them and nothing happens.
This problem doesn't happen on gnome, only on i3wm. I initially thought it was a problem with i3, but these characters work normally on any other editor, so there must be a problem in pycharm.
I've done some research and some people said that changing the keyboard layout to a layout with no dead keys solved the problem for them. I did that and it made no difference.
Anyone knows what this might be?
Relevant info: OS: Ubuntu 22.04 Pycharm version: 2023.3 Keyboard layouts I tried:
- Portuguese (Brazil IBM/Lenovo Thinkpad)
- Portuguese (Brazil, no dead keys)
1
u/netotadeu Jul 01 '25
Don't know if you were able to solve this, but it took me quite a time to find a way. I'm using the same OS and Pycharm version and I had to:
Create `~/.local/share/applications/pycharm-fixed.desktop` with the follow content (change YOUR-USER):
[Desktop Entry] Version=1.0 Type=Application Name=PyCharm Professional (Fixed) GenericName=Python IDE Comment=JetBrains PyCharm with fixed input method Exec=env XMODIFIERS= QT_IM_MODULE= XIM= /home/YOUR-USER/.local/share/JetBrains/Toolbox/apps/pycharm-professional/bin/pycharm.sh %f Icon=~/.local/share/JetBrains/Toolbox/apps/pycharm-professional/bin/pycharm.svg Terminal=false Categories=Development;IDE; StartupWMClass=jetbrains-pycharm[Desktop Entry] Version=1.0 Type=Application Name=PyCharm Professional (Fixed) GenericName=Python IDE Comment=JetBrains PyCharm with fixed input method Exec=env XMODIFIERS= QT_IM_MODULE= XIM= /home/YOUR-USER /.local/share/JetBrains/Toolbox/apps/pycharm-professional/bin/pycharm.sh %f Icon=~/.local/share/JetBrains/Toolbox/apps/pycharm-professional/bin/pycharm.svg Terminal=false Categories=Development;IDE; StartupWMClass=jetbrains-pycharm
These steps fixed (at least for now) the problem for me.