After creating a project with existing sources, NetBeans (Build 200908022240) failed to detect it as a Symfony project.
The cause for this is probably the alternative directory structure used in the project. The project uses the following
This is a perfectly valid directory structure for Symfony. The reason for using this kind of layout is to reduce clutter
on the production server, where the site directory is located outside the public web directory.
Could you please point me to a URL where could I find more information about possible directory structure? This is
needed in order to recognize other possibilities as well.
In any case, I will look at it.
With Symfony, you can basically have any kind of directory structure you wish, therefore the IDE should not rely on it
to detect Symfony. A better way for detecting Symfony would be to look for a file named "symfony", anywhere in the
project tree. This file is the CLI executable for running Symfony tasks.
More info on customizing directory structure:
This is what I did in my project to move the web root:
Unfortunately, this scernario is not supported and it is not clear whether it will be done soon or not (sorry, most users use the standard directory structure).
Couldn't you simply base the symfony detection on the presence of the file called "symfony" located at the root of the source files (the php file used to run all the commands) ?
Anybody with the capabilities to make major changes to the symfony file structure would certainly be able to adapt it in order to have that file a the root of the project source files.
I say this because I ran into the same problem as jmerhar although I just have a small difference to the "normal" symfony folder structure, namely my web folder is called www (something that is required by my production environement).
It would be really great if you could adapt to that situation, I'm sure we are quite a few people who tried out NetBeans when we heard it had symfony support and then were somewhat dissapointed discovering it didn't work just because we don't have the standard distribution structure...
*** Bug 178482 has been marked as a duplicate of this bug. ***
I will try to fix as many cases as possible.
Should be fixed but I need your verification if possible. If something does not work for you, just reopen this issue, attach a sample project and describe steps to reproduce.
Thanks a lot.
Integrated into 'main-golden', will be available in build *201002060200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Tomas Mysik <firstname.lastname@example.org>
Log: #170775: Symfony not detected with existing sources