Terminal command: pstorm giving error after 2021.1.1 update

steven$ pstorm /usr/local/etc/php/8.0/php.ini 
FSPathMakeRef(/Applications/PhpStorm.app) failed with error -43.
steven$ pstorm
FSPathMakeRef(/Applications/PhpStorm.app) failed with error -43.

This is on MacOS Catalina, just installed phpstorm 2021.1.1 today and when trying to run it gives this error.

If I just run `pstorm -h` that works fine and gives help menu

0
5 comments

Do you have PhpStorm installed from a standalone installer or using ToolBox app? Does /Applications/PhpStorm.app exist?

0
Avatar
Permanently deleted user

Ah that might be it, I had standalone installed for about 2 years, then in the last few months found ToolBox and installed PhpStorm from there, within the last month I uninstalled the standalone. The ToolBox is so much easier to manage it. But you're right it was pointing to the manual install first.

I did have both versions installed for about a month, then I got rid of the standalone while the ToolBox version was still installed. Then upgraded to 2021.1.1, and then tried to use pstorm. Don't think I tried it after uninstalling, so that is most likely the reason.

Is there an easy way to remap it?

/Applications/PhpStorm.app
bash: /Applications/PhpStorm.app: No such file or directory

0

Sure, open the IDE settings in a Toolbox:

Then change the shell script name there:

 

0
Avatar
Permanently deleted user

Thank you that worked.

It's unclear at first what the shell path does, for anyone having the same problems, point the shell path above to something like /usr/local/bin
it'll create the binary in that directory named `phpstorm` then you use that for your commands, for whatever reason it's been renamed from `pstorm` like I had been using.

Works great now, thanks.

1

Please sign in to leave a comment.