small fish
small fish

Reputation: 580

How to open a terminal on WebStorm?

How do I get WebStorm to open a terminal?

When I try to do it I get an Exception:

"java.io.IOEXception:couldn't create PTY"

git also has the same problem on my computer.

Upvotes: 52

Views: 35625

Answers (13)

ParisaN
ParisaN

Reputation: 2082

If you are using Ubuntu, change shell path from File->Setting->Terminal->Shell path:

/bin/bash --login

Then restart your IDE.

Upvotes: 1

Steve Lukis
Steve Lukis

Reputation: 459

If you want to use Windows Command Prompt you will need to add double quotes, so cmd.exe becomes "cmd.exe".

Upvotes: 3

Jeff Mather
Jeff Mather

Reputation: 51

The problem in my case was that I had the "Start directory" field of the Tools > Terminal settings page set to a path which didn't exist on my drive. It's too bad the error message is not more specific when this kind of mistake is made.

Upvotes: 0

Daniel Hoksza
Daniel Hoksza

Reputation: 1

I had the same error with Cmder as my custom terminal. I ran PhpStorm 2018.2 as admin. That fixed the issue for me. No double quotes needed.

Upvotes: -1

If you have the 64bit version of Git use

"C:\Program Files\Git\bin\sh.exe" -login -i 

If you have the 32bit version use

"C:\Program Files (x86)\Git\bin\sh.exe" -login -i

If you have installed ubuntu for windows 10 you can use

bash.exe

Upvotes: 15

Sireesh
Sireesh

Reputation: 51

Go To View --> Tool Windows --> Terminal (or) Just Alt + F12.

Upvotes: 5

fclub
fclub

Reputation: 21

For version phpstorm 2017 (windows 10), the below settings work! enter image description here

change the Path to your project path

change user_name_win to your win username

Upvotes: 2

phil_lgr
phil_lgr

Reputation: 372

For Windows 10 users, we now have Windows Subsystem for Linux (WSL) so go to:

File > Settings > Tools > Terminal and put in shell path:

"C:\Windows\System32\cmd.exe" /C "bash"

Note that you need to enable developer mode, and then WSL.

Upvotes: 1

Ivan Misnik
Ivan Misnik

Reputation: 1

For Windows 10 you may prefer use terminal from Windows Subsystem for Linux. For this need put path to bash.exe.

In my case it was:

c:\Windows\WinSxS\amd64_microsoft-windows-lxss-bash_31bf3856ad364e35_10.0.15063.0_none_50af37c8f560d163\bash.exe

Upvotes: 0

Ray
Ray

Reputation: 21

As of 2017 "C:\Program Files\Git\bin\bash.exe" in the shell path works perfectly on x64.

Upvotes: 1

Sorin
Sorin

Reputation: 757

After the latest update the path needs to be in enclosed in quotes:

"C:\Program Files (x86)\Git\bin\sh.exe" -login -i

Upvotes: 26

John Doe
John Doe

Reputation: 876

Go to File -> Settings -> Tools -> Terminal and change Shell path based on the the installed git version.

for 64bit:
"C:\Program Files\Git\bin\sh.exe" -login -i

for 32bit:
"C:\Program Files (x86)\Git\bin\sh.exe" -login -i

Don't forget the quotes around the command.

Upvotes: 86

ZhiLI
ZhiLI

Reputation: 209

C:\Windows\system32\cmd.exe" /k "D:\Program Files\cmder\vendor\init.bat

Upvotes: 8

Related Questions