This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 224525 - project window show errors in symfony
Summary: project window show errors in symfony
Status: RESOLVED DUPLICATE of bug 226954
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-05 20:47 UTC by massi
Modified: 2013-08-26 11:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
symfony vendor directory structure which shows errors in source code. (42.69 KB, image/jpeg)
2013-01-05 20:47 UTC, massi
Details
Project window screenshot where "error" icons appeared (30.23 KB, image/png)
2013-01-13 17:18 UTC, massi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description massi 2013-01-05 20:47:11 UTC
Created attachment 129927 [details]
symfony vendor directory structure which shows errors in source code.

After installing NetBeans 7.3, the "Project" window showed the tooltip "Contains files with errors." for all those symfony files which actually contains code fragments with syntax errors (namely tests and skeletons). Attached picture shows a piece of symfony vendor directory structure with such errors. 
I've also tried to uncheck and check again the "" checkbox in project properties, but this didn't fix the problem.
The same source code didn't show any errors in NetBeans 7.2.1.
Comment 1 Tomas Mysik 2013-01-07 05:44:40 UTC
From the screenshot, it seems that README.md file is a PHP file and it contains error(s). This error is "propagated" to the top level directory of the project (e.g. Source Files) [1]. If there is no PHP error in the README.md file, report a new issue against php/Editor and attach it. If it is, then the error reporting works. If you don't like it, you can tell NetBeans that *.md files are not PHP files (in Tools > Options > Miscellaneous > Files).

Thanks for reporting.
[1] This propagation is a new feature of NB 7.3 I believe.
Comment 2 massi 2013-01-13 17:16:35 UTC
Tomas,
the issue is not only related to .md files (please see the attached picture.
With NetBeans 7.2.1 this was not happening.

Here step by step the experience:
    - downloaded NetBeans 7.2.1 for php from www.netbeans.org/
    - installed it
    - started with new php project from existing source
    - then NetBeans started parsing project souce files
    - and all went ok, the project was clean.

Code completion was very slow (but this is another story and I saw several ticket opened for this). By the way I thought NetBeans 7.3 fixed code completion.

So I've:
    - uninstalled NetBeans 7.2.1
    - downloaded NetBeans 7.3 beta 2 php version from www.netbeans.org/
    - installed it
    - openend the same project created before (from existing source)
    - then NetBeans started parsing project souce files
    - but this time, while parsing, the error icons started to appear (this wasn't appening with the previous version.

Because of with previous version was not giving errror with the same source cose I thought this could be a bug.

Thanks for your support.
Comment 3 massi 2013-01-13 17:18:02 UTC
Created attachment 130159 [details]
Project window screenshot where "error" icons appeared
Comment 4 Tomas Mysik 2013-01-14 05:56:13 UTC
OK, we will check it. But please, we need at least some of the files with the errors - it means, attach please e.g. README.mdown and/or Bundle.php and/or Configuration.php etc.

Also please notice that in NB 7.2, the error badges were _not_ "propagated" to the Source Files (and Test Files) so if the folder with a file with errors was not opened (expanded) in the Projects view, there were no error badges anywhere. This has been fixed/improved for NB 7.3.

I guess that in your files there are real errors so the error badges are corretly "propagated" to the Source Files. But we will check it once you attach those files.

Simply reopen this issue again. Thanks.
Comment 5 massi 2013-01-14 12:45:20 UTC
Tomas,
there is no need to attach any further file or reopen the ticket as I checked with old versione and new version, and the problem is exactly the one you said: badge propagation. I've dig into the files and I've seen the files are "erroneous" even in 7.2.1 version, but not propagated up to the root.

Thanks for your help and support.
Comment 6 ExTexan 2013-08-26 10:40:32 UTC
I'm experiencing the same problem running NB 7.3.1 (PHP flavor).

I recently had to reload Windows - which required re-installing EVERYTHING (including NB).  I can't recall at this point which version of NB I was using before.  Whenever it told me there was a new version available, I always let it update, but I don't know if that crosses *major* version numbers (i.e. V6.x updating to V7.x).  But, in any case, I downloaded the latest version during the re-installation.

I have 4 main "projects" I work in all the time, two copies of Drupal 6 (for clients and for personal) and two copies of Drupal 7 (also for clients/personal).  These projects did not show errors before I reloaded everything.  In fact, I have not even touched the code at all in most of the D6 sites.

Now, with NB 7.3.1, ALL projects show the error icons.  I haven't checked all files that are flagged, but mostly it seems to be with .test files (Simple Test files in Drupal).

Is there a fix for this?  Please let me know if I need to provide sample files.
Comment 7 Tomas Mysik 2013-08-26 11:50:15 UTC

*** This bug has been marked as a duplicate of bug 226954 ***