Re: [Gentoo Packaging] editor only -> Can't find resource for bundle
On Sat, 2 Dec 2017 15:46:07 -0500 "William L. Thomson Jr."wrote: > > src/org/netbeans/modules/editor/impl/actions/NavigationHistoryLastEditAction.java:44: > error: Cannot find resource > org/netbeans/modules/editor/impl/actions/Bundle.properties public > final class NavigationHistoryLastEditAction extends BaseAction > implements PropertyChangeListener { ^ I tried to replace that file, leaving out others for regeneration. They were needed as well, just got more errors like above. Of the 150 or so others I have packaged. None seem to be like this one. https://github.com/apache/incubator-netbeans/tree/master/editor I haven't figured it out yet, but something seems very different about editor's usage of NbBundleProcessor. It seems to need static Bundle.properties, not generated ones. Most everything else wants generated. Thus other issues I had before with not finding resources from bundle. The errors I am experiencing now, I did not have till I fixed all others. Now I have problems with this one, and not all others... Go figure :) -- William L. Thomson Jr. pgp_3eU4N1gqK.pgp Description: OpenPGP digital signature
Re: [Gentoo Packaging] editor only -> Can't find resource for bundle
On Sat, 2 Dec 2017 15:46:07 -0500 "William L. Thomson Jr."wrote: > > java.util.MissingResourceException: Can't find resource for bundle > org.openide.util.NbBundle$PBundle, key CTL_ExportHtmlAction at > java.base/java.util.ResourceBundle.getObject(ResourceBundle.java:544) > at > java.base/java.util.ResourceBundle.getString(ResourceBundle.java:501) > at org.openide.util.NbBundle.getMessage(NbBundle.java:617) at > org.netbeans.modules.editor.ExportHtmlAction.getName(ExportHtmlAction.java:210) > > Though in this case I can see the messages in Bundle.properties. Why > it cannot find I have no idea. > > $ unzip -p /usr/share/netbeans-editor-9/lib/netbeans-editor.jar > org/netbeans/modules/editor/Bundle.properties | grep > CTL_ExportHtmlAction CTL_ExportHtmlAction=Print to I forgot to also mention $ grep -r CTL_ExportHtmlAction * org/netbeans/modules/editor/Bundle.properties:CTL_ExportHtmlAction=Print to Binary file org/netbeans/modules/editor/ExportHtmlAction.class matches Which clearly shows the connection between the class and the Bundle.properties. Class has the key hard coded, and should be able to find value, but it does not per above exception. > The Bundle.properties is in the path its looking for and right next to > the class looking for it, and it has the right contents. > > org/netbeans/modules/editor/Bundle.properties > org/netbeans/modules/editor/ExportHtmlAction.class > org/netbeans/modules/editor/ExportHtmlAction$HtmlOrDirFilter.class > org/netbeans/modules/editor/ExportHtmlAction$Presenter.class > org/netbeans/modules/editor/ExportHtmlAction$Presenter$1.class > org/netbeans/modules/editor/ExportHtmlAction$2.class > org/netbeans/modules/editor/ExportHtmlAction$1.class > org/netbeans/modules/editor/ExportHtmlAction$1$1.class > -- William L. Thomson Jr. pgp7ZEej0vyFh.pgp Description: OpenPGP digital signature
[Gentoo Packaging] editor only -> Can't find resource for bundle
My arch nemesis is back to haunt me again G For some reason 150+ packages build fine. This ONE package "editor" fails unless it can find Bundle.properties. It is just 1 class or the classes in 1 directory. I do not get any other errors about missing bundles. There are several, so something must be different to cause this one to fail and no others. Its 1 error not more, so other Bundle.properties are not needed at compile. Bundle.class is but this is before that is even generated. src/org/netbeans/modules/editor/impl/actions/NavigationHistoryLastEditAction.java:44: error: Cannot find resource org/netbeans/modules/editor/impl/actions/Bundle.properties public final class NavigationHistoryLastEditAction extends BaseAction implements PropertyChangeListener { ^ 1 error 13 warnings Which means my deleting and re-generation causes a problem there. Since once I delete it causes it to not be found. If I do not delete, it is not generated. Thus I get bundle error message at runtime. java.util.MissingResourceException: Can't find resource for bundle org.openide.util.NbBundle$PBundle, key CTL_ExportHtmlAction at java.base/java.util.ResourceBundle.getObject(ResourceBundle.java:544) at java.base/java.util.ResourceBundle.getString(ResourceBundle.java:501) at org.openide.util.NbBundle.getMessage(NbBundle.java:617) at org.netbeans.modules.editor.ExportHtmlAction.getName(ExportHtmlAction.java:210) Though in this case I can see the messages in Bundle.properties. Why it cannot find I have no idea. $ unzip -p /usr/share/netbeans-editor-9/lib/netbeans-editor.jar org/netbeans/modules/editor/Bundle.properties | grep CTL_ExportHtmlAction CTL_ExportHtmlAction=Print to The Bundle.properties is in the path its looking for and right next to the class looking for it, and it has the right contents. org/netbeans/modules/editor/Bundle.properties org/netbeans/modules/editor/ExportHtmlAction.class org/netbeans/modules/editor/ExportHtmlAction$HtmlOrDirFilter.class org/netbeans/modules/editor/ExportHtmlAction$Presenter.class org/netbeans/modules/editor/ExportHtmlAction$Presenter$1.class org/netbeans/modules/editor/ExportHtmlAction$2.class org/netbeans/modules/editor/ExportHtmlAction$1.class org/netbeans/modules/editor/ExportHtmlAction$1$1.class -- William L. Thomson Jr. pgpVvASbDaCui.pgp Description: OpenPGP digital signature