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 254949 - Umbrella issue for wizard file generation in netbeans module
Summary: Umbrella issue for wizard file generation in netbeans module
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 8.1
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords: UMBRELLA
Depends on:
Blocks:
 
Reported: 2015-09-02 23:46 UTC by skygo
Modified: 2015-09-10 01:28 UTC (History)
1 user (show)

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 skygo 2015-09-02 23:46:57 UTC
Setup:
Netbeans 201509020320 jdk 8.60 windows 10x64

Procedure to follow for the 16 file type generation under module developpement according to Ondřej Vrabec:

Create a module without submodule:
 inside module use one of the wizard in Module Development.

I try to separate the result see after 
wizard resulting file are not compilable for
--Windows
--Option Panel
--Project Template
--Java Hint
wizard resulting file are compilable but some warning are displayed annotation processor missing, and boostrap class not set
--Action
--Portable HTML UI
--Wizard
--File Type
--Installer / Activator
--Quick Search Provider
--JavaHelp Help Set
--Code Generator
wizard resulting file are compilable
--Update Center
--Java SE Library Descriptor
--XML Layer
--Layout of Windows * ugly npe shown during wizard progress


++++ Cannot Compile ++++
--Windows
warning: [options] bootstrap class path not set in conjunction with -source 1.6
 error: cannot access HelpCtx
 cannot find Bundle.CTL...
 error: method does not override or implement a method from a supertype (componentOpened,componentClosed)

--Option Panel
warning: [options] bootstrap class path not set in conjunction with -source 1.6
warning: No processor claimed any of these annotations: javax.annotation.Generated
 error: cannot find symbol HelpCtx
import org.openide.util.HelpCtx;

--Project Template
 error: cannot find symbol
import org.openide.util.HelpCtx;
warning: No processor claimed any of these annotations: TemplateRegistration
warning: No processor claimed any of these annotations: javax.annotation.Generated
 error: package org.netbeans.api.templates does not exist
 error: cannot find symbol @TemplateRegistration

--Java Hint
warning: [options] bootstrap class path not set in conjunction with -source 1.6
warning: No processor claimed any of these annotations: org.netbeans.spi.java.hints.TriggerPattern,org.netbeans.spi.java.hints.Hint
warning: No processor claimed any of these annotations: javax.annotation.Generated
cannot find symbol
import org.netbeans.api.java.source.CompilationInfo;

++++ Build with Warning ++++

--Action
warning: [options] bootstrap class path not set in conjunction with -source 1.6
warning: No processor claimed any of these annotations: javax.annotation.Generated

--Portable HTML UI
warning: [options] bootstrap class path not set in conjunction with -source 1.6
warning: No SupportedSourceVersion annotation found on org.netbeans.html.boot.impl.JavaScriptProcesor, returning RELEASE_6.
warning: No processor claimed any of these annotations: javax.annotation.Generated

--Wizard
warning: [options] bootstrap class path not set in conjunction with -source 1.6
warning: No processor claimed any of these annotations: javax.annotation.Generated

--File Type
warning: [options] bootstrap class path not set in conjunction with -source 1.6
warning: No processor claimed any of these annotations: javax.annotation.Generated

--Installer / Activator
warning: [options] bootstrap class path not set in conjunction with -source 1.6

--Installer / Activator
warning: [options] bootstrap class path not set in conjunction with -source 1.6

--Quick Search Provider
warning: [options] bootstrap class path not set in conjunction with -source 1.6

--JavaHelp Help Set
warning: [options] bootstrap class path not set in conjunction with -source 1.6

--Code Generator
warning: [options] bootstrap class path not set in conjunction with -source 1.6


++++ Build is Clear ++++
--Update Center
--Java SE Library Descriptor
--XML Layer

--Layout of Windows
This  is special because build is clear but NPE with no dialog is shown:
just after layouting and closing the "fake netbeans windows manager" you may see a NPE at phase 3.Design Window Layout.
NPE at org.netbeans.modules.git.ui.status.GitVersioningTopComponent.writeExternal(GitVersioningTopComponent.java:136)
Comment 1 Ondrej Vrabec 2015-09-03 15:12:03 UTC
Fixing the uncompilable code. Later i will take a look at the warnings, but at the moment they are harmless i think.

Fix: http://hg.netbeans.org/core-main/rev/2666c7e4b839
Comment 2 Ondrej Vrabec 2015-09-03 15:24:56 UTC
The problem with the NPE in Git component: should be fixed in core-main #b92207fec015
Comment 3 Quality Engineering 2015-09-05 03:03:27 UTC
Integrated into 'main-silver', will be available in build *201509050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2666c7e4b839
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #254949 - Umbrella issue for wizard file generation in netbeans module
Add missing dependencies
Comment 4 skygo 2015-09-07 08:13:02 UTC
Wizard work ok for ant netbeans module project. 

Only the warning makes output ugly.

There are also wizards for netbeans modules dev in maven way. I can test them if needed.
Comment 5 Ondrej Vrabec 2015-09-07 08:31:21 UTC
(In reply to skygo from comment #4)
> There are also wizards for netbeans modules dev in maven way. I can test
> them if needed.
Would be great thanks. Please this time file a separate issue you find at apisupport/maven in BZ.
Comment 6 Ondrej Vrabec 2015-09-07 13:35:17 UTC
Regarding the warnings:
> warning: [options] bootstrap class path not set in conjunction with -source 1.6
because you're building with a different JDK than the source level for the module. Try setting both to JDK 1.7, should work.
> warning: No processor claimed any of these annotations: javax.annotation.Generated
harmless, just a note by javac, the same happens also for our NB modules.
Comment 7 skygo 2015-09-07 23:57:23 UTC
Reopening because Java Hint Wizard unit test are failing with the following error:

No ActiveDocumentProvider instance in global lookup.
java.lang.IllegalStateException: No ActiveDocumentProvider instance in global lookup.
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.<init>(RepositoryUpdater.java:1315)

I'm sorry not seeing that before, it's a build failure on wizard with maven (running test by default) that force me to check test on ant module.

I check again all wizard type but Java Hint is the only one to activate Test button.
Comment 8 Ondrej Vrabec 2015-09-08 08:33:16 UTC
added missing test deps, should run test without errors now i hope...

Fix: http://hg.netbeans.org/core-main/rev/6e18e122d1fb
Comment 9 Quality Engineering 2015-09-10 01:28:34 UTC
Integrated into 'main-silver', will be available in build *201509100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6e18e122d1fb
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #254949 - Umbrella issue for wizard file generation in netbeans module
Add missing test dependencies.