zsh terminal in IntelliJ failed to start
IntelliJ IDEA 2021.3.3 (Community Edition) Build #IC-213.7172.25, built on March 15, 2022
and when I want to open terminal I have an error:
Cannot open Local Terminal Failed to start [/bin/zsh, -i] in
and in logs:
2022-03-28 09:44:06,301 [ 37867] INFO - redIndexChunkConfigurationImpl - Failed to download shared index (org_springframework_boot_spring_boot_2_5_5_RELEASE-befd5279b696e187a10626209777efd701945beab4701b442ea4017839f7e7a9-deddd6f123db) 2022-03-28 09:44:08,649 [ 40215] INFO - hon.packaging.PyPIPackageCache - Loaded 361189 packages from /home/baku/.var/app/com.jetbrains.IntelliJ-IDEA-Community/cache/JetBrains/IdeaIC2021.3/python_packages/pypi-cache.json 2022-03-28 09:44:31,041 [ 62607] WARN - ctionSystem.impl.ActionUpdater - 207 ms to grab EDT for #update (org.jetbrains.plugins.terminal.AbstractTerminalRunner$2) 2022-03-28 09:44:31,227 [ 62793] INFO - erminal.AbstractTerminalRunner - Cannot open Local Terminal java.util.concurrent.ExecutionException: Failed to start [/bin/zsh, -i] in /home/xyz/Dev/X at org.jetbrains.plugins.terminal.LocalTerminalDirectRunner.createProcess(LocalTerminalDirectRunner.java:196) at org.jetbrains.plugins.terminal.LocalTerminalDirectRunner.createProcess(LocalTerminalDirectRunner.java:42) at org.jetbrains.plugins.terminal.AbstractTerminalRunner.lambda$openSessionInDirectory$4(AbstractTerminalRunner.java:273) at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:263) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: java.io.IOException: Exec_tty error:Unknown reason at com.pty4j.unix.UnixPtyProcess.execInPty(UnixPtyProcess.java:222) at com.pty4j.unix.UnixPtyProcess.(UnixPtyProcess.java:62) at com.pty4j.PtyProcessBuilder.start(PtyProcessBuilder.java:146) at org.jetbrains.plugins.terminal.LocalTerminalDirectRunner.createProcess(LocalTerminalDirectRunner.java:183) ... 12 more
any ideas how to fix it ? ( ZSH of course works normally when I open terminal ) I use linux mint 20.3, kernel 5.4.0-105-generic
请先登录再写评论。
Unfortunately, the underlying reason of failure is not clear enough. Such errors will be reported with more information in future (please see youtrack.jetbrains.com/issue/IDEA-217416). How did you install the IDE? Please make sure to use one of the officially recommended options https://www.jetbrains.com/help/idea/installation-guide.html .
Egor Klepikov thanks! using
helped.
Before it was installed via software manager in linux mint.
Try increasing the memory via the Help > Memory Settings dialog. The default 2000 resulted in the above issue; increasing it to 8000 fixed it.
----
I ran into this issue with:
I ran it from the terminal (e.g., `./bin/clion.sh`) and found it was generating "Cannot allocate memory" errors each time I tried to open the terminal.