[jira] [Commented] (NETBEANS-698) AssertionError loading Designer pallete

2018-04-24 Thread Attila Kelemen (JIRA)

[ 
https://issues.apache.org/jira/browse/NETBEANS-698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16450338#comment-16450338
 ] 

Attila Kelemen commented on NETBEANS-698:
-

1. This issue is definetly not a blocker because it was always there. The only 
reason it manifests because assertations are enabled (and according to László, 
it is disabled on a release build, so it won't get noticed in the release).

2. I believe I have fixed this but since I couldn't reproduce it, I need Will 
(or whoever can reproduce it) to verify the fix.

3. This issue has absolutely nothing to do with compile on save or anything 
besides the custom Swing component palette.

4. I don't want to track this issue in two locations, so I'm closing it and 
further discussions should be done on the [plugin's issue 
page|https://github.com/kelemen/netbeans-gradle-project/issues/382].

> AssertionError loading Designer pallete
> ---
>
> Key: NETBEANS-698
> URL: https://issues.apache.org/jira/browse/NETBEANS-698
> Project: NetBeans
>  Issue Type: Bug
>  Components: third-party - Other
>Affects Versions: 9.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-205-on-20180202)
> Java: 10; Java HotSpot(TM) 64-Bit Server VM 10+46
> Runtime: Java(TM) SE Runtime Environment 10+46
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_AU (nb)
> User directory: Z:\tmp\.other\user\netbeans\v09.00-beta\FourAbs
> Cache directory: Z:\tmp\.other\cache\netbeans\FourAbs-09
> Plugins:
>   * Netbeans Gradle plugin v1.4.3
>Reporter: will mason
>Priority: Blocker
>  Labels: AssertionError, GUI, Gradle, Regression, Windows, cache, 
> cache-control, designer, pallette
> Fix For: 9.0
>
> Attachments: AssertionError-02.logs, AssertionError.logs, 
> image-2018-04-19-10-26-25-919.png, messages-02.log, messages.log
>
>
> h2. context
>  * Starting Netbeans from command-line
>  * Reset windows
> h2. expected / desirable
>  * Windows should be reset to default state
> h2. actual
>  * The pallete sub-panel was not painting ... It just showed "Loading ..." 
> for quite some time.
>  * I used reset windows to try to get it back
>  * Errors in the attached {{messages.log}} file.
>  * Assertion Error, see AssertionError.logs attachment.
>  ** AssertionError stacktrace:
> {noformat}
> java.lang.AssertionError: 
> file:/D:/work/products/FourAbs/FourAbsClientCommon/build/classes/groovy/main
>   at 
> org.netbeans.modules.form.project.ClassSource.getClasspath(ClassSource.java:81)
>   at 
> org.netbeans.modules.form.project.ClassPathUtils.loadClass(ClassPathUtils.java:164)
>   at 
> org.netbeans.modules.form.palette.PaletteItem.loadComponentClass(PaletteItem.java:318)
>   at 
> org.netbeans.modules.form.palette.PaletteItem.getComponentClass(PaletteItem.java:146)
>   at 
> org.netbeans.modules.form.palette.PaletteItem.getBeanDescriptor(PaletteItem.java:346)
>   at 
> org.netbeans.modules.form.palette.PaletteItem.getTooltip(PaletteItem.java:264)
>   at 
> org.netbeans.modules.form.palette.PaletteItemDataObject$ItemNode.getShortDescription(PaletteItemDataObject.java:333)
>   at org.openide.nodes.FilterNode.getShortDescription(FilterNode.java:526)
>   at org.openide.nodes.FilterNode.getShortDescription(FilterNode.java:526)
>   at 
> org.netbeans.modules.palette.DefaultItem.getShortDescription(DefaultItem.java:64)
>   at 
> org.netbeans.modules.palette.ui.CategoryList$ItemRenderer.getListCellRendererComponent(CategoryList.java:305)
>   at 
> java.desktop/javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1439)
>   at 
> org.netbeans.modules.palette.ui.CategoryList$CategoryListUI.updateLayoutState(CategoryList.java:386)
>   at 
> java.desktop/javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1389)
>   at 
> java.desktop/javax.swing.plaf.basic.BasicListUI.getCellBounds(BasicListUI.java:1027)
>   at java.desktop/javax.swing.JList.getCellBounds(JList.java:1641)
>   at java.desktop/javax.swing.JList.ensureIndexIsVisible(JList.java:1153)
>   at 
> org.netbeans.modules.palette.ui.CategoryDescriptor.doSetOpened(CategoryDescriptor.java:200)
>   at 
> org.netbeans.modules.palette.ui.CategoryDescriptor.(CategoryDescriptor.java:99)
>   at 
> org.netbeans.modules.palette.ui.PalettePanel.computeDescriptors(PalettePanel.java:186)
>   at 
> org.netbeans.modules.palette.ui.PalettePanel.access$500(PalettePanel.java:87)
>   at 
> org.netbeans.modules.palette.ui.PalettePanel$2.run(PalettePanel.java:284)
>   at 
> org.netbeans.modules.palette.ui.PalettePanel.refresh(PalettePanel.java:301)
>   at 
> org.netbeans.modules.palette.ui.PalettePanel.setContent(PalettePanel.java:403)
>   

[jira] [Commented] (NETBEANS-698) AssertionError loading Designer pallete

2018-04-23 Thread Attila Kelemen (JIRA)

[ 
https://issues.apache.org/jira/browse/NETBEANS-698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16448607#comment-16448607
 ] 

Attila Kelemen commented on NETBEANS-698:
-

It seems that the issue is that there is an "assert" there in NB and 
assertation is enabled by default in NB 9 (I would guess that this issue would 
have happened in earlier versions of NB as well, if assertations were enabled). 
I haven't check this at great enough detail yet, but if I remember correctly, 
the URL will end with a slash if the classpath entry exists at the time of 
loading the project. In this particular case I could make sure that this path 
ends with a slash (since I happen to know that the build output directory is 
... well ... a directory) but it seems a little fragile since there could be 
all kinds of things on the class path. Especially now, since the ".jar" files 
should be returned for the sources as well. That said, "file" URLs ought to be 
directories on the class path (because jars have the "jar" scheme), so I will 
review how these URLs are actually created.

 

A trivial workaround is to remove the "-J-ea" from netbeans.conf.

> AssertionError loading Designer pallete
> ---
>
> Key: NETBEANS-698
> URL: https://issues.apache.org/jira/browse/NETBEANS-698
> Project: NetBeans
>  Issue Type: Bug
>  Components: third-party - Other
>Affects Versions: 9.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-205-on-20180202)
> Java: 10; Java HotSpot(TM) 64-Bit Server VM 10+46
> Runtime: Java(TM) SE Runtime Environment 10+46
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_AU (nb)
> User directory: Z:\tmp\.other\user\netbeans\v09.00-beta\FourAbs
> Cache directory: Z:\tmp\.other\cache\netbeans\FourAbs-09
> Plugins:
>   * Netbeans Gradle plugin v1.4.3
>Reporter: will mason
>Priority: Blocker
>  Labels: AssertionError, GUI, Regression, cache, cache-control, 
> designer, pallette
> Fix For: 9.0
>
> Attachments: AssertionError-02.logs, AssertionError.logs, 
> image-2018-04-19-10-26-25-919.png, messages-02.log, messages.log
>
>
> h2. context
>  * Starting Netbeans from command-line
>  * Reset windows
> h2. expected / desirable
>  * Windows should be reset to default state
> h2. actual
>  * The pallete sub-panel was not painting ... It just showed "Loading ..." 
> for quite some time.
>  * I used reset windows to try to get it back
>  * Errors in the attached {{messages.log}} file.
>  * Assertion Error, see AssertionError.logs attachment.
>  ** AssertionError stacktrace:
> {noformat}
> java.lang.AssertionError: 
> file:/D:/work/products/FourAbs/FourAbsClientCommon/build/classes/groovy/main
>   at 
> org.netbeans.modules.form.project.ClassSource.getClasspath(ClassSource.java:81)
>   at 
> org.netbeans.modules.form.project.ClassPathUtils.loadClass(ClassPathUtils.java:164)
>   at 
> org.netbeans.modules.form.palette.PaletteItem.loadComponentClass(PaletteItem.java:318)
>   at 
> org.netbeans.modules.form.palette.PaletteItem.getComponentClass(PaletteItem.java:146)
>   at 
> org.netbeans.modules.form.palette.PaletteItem.getBeanDescriptor(PaletteItem.java:346)
>   at 
> org.netbeans.modules.form.palette.PaletteItem.getTooltip(PaletteItem.java:264)
>   at 
> org.netbeans.modules.form.palette.PaletteItemDataObject$ItemNode.getShortDescription(PaletteItemDataObject.java:333)
>   at org.openide.nodes.FilterNode.getShortDescription(FilterNode.java:526)
>   at org.openide.nodes.FilterNode.getShortDescription(FilterNode.java:526)
>   at 
> org.netbeans.modules.palette.DefaultItem.getShortDescription(DefaultItem.java:64)
>   at 
> org.netbeans.modules.palette.ui.CategoryList$ItemRenderer.getListCellRendererComponent(CategoryList.java:305)
>   at 
> java.desktop/javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1439)
>   at 
> org.netbeans.modules.palette.ui.CategoryList$CategoryListUI.updateLayoutState(CategoryList.java:386)
>   at 
> java.desktop/javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1389)
>   at 
> java.desktop/javax.swing.plaf.basic.BasicListUI.getCellBounds(BasicListUI.java:1027)
>   at java.desktop/javax.swing.JList.getCellBounds(JList.java:1641)
>   at java.desktop/javax.swing.JList.ensureIndexIsVisible(JList.java:1153)
>   at 
> org.netbeans.modules.palette.ui.CategoryDescriptor.doSetOpened(CategoryDescriptor.java:200)
>   at 
> org.netbeans.modules.palette.ui.CategoryDescriptor.(CategoryDescriptor.java:99)
>   at 
> org.netbeans.modules.palette.ui.PalettePanel.computeDescriptors(PalettePanel.java:186)
>   at 
> org.netbeans.modules.palette.ui.PalettePanel.access$500(PalettePanel.java:87)
>   at 
>