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 249362 - Empty tabs displayed for Java sources generated as Groovy stubs
Summary: Empty tabs displayed for Java sources generated as Groovy stubs
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-15 16:01 UTC by Jesse Glick
Modified: 2014-12-15 16:01 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 Jesse Glick 2014-12-15 16:01:58 UTC
I feel like this was filed somewhere else, but I cannot find it now. 20141201 but has been happening for a long time.

If I try to open a Java source generated by the Groovy stub compiler Maven plugin such as github.com/jenkinsci/jenkins/core/target/generated-test-sources/groovy-stubs/hudson/util/SecretTest.java in the editor, a tab opens with the correct icon, but no title and no content (just a blank gray area). (Sometimes it initially opens correctly, but then the title disappears from the tab—while leaving the editor content.) jenkinsci/jenkins/core/target/generated-sources/localizer/hudson/cli/Messages.java (created by a different plugin) opens correctly.

I currently have the Groovy plugin disabled (since there is no version on the update center compatible with dev versions of the IDE); the behavior is the same when it is enabled.

The log file has some messages (not from a Logger!) like

File: /…/jenkinsci/jenkins/core/target/generated-test-sources/groovy-stubs/hudson/util/SecretTest.java
StartOffset: 1,258

as well as warnings like

INFO [org.netbeans.core.windows.view.ui.TabbedHandler]: TopComponent has no icon: MVCTC[name=, peer=[model=current=org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD@1d8e4190]]

and

WARNING [org.netbeans.modules.java.source.parsing.JavacParser]: Invalid or deleted file: /…/jenkinsci/jenkins/core/target/generated-test-sources/groovy-stubs/hudson/util/SecretTest.java