suspicious_coder
suspicious_coder

Reputation: 29

Unable to setup Symfony2 framework with NetBeans IDE (8.1)

Stuck at Error: "Symfony console must be selected"

I've been trying for almost a week to set up an environment to develope a web application using Symfony2 framework and NetBeans IDE. I already have a an HTML-Bootstrap-Javascript project ready. There is no engine to the car yet, except for a few trial use cases. The requirement is to select an approriate framework and IDE to develop the php part of the application.

I've done the following:

After creating new project, and going through all the steps of the wizard (selecting framework symphony2) I get the error "symfony2 console must be selected" At this point the options dialog box comes to foreground with the "frameworks & tools" tab open.Option dialog box when pops up when error dialog box is closed

Since I'm not using any zip file, instead I'm using the installer, I cannot apply the recommendations on another post here which talks about extracting the zip folder and creating a new zip folder with the sub contents.

Getting frustrated with this combo now, btw...I have tried an older version of NetBeans so I could use the .zip folder from GitHub, implemented the solution I found on stackoverflow....same result. I can really use some help here!! Thanks in advance.

Upvotes: 3

Views: 6476

Answers (2)

Jorge H
Jorge H

Reputation: 352

Here is my solution:

  1. This solution was tested using Windows XP, Xampp, NetBeans 8.1 and symfony 2.8.
  2. Download Symfony 2.8 as explained in the Symfony official site.
  3. Download it into a folder named "C:\my_project" (but my destination folder, will be: "C:\projects\my_project") Then I compressed this folder (for example, by using Winzip).

  4. Open NetBeans 8.1. First of all, I select "Tools|Options|PHP and put in the PHP 5 Interpeter: "C:\xampp\php\php.exe" and click "OK"

  5. Select : "File | Import project ... | From the ZIP file" I select the ZIP file "my_project.zip", and the "Folder: C:\projects" and proceed to import the project

  6. When importing is finished, select: "File | Close All Projects"

  7. Then "File | Open project ..." and select the new project

  8. Finally, select "File | Project Properties" and in the "Sources" option make sure that the path: "Project folder" and "Source folder" are the same. In my case: "C:\projects\my_project"

Upvotes: 1

geoB
geoB

Reputation: 4714

In Netbeans: Project Properties, Ignored Folders, include the project's vendor folder. Any errors Netbeans finds there can be ignored.

Also, in project properties, select Frameworks, Symfony2. Check "Enabled" and "Ignore app/cache Directory". With Symfony already installed, you do not need an entry in Netbean's Tools, Options, PHP, Frameworks..., Symfony2 Installer. Be sure that "Ignore cache Directory by Default" is checked.

Upvotes: 2

Related Questions