Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 620
C V Avatar asked Feb 15 '17 18:02

C V


People also ask

How do I pull up terminal in IntelliJ?

From the main menu, select View | Tool Windows | Terminal or press Alt+F12 .

How do I open the console in IntelliJ Mac?

We can open the terminal window with ⌥F12 on macOS, or Alt+F12 on Windows and Linux. The terminal supports all the same commands that the operating system supports. and press enter.

How do I change the terminal in IntelliJ?

Open IntelliJ settings. Go to the “Tools” section. Press the “Terminal” option. Set the correct Shell path to the PowerShell EXE file.

How do I make iTerm2 default terminal Mac?

Find the file in your finder, right click on it, choose get info, then expand the Open With tab. There you should find a dropdown menu on what to open those kind of files with. The default is terminal, but choose iTerm2 and click on change all.


1 Answers

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.

like image 78
tolgraven Avatar answered Nov 11 '22 02:11

tolgraven