This issue is not about the configuration of iTerm. You get this error from the terminal inside PhpStorm as well. Kind of surprised of such a rough incompetent answer from JetBrains.
In my case It has obviously to do with your complicated version update strategy. Instead of updating the installed version (2016.3) to 2017.1 I was forced to install the new version as a new app which has lead to several conflicts. One of them is now that the command "phpstorm" points to a shell script of the older version. But this isn't installed anymore...
So instead to advice to move your app around on the system maybe you should work on a less complicated version update system or at least on a better documentation for this.
Check if /Applications/PhpStorm.app exists. If not - correct the path to a valid one.
How I can correct the path? and where in which file?
iTerm is a 3rd party software: I can't advise on it's config.
Why don't you download dmg file, install it in Apps and use as usual?
I use both phpstorm and phpstorm eap.
I fix this problem in this way:
1. find the pstorm command location
in my mac is
2. use your favorite editor open this file(yes, the file is a shell script)
and find this line:
change to
in your case, may be another location.
3. and find this lile:
change USERNAME to your own username
and check if this location is a dir
if it is, try your command in iTerm again
if not,
check your phpstorm version, if phpstorm version greater than 2017
in my case, I chage to this:
and works fine.
by the way, I think this is a bug.
This issue is not about the configuration of iTerm. You get this error from the terminal inside PhpStorm as well. Kind of surprised of such a rough incompetent answer from JetBrains.
In my case It has obviously to do with your complicated version update strategy. Instead of updating the installed version (2016.3) to 2017.1 I was forced to install the new version as a new app which has lead to several conflicts. One of them is now that the command "phpstorm" points to a shell script of the older version. But this isn't installed anymore...
So instead to advice to move your app around on the system maybe you should work on a less complicated version update system or at least on a better documentation for this.
Yup, my reply back then is indeed incompetent and rather misleading.
We're working on implementing a universal way of updating the app: https://youtrack.jetbrains.com/issue/IDEA-108061.