Search code examples
phpsymfonynetbeans-7netbeans-platformnetbeans-plugins

Error with a new project in Netbeans 7.3 and Symfony2


I am created a Symfony2 project in NetBeans 7.3 .

The project created successfully but NetBeans shows syntax errors in some of vendor package files of my Symfony2 project.

All things that i did was :

1.Download netbeans 7.3(php) and install it.

2.Download "Symfony 2.3.2 with vendors" zip file.

3.Insert into tools-->Symfony2 the adress of zip file.

4.Created the project.

Errors are from 5 or 6 file on vendor package files , some of them are PHP files and others are twig files.

snapshot of netbeans

i apperciate for any bit of help.thansk


Solution

  • Netbeans will show errors in some of the vendor files because, well, they contain "errors". For example, under the Sensio generator bundle, there are some template type controller files with a php extension. The files themselves are not valid php and hence get flagged by netbeans.

    It is annoying but it's just something you have to ignore. Or maybe coax the vendors to tweak their code. Some folks are trying to get netbeans to skip these sorts of errors but no luck so far.

    More info here: https://netbeans.org/bugzilla/show_bug.cgi?id=226954