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
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
For version phpstorm 2017
(windows 10), the below settings work!
change the Path
to your project path
change user_name_win
to your win username
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
If you are using Ubuntu, change shell path from File->Setting->Terminal->Shell path:
/bin/bash --login
Then restart your IDE.
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.
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.