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 200546 - Profiler has to be restarted N times for N project dependencies before works.
Summary: Profiler has to be restarted N times for N project dependencies before works.
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-31 09:24 UTC by converginglight
Modified: 2011-10-04 13:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Reproduction of the bug (32.31 KB, application/x-gzip)
2011-07-31 09:24 UTC, converginglight
Details

Note You need to log in before you can comment on or make changes to this bug.
Description converginglight 2011-07-31 09:24:43 UTC
Created attachment 109713 [details]
Reproduction of the bug

About the project structure:
1) The main project references multiple other (which reference themselves) in a hierarchic way. (Main --depends-on--> B --depends-on--> A )
2) All projects are set to compile-on-save.

When does this bug occurs exactly:

1) Remove .netbeans/dev/var recursively (so NB wouldn't "remember" the profect, otherwise it does)
2) Remove in main project: nbproject/private/profiler
3) Run NB
4) Do clean+build on main project
5) Select "Profile" for ProjectMain.java, create NEW(!!!) memory profiler, change some settings away from defaults.

The profiler fails to find dependent classes.

Sadly, I can only reproduce the bug SOMETIMES using reduced number of nearly-empty projects with mentioned configuration. But for my real project with (currently) 14 dependent projects it happens very often and causes a lot of stress (I have to run the Profiler 14 times until it works).

The attachment contains three hierarchically dependent projects.
At the end of this report you find the output of the error (happens only at first and second "Profile...", afterwards the profiler runs).

It seems that the profiler fails to find dependent classes.

= = = = = OUTPUT = = = = =
init:
profile-init:
Deleting: /Misc/BugReproduction/ProjectMain/build/built-jar.properties
deps-jar:
Updating property file: /Misc/BugReproduction/ProjectMain/build/built-jar.properties
ProjectA.init:
ProjectA.deps-jar:
Updating property file: /Misc/BugReproduction/ProjectMain/build/built-jar.properties
ProjectA.init:
ProjectA.deps-clean:
Updating property file: /Misc/BugReproduction/ProjectA/build/built-clean.properties
Deleting directory /Misc/BugReproduction/ProjectA/build
ProjectA.clean:
Created dir: /Misc/BugReproduction/ProjectA/build/classes
Created dir: /Misc/BugReproduction/ProjectA/build/empty
Created dir: /Misc/BugReproduction/ProjectA/build/generated-sources/ap-source-output
Compiling 1 source file to /Misc/BugReproduction/ProjectA/build/classes
ProjectA.compile:
Created dir: /Misc/BugReproduction/ProjectA/dist
Building jar: /Misc/BugReproduction/ProjectA/dist/ProjectA.jar
ProjectA.jar:
ProjectB.init:
ProjectB.deps-jar:
Updating property file: /Misc/BugReproduction/ProjectMain/build/built-jar.properties
ProjectB.init:
ProjectB.deps-clean:
Updating property file: /Misc/BugReproduction/ProjectB/build/built-clean.properties
ProjectA.init:
ProjectA.deps-clean:
Updating property file: /Misc/BugReproduction/ProjectB/build/built-clean.properties
Deleting directory /Misc/BugReproduction/ProjectA/build
ProjectA.clean:
Deleting directory /Misc/BugReproduction/ProjectB/build
ProjectB.clean:
Created dir: /Misc/BugReproduction/ProjectB/build/classes
Created dir: /Misc/BugReproduction/ProjectB/build/empty
Created dir: /Misc/BugReproduction/ProjectB/build/generated-sources/ap-source-output
Compiling 1 source file to /Misc/BugReproduction/ProjectB/build/classes
/Misc/BugReproduction/ProjectB/src/my/SomeClassB.java:5: error: cannot find symbol
		extends SomeClassA {
		        ^
  symbol: class SomeClassA
1 error
/Misc/BugReproduction/ProjectMain/nbproject/build-impl.xml:587: The following error occurred while executing this line:
/Misc/BugReproduction/ProjectMain/nbproject/build-impl.xml:1064: The following error occurred while executing this line:
/Misc/BugReproduction/ProjectB/nbproject/build-impl.xml:611: The following error occurred while executing this line:
/Misc/BugReproduction/ProjectB/nbproject/build-impl.xml:246: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 0 seconds)
Comment 1 J Bachorik 2011-10-04 11:34:54 UTC
Profiler doesn't play nice with the "Compile On Save" feature yet. Try disabling that feature for the time being.
Comment 2 J Bachorik 2011-10-04 13:30:47 UTC
It works in the latest dev builds of NB 7.1