[
https://issues.apache.org/jira/browse/NETBEANS-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16431604#comment-16431604
]
gary emiddio bello commented on NETBEANS-457:
---------------------------------------------
More investigation yields this issue can be avoided by configuring maven used
by netbeans to only use 1 thread - configure from within
netbeans/tools/options/maven global execution options - add the following :
-DT=1 -bsinglethreaded.
Both or either option seems to work.
They result in the maven builder being the singlethreaded one vs multithreaded,
and/or configure the max concurrent threads to 1 when using the multithreaded
builder.
This avoids the issue that breaks netbeans in the output window fold tree
management by insuring that only 1 build in in progress at a time.
The fold management state machine does not get confused when restricted to 1
Thread.
Another possible fix would be to disable folds and allow multithreaded/parallel
maven builds.
I have tested code that keeps folds from being used with a multithreaded build
successfully also.
> maven build exception
> ---------------------
>
> Key: NETBEANS-457
> URL: https://issues.apache.org/jira/browse/NETBEANS-457
> Project: NetBeans
> Issue Type: Bug
> Components: apisupport - Maven
> Affects Versions: 9.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build
> 20180309-unknown-revn)
> Java: 9.0.4; Java HotSpot(TM) 64-Bit Server VM 9.0.4+11
> Runtime: Java(TM) SE Runtime Environment 9.0.4+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
> User directory: C:\Users\gary\AppData\Roaming\NetBeans\dev
> Cache directory: C:\Users\gary\AppData\Local\NetBeans\Cache\dev
> Reporter: gary emiddio bello
> Priority: Major
>
>
> error while building jgit from
> [https://github.com/eclipse/jgit.git]
> java.lang.AssertionError
> at
> org.netbeans.modules.maven.execute.cmd.ExecutionEventObject$Tree.startFold(ExecutionEventObject.java:174)
> at
> org.netbeans.modules.maven.execute.CommandLineOutputHandler$Output.run(CommandLineOutputHandler.java:350)
> at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> at
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> at
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
> at org.openide.util.RequestProcessor.post(RequestProcessor.java:395)
> at
> org.netbeans.modules.maven.execute.CommandLineOutputHandler.setStdOut(CommandLineOutputHandler.java:146)
> at
> org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:280)
> [catch] at
> org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:128)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists