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 119777 - New unbuilt project not built if running debug as first action
Summary: New unbuilt project not built if running debug as first action
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 119645 119949 (view as bug list)
Depends on:
Blocks: 118079
  Show dependency tree
 
Reported: 2007-10-23 14:11 UTC by Tomas Danek
Modified: 2007-10-29 16:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2007-10-23 14:11:18 UTC
Product Version: NetBeans IDE Dev (Build 200710230000)
Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06
System: Linux version 2.6.20-16-generic running on i386; UTF-8; en_US (nb)
Userdir: /tmp/ud
-------------
- create anagram game sample
- invoke Debug main project (c-f5)
- project is not built - 
init:
deps-jar:
Created dir: /home/tomas/NetBeansProjects/AnagramGame5/build/classes
compile:
Exception in thread "main" java.lang.NoClassDefFoundError: com/toy/anagrams/ui/Anagrams
Java Result: 1
debug:
BUILD SUCCESSFUL (total time: 0 seconds)

- invoking "debug" target using  the subnode of build.xml node works fine
Comment 1 Tomas Zezula 2007-10-23 16:05:16 UTC
The problem is that the project wasn't compiled before the debug was called and the "Track Java Dependencies" is off.
The javac task verbose from ant
fileset: Setup scanner in dir /home/tom/NetBeansProjects/01/AnagramGame/src with patternSet{ includes: [nothing,
whatsoever] excludes: [] }
No sources found.
Comment 2 Jesse Glick 2007-10-23 17:08:53 UTC
You have to build the project first when the checkbox is off. See issue #118079. If it tries to build everything before
debugging, debugging becomes slower when you don't in fact need to build anything. Probably in this case since it is the
first action run on the project, the IDE should ask for a complete build to be sure.
Comment 3 Jesse Glick 2007-10-24 14:28:34 UTC
Now behaves specially the first time a project is built or run in a given IDE session: always considers all files,
ignoring any in-IDE modifications.

Checking in src/org/netbeans/modules/java/j2seproject/J2SEActionProvider.java;
/shared/data/ccvs/repository/java/j2seproject/src/org/netbeans/modules/java/j2seproject/J2SEActionProvider.java,v  <-- 
J2SEActionProvider.java
new revision: 1.67; previous revision: 1.66
done
Checking in test/unit/src/org/netbeans/modules/java/j2seproject/J2SEActionProviderTest.java;
/shared/data/ccvs/repository/java/j2seproject/test/unit/src/org/netbeans/modules/java/j2seproject/J2SEActionProviderTest.java,v
 <--  J2SEActionProviderTest.java
new revision: 1.23; previous revision: 1.22
done
Comment 4 Tomas Zezula 2007-10-25 08:10:32 UTC
*** Issue 119949 has been marked as a duplicate of this issue. ***
Comment 5 Jesse Glick 2007-10-26 19:34:11 UTC
*** Issue 119645 has been marked as a duplicate of this issue. ***
Comment 6 Tomas Danek 2007-10-29 16:20:09 UTC
thanks. verified in #20071029