IntelliJ IDEA 终端看不到命令
我使用的是 Fedora 35 Linux,并且通过 flatpak 安装了 IntelliJ IDEA,当我尝试在 IDEA 的终端窗口中使用 docker 命令时,它会给出以下错误消息:
bash-5.1$ docker
bash: docker: command not found
在正常的终端窗口中我可以与我的用户一起使用 docker 命令。
我也为我的用户安装了 Fish 终端,但 IDEA 也看不到 fish
命令。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在IDEA Shell路径设置中设置如下命令即可解决问题:
Set the following command in the IDEA Shell path setting will solve the problem:
IntelliJ IDEA的终端看不到docker可执行文件,因为运行IDEA的环境是沙箱,没有docker或其他程序。您可以使用 ls /usr/bin/docker 来检查它。
如果您想使用这些程序,您可以安装非 flatpack/non-snap 版本: https://www.jetbrains.com/idea/download/other.html
IntelliJ IDEA's terminal can't see docker executables because the environment running the IDEA is a sandbox and there is no docker or other programs. You could use
ls /usr/bin/docker
to check it.You can install a non-flatpack/non-snap version if you want to use those programs: https://www.jetbrains.com/idea/download/other.html
我放弃了 flatpak 并通过 snap 安装:
https://snapcraft.io/intellij-idea-ultimate
终端按预期工作。
I gave up with flatpak and installed via snap:
https://snapcraft.io/intellij-idea-ultimate
Terminal works as expected.