IntelliJ IDEA Terminal not see commands

Answered

I'm using Fedora 35 Linux and I installed IntelliJ IDEA via flatpak, and when I try to use the docker command in the IDEA's terminal window, it gives me the following error message:

bash-5.1$ docker
bash: docker: command not found

In a normal terminal window I can use the docker command fine with my user.

I installed the fish terminal too for my user but the IDEA not see the fish command too.

The Terminal config in the IDEA looks like this: 

0
8 comments

What is the IDE version? Could be this issue: https://youtrack.jetbrains.com/issue/IDEA-289094 Please see this comment for a possible workaround. See also other comments in the issue about possible workarounds.

0

This is my IDE version:

IntelliJ IDEA 2021.3.3 (Ultimate Edition)
Build #IU-213.7172.25, built on March 15, 2022

This is the output in the IDEA Terminal:

bash-5.1$ echo $PATH
/home/spatrik/.local/bin:/home/spatrik/bin:/app/bin:/usr/bin:

But in the normal system terminal I get more path:

/home/spatrik/.local/bin /home/spatrik/bin /usr/local/bin /usr/local/sbin /usr/bin /usr/sbin
0

Andrey Dernov I checked the issue but in the IDEA I would like to use the simple /bin/bash terminal. I don't understand what should I write to my .bashrc file to workaround this problem, if is it.

0

What is the content of ~/.bashrc, ~/.bash_profile, ~/.profile files?

Try also if starting IDE from the command line helps: https://intellij-support.jetbrains.com/hc/en-us/articles/360011901879

Also try if it helps disabling Settings (Preferences on macOS) | Tools | Terminal | Shell integration option and restart the IDE.

0

Setting the following command in the IDEA Shell path solved the problem:

/usr/bin/env -- flatpak-spawn --host bash
2

The above worked for me, but I am getting a error message: 
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shelL

Any way to slightly modify this to get the message to go away?

Additional Information for my case:
- IDEA installed through SNAP
- RedHat 8

0

It appears to be a known issue related to sandboxed installs like snap and flatpack, see https://github.com/flathub/com.jetbrains.IntelliJ-IDEA-Community/issues/14.

As a workaround, please try to install IntelliJ IDEA via tar.gz or https://www.jetbrains.com/toolbox-app/.

Please also follow the issue I created at https://youtrack.jetbrains.com/issue/IDEA-342822.

0

Hi!
I am using a MAC and I just changed my Shell Path to “/bin/zsh” (after having changed it to a different value).

After opening a new terminal, that solved the issue for me.

0

Please sign in to leave a comment.