osx-elcapitaniterm2intellij-15

How to access Iterm2 from intellij


I want to configure the terminal console in "IntelliJ Idea 15" IDE to access iterm2 on my MacOS. Tried the steps mentioned here https://www.jetbrains.com/help/idea/2016.3/working-with-embedded-local-terminal.html

But it shows an error as below

2017-02-15 11:15:02.308 iTerm2[71018:1042426] Succeeded. 2017-02-15 11:15:02.318 iTerm2[71018:1042426] tryToAttachToServerWithProcessId: Attempt to connect to server for pid 68144 2017-02-15 11:15:02.319 iTerm2[71018:1042426] Succeeded. 2017-02-15 11:15:02.358 iTerm2[71018:1042426] Try to connect to orphaned server at /var/tmp/iTerm2.socket.1694 2017-02-15 11:15:02.358 iTerm2[71018:1042426] Failed: Connection refused

I am using Mac OS X (el capitan - v10.11.6) Could someone please assist me with this. Thanks in advance.


Solution

  • A terminal is not the same thing as a shell. You're basically asking the equivalent of "how can I run Firefox inside Chrome?", which doesn't make much sense.

    You need to point IDEA to whatever shell you're using (bash, fish, zsh or whatever), not to iTerm.