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.
Build: NetBeans IDE Dev (Build 201507190001) VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b27 OS: Mac OS X User Comments: manikantannaren: Created a Module Suite Added a Module to the suite In the module used the New Wizard to create a new FileType Provided the icon and prefixes in the wizard Clicked Finish girish946: I'm Trying to implement my own file type in the netbeans plugin. I've followed the steps given at https://platform.netbeans.org/tutorials/nbm-filetype.html this exception is occuring at the third screen(Name, Icon and Location) of File Type Wizard. Stacktrace: java.io.IOException: No annotation org.netbeans.api.templates.TemplateRegistration in ClasspathInfo [boot: /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/sunrsasign.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/classes:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/L at org.netbeans.modules.apisupport.project.ui.wizard.common.CreatedModifiedFiles$PackageInfo$1$1$1.run(CreatedModifiedFiles.java:1441) at org.netbeans.modules.apisupport.project.ui.wizard.common.CreatedModifiedFiles$PackageInfo$1$1$1.run(CreatedModifiedFiles.java:1432) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:635) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:625) at org.netbeans.modules.java.source.parsing.MimeTask.run(MimeTask.java:83) at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:609)
Created attachment 154783 [details] stacktrace
Due to the exception, the template file and package-info is not generated
Created attachment 155676 [details] stacktrace 1. Created a new Netbeans Module Project 2. Brought up the wizard for New FileType 3. Provided the information (mime-type, extension, prefix and icon) 4. Clicked Finish 5. Failed at generating package-info.java
this fix should help. Jirko (jkovalsky), Tondo, this is a problem i think. When the IDE services were split into UI/non-UI modules during server-split, it broke a lot of apisupport's wizards (for Wizards, Loaders, Options etc.). It's not dramatic, usually it's just missing dependencies but practically it does not look good if NB developers go through our wizards and they generate uncompilable code. Could someone from QE (or from NetCAT) go through all our wizards and try to generate all of the supported ones we have (always into a fresh new module containing no deps so far)? If you find a problem please file a separate issue to apisupport. fix: http://hg.netbeans.org/core-main/rev/69a8e3b38129
Thanks Ondro for both the investigation and the fix. Mani, are you willing to do that test or should I turn to the broader NetCAT audience?
The FileType Wizard I can handle, the other wizard, I hope NetCat members can take over?
OK, I will ask for volunteers in the next NetCAT status report. BTW, Action wizard seems to be clear Ondro.
Integrated into 'main-silver', will be available in build *201508300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/69a8e3b38129 User: Ondrej Vrabec <ovrabec@netbeans.org> Log: #253634 - [81cat]java.io.IOException: No annotation org.netbeans.api.templates.TemplateRegistration in ClasspathInfo [boot: /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/resources.jar: Add missing dependency.
Verified on Build 201508300002. All files properly generated. Output as expected.
Sorry my mistake. I tested only the one I reported - FileType wizard and it's output.