You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Geertjan Wielenga (JIRA)" <ji...@apache.org> on 2018/11/07 08:14:00 UTC

[jira] [Commented] (NETBEANS-1620) Reloading a module in Development IDE unloads compatibilty layers

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

Geertjan Wielenga commented on NETBEANS-1620:
---------------------------------------------

"Install/reload in Development IDE" may not always work, i.e., advisable to run the module in a new instance, i.e., right-click the module and choose Run.

> Reloading a module in Development IDE unloads compatibilty layers
> -----------------------------------------------------------------
>
>                 Key: NETBEANS-1620
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1620
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 10.0
>         Environment: Arch Linux
> JDK 11
> NetBeans 10.0vc3
>            Reporter: Peter Nabbefeld
>            Priority: Major
>
> Unloading of the compatibilty layers results in the IDE partially hanging.
> From IDE.log (logged while reloading module):
> INFO [org.netbeans.core.startup.NbEvents]: Turning on modules:
>         org.netbeans.modules.pm.DocsTree [1.0 1.0-20181107 201811070731]
> WARNING [org.openide.filesystems.Ordering]: Not all children in Menu/Window/ marked with the position attribute: [org-netbeans-modules-pm-docstree-PMTopComponent.shadow], but some are: [org-netbeans-modules-project-ui-logical-tab-action.shadow, org-netbeans-modules-project-ui-physical-tab-action.shadow, org-netbeans-modules-favorites-View.shadow, org-netbeans-core-ide-ServicesTabAction.shadow, org-netbeans-modules-navigator-ShowNavigatorAction.shadow, org-netbeans-modules-tasklist-ui-TaskListAction.shadow, org-netbeans-modules-tasks-ui-DashboardTopComponent.shadow, org-netbeans-core-io-ui-IOWindowAction.shadow, SwitchToRecentDocumentAction.shadow, Debug, Profile, Web, Tools, Separator3.instance, ConfigureWindow, org-netbeans-core-windows-actions-ResetWindowsAction.shadow, Separator4.instance, CloseWindowAction.shadow, CloseAllDocumentsAction.shadow, CloseAllButThisAction.shadow, GroupsMenuAction.shadow, DocumentsAction.shadow]
> INFO [org.netbeans.core.startup.NbEvents]: Turning off modules:
>         org.netbeans.api.progress.compat8 [1.50.1 incubator-netbeans-release-365-on-20181105]
>         org.netbeans.modules.java.source.compat8 [9.6.1 incubator-netbeans-release-365-on-20181105]
>         org.netbeans.modules.pm.DocsTree [1.0 1.0-20181107 201811070731]
>         org.netbeans.modules.project.ant.compat8/1 [1.70.1 incubator-netbeans-release-365-on-20181105]
>         org.openide.execution.compat8 [9.5.1 incubator-netbeans-release-365-on-20181105]
> WARNING [org.openide.util.lookup.MetaInfServicesLookup]: org.netbeans.modules.java.source.parsing.JavacParser$TreeLoaderRegistry could not be found in SystemClassLoader[671 modules]
> WARNING [org.openide.util.lookup.MetaInfServicesLookup]: org.netbeans.modules.java.source.parsing.JavacParser$ContextEnhancer could not be found in SystemClassLoader[671 modules]
> WARNING [org.openide.util.lookup.MetaInfServicesLookup]: org.netbeans.modules.java.source.tasklist.CompilerSettings could not be found in SystemClassLoader[671 modules]
> WARNING [org.openide.util.lookup.MetaInfServicesLookup]: org.netbeans.modules.java.source.parsing.JavacParser$DuplicateClassRegistry could not be found in SystemClassLoader[671 modules]
> WARNING [org.openide.util.lookup.MetaInfServicesLookup]: org.netbeans.modules.java.source.parsing.JavacParser$TreeLoaderRegistry could not be found in SystemClassLoader[671 modules]
> WARNING [org.openide.util.lookup.MetaInfServicesLookup]: org.netbeans.modules.java.source.parsing.JavacParser$ContextEnhancer could not be found in SystemClassLoader[671 modules]
> WARNING [org.openide.util.lookup.MetaInfServicesLookup]: org.netbeans.modules.java.source.tasklist.CompilerSettings could not be found in SystemClassLoader[671 modules]
> WARNING [org.openide.util.lookup.MetaInfServicesLookup]: org.netbeans.modules.java.source.parsing.JavacParser$DuplicateClassRegistry could not be found in SystemClassLoader[671 modules]
> INFO [org.netbeans.core.startup.NbEvents]: Turning on modules:
>         org.netbeans.modules.pm.DocsTree [1.0 1.0-20181107 201811070731]
>  
> As You can see, compatibility modules are unloaded but not reloaded (IMO, they shouldn't even get unloaded).
> Since this, IDE doesn't provide Java functionality any more, CNFEs are displayed, and I cannot even close NetBeans.
> The source code of my modules can be found at [https://github.com/pnabbefeld/NbProjectManagement]
> For installation of the module, You'll need to remove the JAXB dependencies (but, please, don't remove the antlr build step and its dependency, otherwise the module won't compile).
> However, this bug should occur with any external module.
>  
> So, to reproduce this bug, try the following:
>  # Create/Load a NetBeans module (I'm using source/target 1.8, because AFAIK it's not possible to use newer Java platforms for module development).
>  # Build it, install it into NetBeans ("Install/reload in Development IDE"). First time this will work, as no unloading is done.
>  # Reload it. Now, the compatibility layers are unloaded, the above described behavior can be seen.
> If You're running the module, everything will be okay, because the "slave" IDE already starts with the updated version of the module.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists