Re: how to build new tasklist/compiler

andrew <[email protected]> Mon, 13 Oct 2003 21:53:36 +0400
Newsgroups gmane.comp.java.netbeans.modules.tasklist.devel
Message-ID <[email protected]>
Tim, thanks! Your answer have helped me: I have found, the openide/registry module jar
is building without version info (simply org-netbeans-modules-registry.jar). I have 
removed "-1-1.5" in compiler/build.xml file (line 34). Now all is OK. 

Well, building is OK only.

Unfortunately, after starting the IDE, shown below exceptions take place, the IDE hangs
with ~0% CPU (I must kill the process). I have tried with fresh user dir too. I use 
current development CVS trunk. 

Have you time to continue to solve my problems? :-)

Thanks!
Andrew
=======================================================================================
java.lang.IllegalStateException: java.lang.NullPointerException from org.netbeans.modules.tasklist.compiler.ShowBuildErrorsAction@148555
	at org.openide.util.SharedClassObject$DataEntry.tryToInitialize(SharedClassObject.java:834)
	at org.openide.util.SharedClassObject$DataEntry.getMap(SharedClassObject.java:763)
	at org.openide.util.SharedClassObject.putProperty(SharedClassObject.java:248)
	at org.openide.util.SharedClassObject.putProperty(SharedClassObject.java:273)
	at org.openide.util.actions.SystemAction.putValue(SystemAction.java:118)
[catch] at org.netbeans.core.NbKeymap$1.run(NbKeymap.java:151)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
==>
java.lang.NullPointerException
	at org.netbeans.modules.tasklist.compiler.CompileErrorsView.<init>(CompileErrorsView.java:156)
	at org.netbeans.modules.tasklist.compiler.CompileErrorsView.getDefault(CompileErrorsView.java:82)
	at org.netbeans.modules.tasklist.compiler.ShowBuildErrorsAction.getView(ShowBuildErrorsAction.java:32)
	at org.netbeans.modules.tasklist.core.ToggleViewAction.isViewOpened(ToggleViewAction.java:70)
	at org.netbeans.modules.tasklist.core.ToggleViewAction.initialize(ToggleViewAction.java:117)
	at org.openide.util.SharedClassObject$DataEntry.tryToInitialize(SharedClassObject.java:831)
	at org.openide.util.SharedClassObject$DataEntry.getMap(SharedClassObject.java:763)
	at org.openide.util.SharedClassObject.putProperty(SharedClassObject.java:248)
	at org.openide.util.SharedClassObject.putProperty(SharedClassObject.java:273)
	at org.openide.util.actions.SystemAction.putValue(SystemAction.java:118)
[catch] at org.netbeans.core.NbKeymap$1.run(NbKeymap.java:151)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

======= On Mon October 13 2003 20:29, Tim Lebedkov wrote: =======
Hello Andrew,

you need openide\registry  to build tasklist/compiler.
build.xml under tasklist/compiler uses
openide/registry/netbeans/modules/org-netbeans-modules-registry-1-1.5.jar
as a library name for the registry API.
Just go into openide/registry and start ant to build this library

--Tim

andrew wrote:
>Tim,
>
>Will you be so kind to point me to right way?
>
>The problem is: after your last commiting of new tasklist/compiler I can not
>realize how to build the module. I'm using overriden "stable" definition in
>nbbuild/user.build.properties like this:
>
>config.modules.stable=${config.modules.slim}, \
>        ant, \
>        core/settings, \
>        diff, \
>        extbrowser, \
>        usersguide, \
>        treefs, \
>        vcscore, \
>        vcsgeneric, \
>        vcsgeneric/profiles/cvsprofiles, \
>        ${local.config.libs}, \
>        ${local.config.xml}, \
>	tasklist/api, \
>	tasklist/core, \
>        tasklist/suggestions, \
>	tasklist/docscan, \
>	tasklist/usertasks, \
>	tasklist/editor, \
>	tasklist/javaparser, \
>	tasklist/compiler, \
>	tasklist/pmd
>
>While building, I get this error:
>
>compile:
>    [javac] Compiling 33 source files
>    [javac]
> /home/nbtrunk/nb_all/tasklist/compiler/src/org/netbeans/modules/tasklist/co
>mpiler/CompileErrorsView.java:33: package org.netbeans.api.registry does not
> exist [javac] import org.netbeans.api.registry.Context;
>    [javac]                                  ^
>... and so on.
>
>I have tried to add to user.build.properties something like core/registry
> and openide/registry without success. As I don't understand NB build
> architecture, I don't know where to go :-)
>
>Thanks in advance!
>Andrew
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [email protected]
>For additional commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]