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.

Thanks,
Justin

7 comments

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

0

@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\MySuperProject.com

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).

 

@Zoltan

See if specifying full path to actual PhpStorm.app (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.

0

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/WebStorm.app/Contents/MacOS/webstorm` 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...

 

 

0

@Zoltan

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

0

Doesnt work unfortunatelly, only by direct calling.

0

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/WebStorm.app/Contents/MacOS/webstorm';

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

var paramLength = process.argv.length;

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

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

process.exit(0);

0

Please sign in to leave a comment.