PhpStorm & Vagrant

Hey guys,

maybe I've missing something, but I can't figure out, how to use my vagrant box in PhpStorm.The situation is as following:
->Added project from existing sources
-> project has already a configured vagrantbox with Chef Provisioning
-> want to use vagrant inside of PhpStorm instead from terminal

I've read the help and pointed the Vagrant Instancefolder to my project folder, where the Vagrantfile is present. But PhpStorm won't recognize it: "There are no installed boxes". So I can add new boxes but I want to use my preconfigured instead. Is there any possibility to add my Vagrantbox or do I have to create it from scratch and copy/paste my settings in the new one to use it (which is very inconviently, because we've different projects with different boxes).

Greetings

6 comments
Comment actions Permalink

At step 2.
I don't want to create a new Vagrant Box and I don't need to init it in my project path. In fact the whole dir comes from a git repo including the PHP stuff and the Vagrant configurations and files, so that a new developer just has to run "vagrant up" to run the machine.

From the Settings | Project Settings | Vagrant window, specify the required parameters for Vagrant integration. The path to the Vagrant executable must be provided, as well as the instance folder (can be empty to use the project directory).

I did this, the path to the exec is valid and the instance folder is pointing to my projectRoot which contains the Vagrantfile. I've attached a screenshot of my file structure. Still if I go to the Settings the Vagrant Box is not detected and "vagrant up" from the menu wouldn't work. If I use the php terminal it just runs fine..


Greetings



Attachment(s):
Screen Shot 2014-01-20 at 11.49.09.png
0
Comment actions Permalink

Do you get a proper list of boxes if you run "<path_to_vagrant>/vagrant box list" from your project root directory with Vagrant file? Are there any error messages?

0
Comment actions Permalink

attached the output.
It's also running properly, it's just not recognized by Phpstorm



Attachment(s):
Screen Shot 2014-01-20 at 13.30.33.png
0
Comment actions Permalink

Can you please file a new bug with attached logs on our issue tracker: http://youtrack.jetbrains.com/issues/WI#newissue=yes ?
See http://intellij-support.jetbrains.com/entries/23368682 if you are not familiar with YouTrack.

0
Comment actions Permalink

Thank you have done it

WI-21830 Vagrant Box not found by PhpStorm

Greetings and thank you    

0

Please sign in to leave a comment.