Multiple Projects

Hi.  Ever since upgrading to PhpStorm 7 I'm unable to open multiple projects from the command line, or any other way as far as I can tell.  My preferences -> general screen looks like this:

Screen Shot 2013-10-30 at 1.37.52 PM.png

I'm opening projects using the terminal "pstorm" command.  It opens the first project, but won't open any more after that so long as PhpStorm is open with a current project.  If I close PhpStorm, it will work again.  I'm just trying to get rid of the one project limit so I can return to my old workflow.


Comment actions Permalink

This is still a problem, and with WebStorm also... any suggestion as a fix?

Comment actions Permalink

@Eugene Morozov

I really doubt that it's the same issue. AFAIK the case here is trivial and absolutely different to that one.

OP wants to open a project from command line/terminal. I can easily do this on my Windows 7 machine:

"C:\Program Files (x86)\JetBrains\PhpStorm\bin\PhpStorm.exe" E:\Projects\web\

Such command will open new project in new frame/window (at least with my settings it will be done in new frame) as long as project is not yet opened regardless if PhpStorm is already running or not.

On Mac/Linux user can create that "pstorm" alias/command just for that (special action available in either Tools or Help menu).



See if specifying full path to actual (or whatever you guys have there on Mac/Linux) as well as specifying full path to the project (similar to what I did) will do any better.

Comment actions Permalink

On Mac, WStorm created a wstorm command, it is a python script, placed: /usr/local/bin/wstorm

When Webstorm doesn't run in the background, and I run the following command in my project folder:

$ wstorm .

It will launch WebStorm open the project properly.

However, if the WebStorm already running and I try to open some other project, it does nothing (actually focus on WebStorm app).

But, I can directly call `/Applications/` with the project folder, and in this case, it works nicely.

If I remove the generated command line command and recreate, doesn't help...

probably, the best at this stage, if I create an alias to the original executable...



Comment actions Permalink


Does "$ wstorm /full/path/to/project" works .. or only by directly calling ?

Comment actions Permalink

Doesnt work unfortunatelly, only by direct calling.

Comment actions Permalink

I just created a nodescript as a solution.

#!/usr/bin/env node
var fs = require('fs');
var path = require('path');
var cp = require('child_process');

var WEBSTORM = '/Applications/';

console.log('Launching Webstorm...');

var paramLength = process.argv.length;

var pathParam = paramLength < 3 ? './' : process.argv[paramLength-1];

cp.exec(WEBSTORM + ' ' + path.resolve(pathParam));



Please sign in to leave a comment.