[jira] [Commented] (NETBEANS-3165) Java Modular Projects (ant) do not open after installing nb_parser 1.7

2019-09-26 Thread Martin (Jira)


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

Martin commented on NETBEANS-3165:
--

I made a fresh install, and just do not install the nb-javac

not sure if it has been necessary, but deactivated "Compile on save" for all 
projects

I am able to work so far

> Java Modular Projects (ant) do not open after installing nb_parser 1.7
> --
>
> Key: NETBEANS-3165
> URL: https://issues.apache.org/jira/browse/NETBEANS-3165
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.1
> Environment: Ubunut 19, Java 12.01
>Reporter: Martin
>Priority: Blocker
>
> Upon opening classic netbeans (ant) modular project, an exception 
> notifications shows immediately.
> None of my projects do open.
> Removed Nb completly and reinstalled, then again got asked to install 
> nb_parser 1.7.
> Same effect immediatly.
>  
> The exception is as follows:
>  
> Annotation: An error occurred during parsing of 
> '/home/martin/Projects/xxx/classes/module-info.java'. Please report a bug 
> against java/source and attach dump file 
> '/home/martin/snap/netbeans/common/data/11.1/var/log/module-info_3.dump'.Annotation:
>  An error occurred during parsing of 
> '/home/martin/Projectsxxx/src/xxx/classes/module-info.java'. Please report a 
> bug against java/source and attach dump file 
> '/home/martin/snap/netbeans/common/data/11.1/var/log/module-info_3.dump'.Annotation:
>  An error occurred during parsing of 
> '/home/martin/Projects/xxx/classes/module-info.java'. Please report a bug 
> against java/source and attach dump file 
> '/home/martin/snap/netbeans/common/data/11.1/var/log/module-info_3.dump'.An 
> error occurred during parsing of 
> '/home/martin/Projects/xxxclasses/module-info.java'. Please report a bug 
> against java/source and attach dump file 
> '/home/martin/snap/netbeans/common/data/11.1/var/log/module-info_3.dump'.An 
> error occurred during parsing of 
> '/home/martin/Projects/mtmscu/xxx/classes/module-info.java'. Please report a 
> bug against java/source and attach dump file 
> '/home/martin/snap/netbeans/common/data/11.1/var/log/module-info_3.dump'.Caused:
>  java.lang.AssertionError: duplicate context value at 
> com.sun.tools.javac.util.Context.put(Context.java:141) at 
> org.netbeans.modules.java.source.nbjavac.parsing.TreeLoader.preRegister(TreeLoader.java:104)
>  at 
> org.netbeans.modules.java.source.nbjavac.parsing.TreeLoader$TreeLoaderRegistryImpl.enhance(TreeLoader.java:577)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.lambda$createJavacTask$10(JavacParser.java:796)
>  at 
> java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654)
>  at 
> java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.createJavacTask(JavacParser.java:796)
>  at 
> org.netbeans.modules.java.source.parsing.CompilationInfoImpl.getJavacTask(CompilationInfoImpl.java:374)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:587)
>  at 
> org.netbeans.modules.java.source.parsing.CompilationInfoImpl.toPhase(CompilationInfoImpl.java:361)
>  at 
> org.netbeans.api.java.source.CompilationController.toPhase(CompilationController.java:84)
>  at 
> org.netbeans.modules.java.source.JavaSourceUtilImpl$1.parseModule(JavaSourceUtilImpl.java:290)
>  at 
> org.netbeans.modules.java.preprocessorbridge.api.ModuleUtilities.parseModule(ModuleUtilities.java:80)
>  at 
> org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.getResources(ModuleClassPaths.java:844)
>  at org.netbeans.api.java.classpath.ClassPath.entries(ClassPath.java:363) at 
> org.netbeans.modules.parsing.impl.indexing.PathRegistry.createResources(PathRegistry.java:719)
>  at 
> org.netbeans.modules.parsing.impl.indexing.PathRegistry.getSources(PathRegistry.java:275)
>  at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork.getDone(RepositoryUpdater.java:4888)
>  at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$InitialRootsWork.getDone(RepositoryUpdater.java:5821)[catch]
>  at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:3420)
>  at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:6183)
>  at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.access$4300(RepositoryUpdater.java:5834)
>  at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2$1.run(RepositoryUpdater.java:6099)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) at 
> 

[jira] [Commented] (NETBEANS-3165) Java Modular Projects (ant) do not open after installing nb_parser 1.7

2019-09-25 Thread Geertjan Wielenga (Jira)


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

Geertjan Wielenga commented on NETBEANS-3165:
-

We’re working on reverting or providing an update, simplest would be to use 
11.2 beta1 on JDK 13 where the current latest nb-javac does work, see 
bit.ly/apache-netbeans-11-2-beta-1

> Java Modular Projects (ant) do not open after installing nb_parser 1.7
> --
>
> Key: NETBEANS-3165
> URL: https://issues.apache.org/jira/browse/NETBEANS-3165
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.1
> Environment: Ubunut 19, Java 12.01
>Reporter: Martin
>Priority: Blocker
>
> Upon opening classic netbeans (ant) modular project, an exception 
> notifications shows immediately.
> None of my projects do open.
> Removed Nb completly and reinstalled, then again got asked to install 
> nb_parser 1.7.
> Same effect immediatly.
>  
> The exception is as follows:
>  
> Annotation: An error occurred during parsing of 
> '/home/martin/Projects/xxx/classes/module-info.java'. Please report a bug 
> against java/source and attach dump file 
> '/home/martin/snap/netbeans/common/data/11.1/var/log/module-info_3.dump'.Annotation:
>  An error occurred during parsing of 
> '/home/martin/Projectsxxx/src/xxx/classes/module-info.java'. Please report a 
> bug against java/source and attach dump file 
> '/home/martin/snap/netbeans/common/data/11.1/var/log/module-info_3.dump'.Annotation:
>  An error occurred during parsing of 
> '/home/martin/Projects/xxx/classes/module-info.java'. Please report a bug 
> against java/source and attach dump file 
> '/home/martin/snap/netbeans/common/data/11.1/var/log/module-info_3.dump'.An 
> error occurred during parsing of 
> '/home/martin/Projects/xxxclasses/module-info.java'. Please report a bug 
> against java/source and attach dump file 
> '/home/martin/snap/netbeans/common/data/11.1/var/log/module-info_3.dump'.An 
> error occurred during parsing of 
> '/home/martin/Projects/mtmscu/xxx/classes/module-info.java'. Please report a 
> bug against java/source and attach dump file 
> '/home/martin/snap/netbeans/common/data/11.1/var/log/module-info_3.dump'.Caused:
>  java.lang.AssertionError: duplicate context value at 
> com.sun.tools.javac.util.Context.put(Context.java:141) at 
> org.netbeans.modules.java.source.nbjavac.parsing.TreeLoader.preRegister(TreeLoader.java:104)
>  at 
> org.netbeans.modules.java.source.nbjavac.parsing.TreeLoader$TreeLoaderRegistryImpl.enhance(TreeLoader.java:577)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.lambda$createJavacTask$10(JavacParser.java:796)
>  at 
> java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654)
>  at 
> java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.createJavacTask(JavacParser.java:796)
>  at 
> org.netbeans.modules.java.source.parsing.CompilationInfoImpl.getJavacTask(CompilationInfoImpl.java:374)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:587)
>  at 
> org.netbeans.modules.java.source.parsing.CompilationInfoImpl.toPhase(CompilationInfoImpl.java:361)
>  at 
> org.netbeans.api.java.source.CompilationController.toPhase(CompilationController.java:84)
>  at 
> org.netbeans.modules.java.source.JavaSourceUtilImpl$1.parseModule(JavaSourceUtilImpl.java:290)
>  at 
> org.netbeans.modules.java.preprocessorbridge.api.ModuleUtilities.parseModule(ModuleUtilities.java:80)
>  at 
> org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.getResources(ModuleClassPaths.java:844)
>  at org.netbeans.api.java.classpath.ClassPath.entries(ClassPath.java:363) at 
> org.netbeans.modules.parsing.impl.indexing.PathRegistry.createResources(PathRegistry.java:719)
>  at 
> org.netbeans.modules.parsing.impl.indexing.PathRegistry.getSources(PathRegistry.java:275)
>  at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork.getDone(RepositoryUpdater.java:4888)
>  at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$InitialRootsWork.getDone(RepositoryUpdater.java:5821)[catch]
>  at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:3420)
>  at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:6183)
>  at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.access$4300(RepositoryUpdater.java:5834)
>  at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2$1.run(RepositoryUpdater.java:6099)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) at 
> 

[jira] [Commented] (NETBEANS-3165) Java Modular Projects (ant) do not open after installing nb_parser 1.7

2019-09-25 Thread Andre Lopes (Jira)


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

Andre Lopes commented on NETBEANS-3165:
---

Its also happening on Maven projects. Basically, after updating nb javac, you 
cant use GUI builder anymore.

> Java Modular Projects (ant) do not open after installing nb_parser 1.7
> --
>
> Key: NETBEANS-3165
> URL: https://issues.apache.org/jira/browse/NETBEANS-3165
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.1
> Environment: Ubunut 19, Java 12.01
>Reporter: Martin
>Priority: Blocker
>
> Upon opening classic netbeans (ant) modular project, an exception 
> notifications shows immediately.
> None of my projects do open.
> Removed Nb completly and reinstalled, then again got asked to install 
> nb_parser 1.7.
> Same effect immediatly.
>  
> The exception is as follows:
>  
> Annotation: An error occurred during parsing of 
> '/home/martin/Projects/xxx/classes/module-info.java'. Please report a bug 
> against java/source and attach dump file 
> '/home/martin/snap/netbeans/common/data/11.1/var/log/module-info_3.dump'.Annotation:
>  An error occurred during parsing of 
> '/home/martin/Projectsxxx/src/xxx/classes/module-info.java'. Please report a 
> bug against java/source and attach dump file 
> '/home/martin/snap/netbeans/common/data/11.1/var/log/module-info_3.dump'.Annotation:
>  An error occurred during parsing of 
> '/home/martin/Projects/xxx/classes/module-info.java'. Please report a bug 
> against java/source and attach dump file 
> '/home/martin/snap/netbeans/common/data/11.1/var/log/module-info_3.dump'.An 
> error occurred during parsing of 
> '/home/martin/Projects/xxxclasses/module-info.java'. Please report a bug 
> against java/source and attach dump file 
> '/home/martin/snap/netbeans/common/data/11.1/var/log/module-info_3.dump'.An 
> error occurred during parsing of 
> '/home/martin/Projects/mtmscu/xxx/classes/module-info.java'. Please report a 
> bug against java/source and attach dump file 
> '/home/martin/snap/netbeans/common/data/11.1/var/log/module-info_3.dump'.Caused:
>  java.lang.AssertionError: duplicate context value at 
> com.sun.tools.javac.util.Context.put(Context.java:141) at 
> org.netbeans.modules.java.source.nbjavac.parsing.TreeLoader.preRegister(TreeLoader.java:104)
>  at 
> org.netbeans.modules.java.source.nbjavac.parsing.TreeLoader$TreeLoaderRegistryImpl.enhance(TreeLoader.java:577)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.lambda$createJavacTask$10(JavacParser.java:796)
>  at 
> java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654)
>  at 
> java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.createJavacTask(JavacParser.java:796)
>  at 
> org.netbeans.modules.java.source.parsing.CompilationInfoImpl.getJavacTask(CompilationInfoImpl.java:374)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:587)
>  at 
> org.netbeans.modules.java.source.parsing.CompilationInfoImpl.toPhase(CompilationInfoImpl.java:361)
>  at 
> org.netbeans.api.java.source.CompilationController.toPhase(CompilationController.java:84)
>  at 
> org.netbeans.modules.java.source.JavaSourceUtilImpl$1.parseModule(JavaSourceUtilImpl.java:290)
>  at 
> org.netbeans.modules.java.preprocessorbridge.api.ModuleUtilities.parseModule(ModuleUtilities.java:80)
>  at 
> org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.getResources(ModuleClassPaths.java:844)
>  at org.netbeans.api.java.classpath.ClassPath.entries(ClassPath.java:363) at 
> org.netbeans.modules.parsing.impl.indexing.PathRegistry.createResources(PathRegistry.java:719)
>  at 
> org.netbeans.modules.parsing.impl.indexing.PathRegistry.getSources(PathRegistry.java:275)
>  at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork.getDone(RepositoryUpdater.java:4888)
>  at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$InitialRootsWork.getDone(RepositoryUpdater.java:5821)[catch]
>  at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:3420)
>  at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:6183)
>  at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.access$4300(RepositoryUpdater.java:5834)
>  at 
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2$1.run(RepositoryUpdater.java:6099)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) at 
>