Text in terminal is corrupted when trying to use autocompletion
已回答
Hello Lovely IntelliJ Users,
I am facing an annoying issue with the integrated terminal on my M1 Mac. Whenever I type command and try to use autocomplete (pressing the tab button) the first 2 letters are kind re-rendered and keep sticking
Steps to reproduce:
- Open the integrated terminal
- Type any command (e.g. git ) and then press the tab button
Before typing TAB

After typing TAB

This is my build info
IntelliJ IDEA 2022.2 (Ultimate Edition)
Build #IU-222.3345.118, built on July 26, 2022
Runtime version: 17.0.3+7-b469.32 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.5
GC: G1 Young Generation, G1 Old Generation
Memory: 1536M
Cores: 10
Metal Rendering is ON
Registry:
ide.balloon.shadow.size=0
scala.erase.compiler.process.jdk.once=false
Non-Bundled Plugins:
name.kropp.intellij.makefile (222.3345.108)
com.mzyupc.a-redis (beta-0.8.0)
com.markskelton.one-dark-theme (5.6.0)
org.jetbrains.plugins.hocon (2022.1.0)
net.ashald.envfile (3.2.2)
com.remoterapp.adbremote.plugin.id (0.1.9)
com.daniel-espinoza.inline-error (0.2.0)
com.arcticicestudio.nord.jetbrains (0.13.0)
Key Promoter X (2022.2)
mobi.hsz.idea.gitignore (4.4.2)
com.mallowigi (65.1.0)
PlantUML integration (5.16.1)
com.intellij.kubernetes (222.3345.108)
Dart (222.3345.108)
io.flutter (69.0.5)
zielu.gittoolbox (212.9.7)
org.intellij.scala (2022.2.10)
com.github.tomasmilata.intelliroutes (2022.1.0)
Kotlin: 222-1.7.10-release-334-IJ3345.118
请先登录再写评论。
Hi there,
What shell is used in Preferences | Tools | Terminal?
Do you have this problem in the system shell?
Hi Arina,
Thank you for your reply.
/bash/zsh
Does it help if you select "Shell integration" in the Terminal settings, and restart the IDE?
Unfortunately no :(
Could you check if the problem is reproduced with all of the custom plugins disabled? Preferences | Plugins | ⚙️ | Disable all downloaded plugins
I tried disabling all plugins and restarting. Unfortunately the issue still exists :(
Thank you. I created https://youtrack.jetbrains.com/issue/IDEA-299608 for this issue. Developers will take a look at it.
Please attach to it the contents of your ~/.zhrc, and the resulting archive of the Help | Collect Logs and Diagnostic Data operation. You can set the attachment's visibility to jetbrains-team to make it private.
Done, Thanks Arina for your help :)
No problem, happy to help👍🏻
Follow IDEA-299608 for updates on the progress of the investigation.
Hey Y Abo Sedera,
Thank you for reporting. Your ~/.zshrc is pretty complex, I was trying to replicate it locally, but seems failed. Could you please comment it line by line (or probably feature by feature) to figure out what part contributes to buggy autocompletion? Thank you!
Thank you for looking into it. So I think some misconfiguration in oh-my-zsh caused that, not sure what exactly. I have recently switched to powerlevel10k and the issue seems to be resolved.
Thanks again for your support.
Thank Y Abo Sedera,
I had the same problem and your comment really helped me.
I've installed powerlevel10k and it helped me and I think the problem comes for the wrong zsh theme.
Thanks,
Omer