[jira] [Commented] (NETBEANS-3273) Cannot run Payara 5 under JDK 8

2021-06-23 Thread Javier Llorente (Jira)


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

Javier Llorente commented on NETBEANS-3273:
---

I can reproduce this issue on Linux (openSUSE Tumbleweed) with NetBeans 12.4 
and Payara Server 5.2021.4 using JDK 8.
{code:java}
Unrecognized option: --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
{code}
Workaround: running Payara from the command line.
{code:java}
asadmin start-domain
{code}

> Cannot run Payara 5 under JDK 8
> ---
>
> Key: NETBEANS-3273
> URL: https://issues.apache.org/jira/browse/NETBEANS-3273
> Project: NetBeans
>  Issue Type: Bug
>  Components: serverplugins - GlassFish
>Affects Versions: 11.1, 11.2, 12.4
>Reporter: Stephen Parry
>Priority: Major
>
> On Linux (not sure about other platforms), running Payara using JDK 8 gives 
> the following error on Services -> server -> Payara -> start:
> Unrecognized option: --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
> Steps to reproduce:
> # Ensure host system has JDK 11 (as default) and JDK 8 installed
> # Clean install NB 11.1 or 11.2 with JDK 11 as chosen JVM and activate all 
> modules
> # Use platform manager to add JDK 8 as new platform.
> # Add a Payara 5.192 or 5.193 server
> # Services -> Server -> Payara Server -> Properties -> Java -> Java Platform: 
> JDK 8 -> Close
> # Services -> Server -> Payara Server -> Start
> Expected behaviour:
> Successful startup messages in Payara Server console
> Actual behaviour:
> Failure messages in Payara Server console:
> Unrecognized option: --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
> This is a known issue in the original Payara eclipse plugin tooling, see:
> [https://github.com/payara/ecosystem-eclipse-plugin/issues/11|https://github.com/payara/ecosystem-eclipse-plugin/issues/11]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Updated] (NETBEANS-3273) Cannot run Payara 5 under JDK 8

2021-06-23 Thread Javier Llorente (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Javier Llorente updated NETBEANS-3273:
--
Affects Version/s: 12.4

> Cannot run Payara 5 under JDK 8
> ---
>
> Key: NETBEANS-3273
> URL: https://issues.apache.org/jira/browse/NETBEANS-3273
> Project: NetBeans
>  Issue Type: Bug
>  Components: serverplugins - GlassFish
>Affects Versions: 11.1, 11.2, 12.4
>Reporter: Stephen Parry
>Priority: Major
>
> On Linux (not sure about other platforms), running Payara using JDK 8 gives 
> the following error on Services -> server -> Payara -> start:
> Unrecognized option: --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
> Steps to reproduce:
> # Ensure host system has JDK 11 (as default) and JDK 8 installed
> # Clean install NB 11.1 or 11.2 with JDK 11 as chosen JVM and activate all 
> modules
> # Use platform manager to add JDK 8 as new platform.
> # Add a Payara 5.192 or 5.193 server
> # Services -> Server -> Payara Server -> Properties -> Java -> Java Platform: 
> JDK 8 -> Close
> # Services -> Server -> Payara Server -> Start
> Expected behaviour:
> Successful startup messages in Payara Server console
> Actual behaviour:
> Failure messages in Payara Server console:
> Unrecognized option: --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
> This is a known issue in the original Payara eclipse plugin tooling, see:
> [https://github.com/payara/ecosystem-eclipse-plugin/issues/11|https://github.com/payara/ecosystem-eclipse-plugin/issues/11]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Closed] (NETBEANS-5803) Maven Micronaut projects can not be customized.

2021-06-23 Thread Martin Entlicher (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Entlicher closed NETBEANS-5803.
--
Resolution: Won't Fix

I've created a bug for Micronaut instead: 
https://github.com/micronaut-projects/micronaut-starter/issues/835

> Maven Micronaut projects can not be customized.
> ---
>
> Key: NETBEANS-5803
> URL: https://issues.apache.org/jira/browse/NETBEANS-5803
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Maven
>Reporter: Martin Entlicher
>Assignee: Martin Entlicher
>Priority: Critical
>  Labels: pull-request-available
> Fix For: 12.5
>
> Attachments: Screenshot from 2021-06-21 18-15-59.png
>
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> The maven project support does not handle `https` XML namespace.
> http protocol is expected:
> `http://maven.apache.org/POM/4.0.0"` 
> The maven project support does not handle https:
> `https://maven.apache.org/POM/4.0.0"; `



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[netbeans] branch master updated: Add Run with configuration into code lenses.

2021-06-23 Thread entl
This is an automated email from the ASF dual-hosted git repository.

entl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
 new 5f0acca  Add Run with configuration into code lenses.
5f0acca is described below

commit 5f0acca3f6c8639d886ace996f76df1fb877dcce
Author: Martin Entlicher 
AuthorDate: Wed Jun 16 11:19:30 2021 +0200

Add Run with configuration into code lenses.
---
 .../server/protocol/TextDocumentServiceImpl.java   | 76 +-
 java/java.lsp.server/vscode/src/extension.ts   | 15 +++--
 2 files changed, 82 insertions(+), 9 deletions(-)

diff --git 
a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/TextDocumentServiceImpl.java
 
b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/TextDocumentServiceImpl.java
index 1a9d211..f0d1348 100644
--- 
a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/TextDocumentServiceImpl.java
+++ 
b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/TextDocumentServiceImpl.java
@@ -37,6 +37,7 @@ import java.net.URI;
 import java.net.URL;
 import java.time.Instant;
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.Collections;
 import java.util.EnumMap;
 import java.util.EnumSet;
@@ -51,6 +52,7 @@ import java.util.concurrent.CompletableFuture;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
+import java.util.concurrent.atomic.AtomicReference;
 import java.util.function.BiConsumer;
 import java.util.function.IntFunction;
 import java.util.logging.Level;
@@ -148,6 +150,7 @@ import org.netbeans.api.java.source.ui.ElementOpen;
 import org.netbeans.api.lexer.TokenSequence;
 import org.netbeans.api.lsp.Completion;
 import org.netbeans.api.lsp.HyperlinkLocation;
+import org.netbeans.api.project.FileOwnerQuery;
 import org.netbeans.api.project.Project;
 import org.netbeans.api.project.ProjectUtils;
 import org.netbeans.api.project.SourceGroup;
@@ -189,12 +192,17 @@ import org.netbeans.modules.refactoring.spi.Transaction;
 import org.netbeans.spi.editor.hints.ErrorDescription;
 import org.netbeans.spi.editor.hints.Fix;
 import org.netbeans.spi.lsp.ErrorProvider;
+import org.netbeans.spi.project.ActionProvider;
+import org.netbeans.spi.project.ProjectConfiguration;
+import org.netbeans.spi.project.ProjectConfigurationProvider;
 import org.openide.cookies.EditorCookie;
 import org.openide.filesystems.FileObject;
 import org.openide.text.NbDocument;
 import org.openide.text.PositionBounds;
 import org.openide.util.Exceptions;
 import org.openide.util.Lookup;
+import org.openide.util.NbBundle;
+import org.openide.util.Pair;
 import org.openide.util.RequestProcessor;
 import org.openide.util.Union2;
 import org.openide.util.WeakSet;
@@ -208,6 +216,9 @@ import org.openide.util.lookup.ServiceProvider;
 public class TextDocumentServiceImpl implements TextDocumentService, 
LanguageClientAware {
 private static final Logger LOG = 
Logger.getLogger(TextDocumentServiceImpl.class.getName());
 
+private static final String COMMAND_RUN_SINGLE = "java.run.single";
 // NOI18N
+private static final String COMMAND_DEBUG_SINGLE = "java.debug.single";
 // NOI18N
+
 private static final RequestProcessor BACKGROUND_TASKS = new 
RequestProcessor(TextDocumentServiceImpl.class.getName(), 1, false, false);
 private static final RequestProcessor WORKER = new 
RequestProcessor(TextDocumentServiceImpl.class.getName(), 1, false, false);
 
@@ -884,6 +895,10 @@ public class TextDocumentServiceImpl implements 
TextDocumentService, LanguageCli
 
 private ConcurrentHashMap upToDateTests = new 
ConcurrentHashMap<>();
 
+@NbBundle.Messages({"# {0} - method name", "LBL_Run=Run {0}",
+"# {0} - method name", "LBL_Debug=Debug {0}",
+"# {0} - method name", "# {1} - configuration name", 
"LBL_RunWith=Run {0} with {1}",
+"# {0} - method name", "# {1} - configuration name", 
"LBL_DebugWith=Debug {0} with {1}"})
 @Override
 public CompletableFuture> codeLens(CodeLensParams 
params) {
 // shortcut: if the projects are not yet initialized, return empty:
@@ -932,18 +947,36 @@ public class TextDocumentServiceImpl implements 
TextDocumentService, LanguageCli
 }
 //look for main methods:
 List lens = new ArrayList<>();
+AtomicReference>> 
projectConfigurations = new AtomicReference<>();
 new TreePathScanner() {
 public Void visitMethod(MethodTree tree, Void p) {
 Element el = 
cc.getTrees().getElement(getCurrentPath());
 if (el != null && el.getKind() == ElementKind.METHOD 
&& SourceUtils.isMainMethod(

[jira] [Comment Edited] (NETBEANS-5740) Netbeans 12.4 randomly freezes

2021-06-23 Thread Ronny Perinke (Jira)


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

 Ronny Perinke edited comment on NETBEANS-5740 at 6/23/21, 3:13 PM:


I was able to "reproduce" it by opening a multi-module Java Maven project and 
pasting a few lines of code into one of the the classes from a sub-module. The 
project has a Java compile level of 16. It uses compile on save with nb-javac 
enabled and lombok 1.8.20. A dump file for the class is created in 
{{/var/log}}. Sometimes Netbeans freezes immediately when pasting the 
code (_it is not even showing up in the editor_) and sometimes it requires a 
few undo/redo steps to cause a freeze.

messages.log did not contain the lines about java.util.zip.CRC32C as mentioned 
above by Diego.
{code:java|title=messages.log last lines}
WARNING [org.openide.filesystems.Ordering]: Not all children in / marked with 
the position attribute: 
[org-netbeans-modules-lsp-client-bindings-CompletionProviderImpl.instance], but 
some are: 
[org-netbeans-modules-parsing-ui-WaitScanFinishedCompletionProvider.instance, 
org-netbeans-modules-editor-java-JavaCompletionProvider.instance, 
org-netbeans-modules-jshell-editor-HistoryCompletionProvider.instance, 
org-netbeans-modules-java-editor-javadoc-JavadocCompletionProvider.instance, 
org-netbeans-lib-editor-codetemplates-CodeTemplateCompletionProvider.instance, 
org-netbeans-modules-j2ee-persistence-editor-completion-JPACodeCompletionProvider.instance,
 org-netbeans-modules-websvc-editor-completion-WSCompletionProvider.instance, 
org-netbeans-modules-spellchecker-completion-WordCompletion.instance]
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: 
CancelableTaskWrapper[task: 
org.netbeans.modules.java.hints.spiimpl.hints.HintsTask@161ee7e4, phase: 
RESOLVED, priority: 500] : class 
org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper 
ignored cancel for 59 ms.
WARNING [org.netbeans.TopSecurityManager]: use of system property netbeans.user 
has been obsoleted in favor of InstalledFileLocator/Places at 
org.netbeans.modules.java.source.parsing.JavacParser.createDumpFile(JavacParser.java:1231)
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
C:\Users\XXX\AppData\Roaming\NetBeans\12.4\var\log\PartnerServiceClientConfiguration.dump
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: 
org.netbeans.modules.java.editor.semantic.SemanticHighlighter@708419b8 : class 
org.netbeans.modules.java.editor.semantic.SemanticHighlighter ignored cancel 
for 57 ms.
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
C:\Users\XXX\AppData\Roaming\NetBeans\12.4\var\log\PartnerServiceClientConfiguration_1.dump
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
C:\Users\XXX\AppData\Roaming\NetBeans\12.4\var\log\PartnerServiceClientConfiguration_2.dump
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
C:\Users\XXX\AppData\Roaming\NetBeans\12.4\var\log\PartnerServiceClientConfiguration_3.dump
{code}

2nd time
{code}
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: 
org.netbeans.modules.java.source.parsing.VanillaPartialReparser$VerifyPartialReparse@5ad3e2fe
 : class 
org.netbeans.modules.java.source.parsing.VanillaPartialReparser$VerifyPartialReparse
 ignored cancel for 74 ms.
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: 
org.netbeans.modules.java.source.parsing.VanillaPartialReparser$VerifyPartialReparse@5ad3e2fe
 : class 
org.netbeans.modules.java.source.parsing.VanillaPartialReparser$VerifyPartialReparse
 ignored cancel for 151 ms.
WARNING [org.netbeans.TopSecurityManager]: use of system property netbeans.user 
has been obsoleted in favor of InstalledFileLocator/Places at 
org.netbeans.modules.java.source.parsing.JavacParser.createDumpFile(JavacParser.java:1231)
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
C:\Users\XXX\AppData\Roaming\NetBeans\12.4\var\log\PartnerServiceClientConfiguration.dump
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
C:\Users\XXX\AppData\Roaming\NetBeans\12.4\var\log\PartnerServiceClientConfiguration_1.dump
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
C:\Users\XXX\AppData\Roaming\NetBeans\12.4\var\log\PartnerServiceClientConfiguration_2.dump
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
C:\Users\XXX\AppData\Roaming\NetBe

[jira] [Comment Edited] (NETBEANS-5740) Netbeans 12.4 randomly freezes

2021-06-23 Thread Ronny Perinke (Jira)


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

 Ronny Perinke edited comment on NETBEANS-5740 at 6/23/21, 3:13 PM:


I was able to "reproduce" it by opening a multi-module Java Maven project and 
pasting a few lines of code into one of the the classes from a sub-module. The 
project has a Java compile level of 16. It uses compile on save with nb-javac 
enabled and lombok 1.8.20. A dump file for the class is created in 
{{/var/log}}. Sometimes Netbeans freezes immediately when pasting the 
code (_it is not even showing up in the editor_) and sometimes it requires a 
few undo/redo steps to cause a freeze.

messages.log did not contain the lines about java.util.zip.CRC32C as mentioned 
above by Diego.
{code:java|title=messages.log last lines}
WARNING [org.openide.filesystems.Ordering]: Not all children in / marked with 
the position attribute: 
[org-netbeans-modules-lsp-client-bindings-CompletionProviderImpl.instance], but 
some are: 
[org-netbeans-modules-parsing-ui-WaitScanFinishedCompletionProvider.instance, 
org-netbeans-modules-editor-java-JavaCompletionProvider.instance, 
org-netbeans-modules-jshell-editor-HistoryCompletionProvider.instance, 
org-netbeans-modules-java-editor-javadoc-JavadocCompletionProvider.instance, 
org-netbeans-lib-editor-codetemplates-CodeTemplateCompletionProvider.instance, 
org-netbeans-modules-j2ee-persistence-editor-completion-JPACodeCompletionProvider.instance,
 org-netbeans-modules-websvc-editor-completion-WSCompletionProvider.instance, 
org-netbeans-modules-spellchecker-completion-WordCompletion.instance]
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: 
CancelableTaskWrapper[task: 
org.netbeans.modules.java.hints.spiimpl.hints.HintsTask@161ee7e4, phase: 
RESOLVED, priority: 500] : class 
org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper 
ignored cancel for 59 ms.
WARNING [org.netbeans.TopSecurityManager]: use of system property netbeans.user 
has been obsoleted in favor of InstalledFileLocator/Places at 
org.netbeans.modules.java.source.parsing.JavacParser.createDumpFile(JavacParser.java:1231)
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
C:\Users\XXX\AppData\Roaming\NetBeans\12.4\var\log\PartnerServiceClientConfiguration.dump
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: 
org.netbeans.modules.java.editor.semantic.SemanticHighlighter@708419b8 : class 
org.netbeans.modules.java.editor.semantic.SemanticHighlighter ignored cancel 
for 57 ms.
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
C:\Users\XXX\AppData\Roaming\NetBeans\12.4\var\log\PartnerServiceClientConfiguration_1.dump
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
C:\Users\XXX\AppData\Roaming\NetBeans\12.4\var\log\PartnerServiceClientConfiguration_2.dump
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
C:\Users\XXX\AppData\Roaming\NetBeans\12.4\var\log\PartnerServiceClientConfiguration_3.dump
{code}

2nd time
{code}
WARNING [org.openide.filesystems.Ordering]: Not all children in / marked with 
the position attribute: 
[org-netbeans-modules-lsp-client-bindings-CompletionProviderImpl.instance], but 
some are: 
[org-netbeans-modules-parsing-ui-WaitScanFinishedCompletionProvider.instance, 
org-netbeans-modules-editor-java-JavaCompletionProvider.instance, 
org-netbeans-modules-jshell-editor-HistoryCompletionProvider.instance, 
org-netbeans-modules-java-editor-javadoc-JavadocCompletionProvider.instance, 
org-netbeans-lib-editor-codetemplates-CodeTemplateCompletionProvider.instance, 
org-netbeans-modules-j2ee-persistence-editor-completion-JPACodeCompletionProvider.instance,
 org-netbeans-modules-websvc-editor-completion-WSCompletionProvider.instance, 
org-netbeans-modules-spellchecker-completion-WordCompletion.instance]
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: 
org.netbeans.modules.java.source.parsing.VanillaPartialReparser$VerifyPartialReparse@5ad3e2fe
 : class 
org.netbeans.modules.java.source.parsing.VanillaPartialReparser$VerifyPartialReparse
 ignored cancel for 74 ms.
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: 
org.netbeans.modules.java.source.parsing.VanillaPartialReparser$VerifyPartialReparse@5ad3e2fe
 : class 
org.netbeans.modules.java.source.parsing.VanillaPartialReparser$VerifyPartialReparse
 ignored cancel for 151 ms.
WARNING [org.netbeans.TopSecurityManager]: use of system property netbeans.user 
has been obsoleted in favor of InstalledFileLocator/Places at 
org.netbeans.modules.java.source.parsing.JavacParser.createDumpFile(JavacP

[jira] [Comment Edited] (NETBEANS-5740) Netbeans 12.4 randomly freezes

2021-06-23 Thread Ronny Perinke (Jira)


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

 Ronny Perinke edited comment on NETBEANS-5740 at 6/23/21, 3:10 PM:


I was able to "reproduce" it by opening a multi-module Java Maven project and 
pasting a few lines of code into one of the the classes from a sub-module. The 
project has a Java compile level of 16. It uses compile on save with nb-javac 
enabled and lombok 1.8.20. A dump file for the class is created in 
{{/var/log}}. Sometimes Netbeans freezes immediately when pasting the 
code (_it is not even showing up in the editor_) and sometimes it requires a 
few undo/redo steps to cause a freeze.

messages.log did not contain the lines about java.util.zip.CRC32C as mentioned 
above by Diego.
{code:java|title=messages.log last lines}
WARNING [org.openide.filesystems.Ordering]: Not all children in / marked with 
the position attribute: 
[org-netbeans-modules-lsp-client-bindings-CompletionProviderImpl.instance], but 
some are: 
[org-netbeans-modules-parsing-ui-WaitScanFinishedCompletionProvider.instance, 
org-netbeans-modules-editor-java-JavaCompletionProvider.instance, 
org-netbeans-modules-jshell-editor-HistoryCompletionProvider.instance, 
org-netbeans-modules-java-editor-javadoc-JavadocCompletionProvider.instance, 
org-netbeans-lib-editor-codetemplates-CodeTemplateCompletionProvider.instance, 
org-netbeans-modules-j2ee-persistence-editor-completion-JPACodeCompletionProvider.instance,
 org-netbeans-modules-websvc-editor-completion-WSCompletionProvider.instance, 
org-netbeans-modules-spellchecker-completion-WordCompletion.instance]
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: 
CancelableTaskWrapper[task: 
org.netbeans.modules.java.hints.spiimpl.hints.HintsTask@161ee7e4, phase: 
RESOLVED, priority: 500] : class 
org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper 
ignored cancel for 59 ms.
WARNING [org.netbeans.TopSecurityManager]: use of system property netbeans.user 
has been obsoleted in favor of InstalledFileLocator/Places at 
org.netbeans.modules.java.source.parsing.JavacParser.createDumpFile(JavacParser.java:1231)
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
C:\Users\XXX\AppData\Roaming\NetBeans\12.4\var\log\PartnerServiceClientConfiguration.dump
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: 
org.netbeans.modules.java.editor.semantic.SemanticHighlighter@708419b8 : class 
org.netbeans.modules.java.editor.semantic.SemanticHighlighter ignored cancel 
for 57 ms.
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
C:\Users\XXX\AppData\Roaming\NetBeans\12.4\var\log\PartnerServiceClientConfiguration_1.dump
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
C:\Users\XXX\AppData\Roaming\NetBeans\12.4\var\log\PartnerServiceClientConfiguration_2.dump
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
C:\Users\XXX\AppData\Roaming\NetBeans\12.4\var\log\PartnerServiceClientConfiguration_3.dump
{code}

Product Version: Apache NetBeans IDE 12.4
 Java: 11.0.11; Java HotSpot(TM) 64-Bit Server VM 11.0.11+9-LTS-194
 Runtime: Java(TM) SE Runtime Environment 11.0.11+9-LTS-194
 System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
 Theme: FlatLAF dark
 Plugins:
 Display readme files in project view (and many more), Serial version UID 
generator, TypeScript Editor, Editor zoom, External Code Formatters, Toggle 
line wrap, The nb-javac Java editing support library


was (Author: sephiroth-j):
I was able to "reproduce" it by opening a multi-module Java Maven project and 
pasting a few lines of code into one of the the classes from a sub-module. The 
project has a Java compile level of 16. It uses compile on save with nb-javac 
enabled and lombok 18.20. A dump file for the class is created in 
{{/var/log}}. Sometimes Netbeans freezes immediately when pasting the 
code (_it is not even showing up in the editor_) and sometimes it requires a 
few undo/redo steps to cause a freeze.


messages.log did not contain the lines about java.util.zip.CRC32C as mentioned 
above by Diego.

{code:title=messages.log last lines}
WARNING [org.openide.filesystems.Ordering]: Not all children in / marked with 
the position attribute: 
[org-netbeans-modules-lsp-client-bindings-CompletionProviderImpl.instance], but 
some are: 
[org-netbeans-modules-parsing-ui-WaitScanFinishedCompletionProvider.instance, 
org-netbeans-modules-editor-java-JavaCompletionProvider.instance, 
org-netbeans-modules-jshell-editor-HistoryCompletionProvider.instance, 
org-netbeans-modules-java-editor-javadoc-JavadocComple

[jira] [Commented] (NETBEANS-5740) Netbeans 12.4 randomly freezes

2021-06-23 Thread Ronny Perinke (Jira)


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

 Ronny Perinke commented on NETBEANS-5740:
--

I was able to "reproduce" it by opening a multi-module Java Maven project and 
pasting a few lines of code into one of the the classes from a sub-module. The 
project has a Java compile level of 16. It uses compile on save with nb-javac 
enabled and lombok 18.20. A dump file for the class is created in 
{{/var/log}}. Sometimes Netbeans freezes immediately when pasting the 
code (_it is not even showing up in the editor_) and sometimes it requires a 
few undo/redo steps to cause a freeze.


messages.log did not contain the lines about java.util.zip.CRC32C as mentioned 
above by Diego.

{code:title=messages.log last lines}
WARNING [org.openide.filesystems.Ordering]: Not all children in / marked with 
the position attribute: 
[org-netbeans-modules-lsp-client-bindings-CompletionProviderImpl.instance], but 
some are: 
[org-netbeans-modules-parsing-ui-WaitScanFinishedCompletionProvider.instance, 
org-netbeans-modules-editor-java-JavaCompletionProvider.instance, 
org-netbeans-modules-jshell-editor-HistoryCompletionProvider.instance, 
org-netbeans-modules-java-editor-javadoc-JavadocCompletionProvider.instance, 
org-netbeans-lib-editor-codetemplates-CodeTemplateCompletionProvider.instance, 
org-netbeans-modules-j2ee-persistence-editor-completion-JPACodeCompletionProvider.instance,
 org-netbeans-modules-websvc-editor-completion-WSCompletionProvider.instance, 
org-netbeans-modules-spellchecker-completion-WordCompletion.instance]
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: 
CancelableTaskWrapper[task: 
org.netbeans.modules.java.hints.spiimpl.hints.HintsTask@161ee7e4, phase: 
RESOLVED, priority: 500] : class 
org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper 
ignored cancel for 59 ms.
WARNING [org.netbeans.TopSecurityManager]: use of system property netbeans.user 
has been obsoleted in favor of InstalledFileLocator/Places at 
org.netbeans.modules.java.source.parsing.JavacParser.createDumpFile(JavacParser.java:1231)
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
C:\Users\XXX\AppData\Roaming\NetBeans\12.4\var\log\PartnerServiceClientConfiguration.dump
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: 
org.netbeans.modules.java.editor.semantic.SemanticHighlighter@708419b8 : class 
org.netbeans.modules.java.editor.semantic.SemanticHighlighter ignored cancel 
for 57 ms.
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
C:\Users\XXX\AppData\Roaming\NetBeans\12.4\var\log\PartnerServiceClientConfiguration_1.dump
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
C:\Users\XXX\AppData\Roaming\NetBeans\12.4\var\log\PartnerServiceClientConfiguration_2.dump
INFO [org.netbeans.modules.java.source.parsing.VanillaPartialReparser]: 
Incorrect partial reparse detected, dump filed: 
C:\Users\XXX\AppData\Roaming\NetBeans\12.4\var\log\PartnerServiceClientConfiguration_3.dump
{code}



Product Version: Apache NetBeans IDE 12.4
Java: 11.0.11; Java HotSpot(TM) 64-Bit Server VM 11.0.11+9-LTS-194
Runtime: Java(TM) SE Runtime Environment 11.0.11+9-LTS-194
System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
Theme: FlatLAF dark
Plugins:
Display readme files in project view (and many more), Serial version UID 
generator, TypeScript Editor, Editor zoom, External Code Formatters, Toggle 
line wrap, The nb-javac Java editing support library

> Netbeans 12.4 randomly freezes
> --
>
> Key: NETBEANS-5740
> URL: https://issues.apache.org/jira/browse/NETBEANS-5740
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 12.4
> Environment: Ubuntu 20.04
> Netbeans 12.4
> OpenJDK 11.0.11
>Reporter: Diego Díez
>Priority: Major
>
> We have started experiencing random freezes after upgrading to Netbeans 12.3, 
> not responding any component to mouse or keyboard interactions.
> We have also noticed that lombok-1.18.18 stopped working with the newer 
> nb-javac installed with the 12.4 version (java16 support). I can't confirm 
> whether this is related with the freezes or not. Using lombok-1.18.20 seems 
> to work well, though.
> Any ideas? Is there any log to look for errors?
> As a workaround we have downgraded to 12.3 as it is a blocking issue for us, 
> being forced to kill the process every time it gets stuck.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.ap

[jira] [Commented] (NETBEANS-5740) Netbeans 12.4 randomly freezes

2021-06-23 Thread Geertjan Wielenga (Jira)


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

Geertjan Wielenga commented on NETBEANS-5740:
-

Hard to fix if it can't be reproduced. If there's any info you can provide 
about the situations under which problems occur, or anything else, maybe also 
if there are any special plugins installed, etc, would help.

> Netbeans 12.4 randomly freezes
> --
>
> Key: NETBEANS-5740
> URL: https://issues.apache.org/jira/browse/NETBEANS-5740
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 12.4
> Environment: Ubuntu 20.04
> Netbeans 12.4
> OpenJDK 11.0.11
>Reporter: Diego Díez
>Priority: Major
>
> We have started experiencing random freezes after upgrading to Netbeans 12.3, 
> not responding any component to mouse or keyboard interactions.
> We have also noticed that lombok-1.18.18 stopped working with the newer 
> nb-javac installed with the 12.4 version (java16 support). I can't confirm 
> whether this is related with the freezes or not. Using lombok-1.18.20 seems 
> to work well, though.
> Any ideas? Is there any log to look for errors?
> As a workaround we have downgraded to 12.3 as it is a blocking issue for us, 
> being forced to kill the process every time it gets stuck.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Commented] (NETBEANS-5740) Netbeans 12.4 randomly freezes

2021-06-23 Thread Erich Bremer (Jira)


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

Erich Bremer commented on NETBEANS-5740:


I've experiencing intermittent freezing as well.  Netbeans 12.4, Windows 10 x64 
with Java 11.0.11 using GraalVM 21.1.0. nb-java not installed.

> Netbeans 12.4 randomly freezes
> --
>
> Key: NETBEANS-5740
> URL: https://issues.apache.org/jira/browse/NETBEANS-5740
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 12.4
> Environment: Ubuntu 20.04
> Netbeans 12.4
> OpenJDK 11.0.11
>Reporter: Diego Díez
>Priority: Major
>
> We have started experiencing random freezes after upgrading to Netbeans 12.3, 
> not responding any component to mouse or keyboard interactions.
> We have also noticed that lombok-1.18.18 stopped working with the newer 
> nb-javac installed with the 12.4 version (java16 support). I can't confirm 
> whether this is related with the freezes or not. Using lombok-1.18.20 seems 
> to work well, though.
> Any ideas? Is there any log to look for errors?
> As a workaround we have downgraded to 12.3 as it is a blocking issue for us, 
> being forced to kill the process every time it gets stuck.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[netbeans] branch master updated (778adbf -> 553191f)

2021-06-23 Thread sdedic
This is an automated email from the ASF dual-hosted git repository.

sdedic pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git.


from 778adbf  Merge pull request #3006 from sdedic/lsp/check-launch-enabled
 new 9e0bb4f  GradleActionProviders can force-disable an action.
 new 5e9a82a  Gradle/java disables debug actions in continuous mode.
 new 553191f  Merge pull request #3004 from 
sdedic/gradle/disable-project-action

The 5560 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 extide/gradle/apichanges.xml   |  15 ++
 extide/gradle/manifest.mf  |   2 +-
 .../modules/gradle/ActionProviderImpl.java |  14 +-
 .../modules/gradle/actions/ActionToTaskUtils.java  |  17 +-
 .../actions/ConfigurableActionsProviderImpl.java   |  69 
 .../actions/CustomActionRegistrationSupport.java   |   6 +-
 .../gradle/actions/DefaultActionMapping.java   |   5 +
 .../modules/gradle/api/execute/ActionMapping.java  |  23 ++-
 .../modules/gradle/api/execute/RunUtils.java   |  21 ++-
 .../gradle/customizer/BuildActionsCustomizer.form  |  90 ++-
 .../gradle/customizer/BuildActionsCustomizer.java  | 173 +++--
 .../modules/gradle/customizer/Bundle.properties|  18 ++-
 .../gradle/customizer/CustomActionMapping.java |   4 +-
 .../gradle/spi/actions/GradleActionsProvider.java  |   5 +
 .../spi/actions/ProjectActionMappingProvider.java  |   6 +
 .../test/unit/src/META-INF/generated-layer.xml |  16 ++
 .../ConfigurableActionsProviderImplTest.java   |  91 ++-
 .../modules/gradle/actions/declarative-actions.xml |   7 +
 .../gradle/actions/declarative-actions2.xml|  22 +--
 java/gradle.java/nbproject/project.xml |   2 +-
 .../modules/gradle/java/JavaActionProvider.java|   7 +-
 .../modules/gradle/java/action-mapping.xml |  16 ++
 22 files changed, 552 insertions(+), 77 deletions(-)
 copy 
enterprise/gradle.javaee/src/org/netbeans/modules/gradle/javaee/action-mapping.xml
 => 
extide/gradle/test/unit/src/org/netbeans/modules/gradle/actions/declarative-actions2.xml
 (67%)

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

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



[jira] [Assigned] (NETBEANS-5809) Add javadoc for JDK 18 early access

2021-06-23 Thread Rami Swailem (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rami Swailem reassigned NETBEANS-5809:
--

Assignee: Rami Swailem

> Add javadoc for JDK 18 early access
> ---
>
> Key: NETBEANS-5809
> URL: https://issues.apache.org/jira/browse/NETBEANS-5809
> Project: NetBeans
>  Issue Type: Improvement
>  Components: java - Javadoc
>Affects Versions: 12.5
>Reporter: Rami Swailem
>Assignee: Rami Swailem
>Priority: Trivial
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> [JDK 18 API 
> Javadoc|https://download.java.net/java/early_access/jdk18/docs/api/]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Updated] (NETBEANS-5809) Add javadoc for JDK 17 early access

2021-06-23 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated NETBEANS-5809:
-
Labels: pull-request-available  (was: )

> Add javadoc for JDK 17 early access
> ---
>
> Key: NETBEANS-5809
> URL: https://issues.apache.org/jira/browse/NETBEANS-5809
> Project: NetBeans
>  Issue Type: Improvement
>  Components: java - Javadoc
>Affects Versions: 12.5
>Reporter: Rami Swailem
>Priority: Trivial
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> [JDK 18 API 
> Javadoc|https://download.java.net/java/early_access/jdk18/docs/api/]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Updated] (NETBEANS-5809) Add javadoc for JDK 18 early access

2021-06-23 Thread Rami Swailem (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rami Swailem updated NETBEANS-5809:
---
Summary: Add javadoc for JDK 18 early access  (was: Add javadoc for JDK 17 
early access)

> Add javadoc for JDK 18 early access
> ---
>
> Key: NETBEANS-5809
> URL: https://issues.apache.org/jira/browse/NETBEANS-5809
> Project: NetBeans
>  Issue Type: Improvement
>  Components: java - Javadoc
>Affects Versions: 12.5
>Reporter: Rami Swailem
>Priority: Trivial
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> [JDK 18 API 
> Javadoc|https://download.java.net/java/early_access/jdk18/docs/api/]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Created] (NETBEANS-5809) Add javadoc for JDK 17 early access

2021-06-23 Thread Rami Swailem (Jira)
Rami Swailem created NETBEANS-5809:
--

 Summary: Add javadoc for JDK 17 early access
 Key: NETBEANS-5809
 URL: https://issues.apache.org/jira/browse/NETBEANS-5809
 Project: NetBeans
  Issue Type: Improvement
  Components: java - Javadoc
Affects Versions: 12.5
Reporter: Rami Swailem


[JDK 18 API Javadoc|https://download.java.net/java/early_access/jdk18/docs/api/]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[netbeans] branch master updated: LSP server informs client about unsuccessful launch.

2021-06-23 Thread sdedic
This is an automated email from the ASF dual-hosted git repository.

sdedic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
 new 34f4dc9  LSP server informs client about unsuccessful launch.
 new 778adbf  Merge pull request #3006 from sdedic/lsp/check-launch-enabled
34f4dc9 is described below

commit 34f4dc95e9dd5065eea965f3d3d3f9c30fa2d2ab
Author: Svata Dedic 
AuthorDate: Fri Jun 18 15:10:22 2021 +0200

LSP server informs client about unsuccessful launch.
---
 .../server/debugging/launch/NbLaunchDelegate.java  | 135 -
 1 file changed, 104 insertions(+), 31 deletions(-)

diff --git 
a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/launch/NbLaunchDelegate.java
 
b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/launch/NbLaunchDelegate.java
index 7aa03ad..e9e9de4 100644
--- 
a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/launch/NbLaunchDelegate.java
+++ 
b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/launch/NbLaunchDelegate.java
@@ -29,15 +29,20 @@ import java.util.Collection;
 import java.util.Collections;
 import java.util.List;
 import java.util.Map;
+import java.util.concurrent.CancellationException;
 import java.util.concurrent.CompletableFuture;
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.function.Consumer;
+import org.eclipse.lsp4j.MessageParams;
+import org.eclipse.lsp4j.MessageType;
+import org.eclipse.lsp4j.debug.TerminatedEventArguments;
 
 import org.eclipse.lsp4j.jsonrpc.ResponseErrorException;
 import org.eclipse.lsp4j.jsonrpc.messages.ResponseError;
 import org.eclipse.lsp4j.jsonrpc.messages.ResponseErrorCode;
+import org.eclipse.lsp4j.services.LanguageClient;
 
 import org.netbeans.api.annotations.common.CheckForNull;
 import org.netbeans.api.annotations.common.NonNull;
@@ -73,6 +78,7 @@ import org.netbeans.spi.project.SingleMethod;
 import org.openide.filesystems.FileObject;
 import org.openide.util.BaseUtilities;
 import org.openide.util.Lookup;
+import org.openide.util.NbBundle;
 import org.openide.util.Pair;
 import org.openide.util.RequestProcessor;
 import org.openide.util.lookup.Lookups;
@@ -82,6 +88,19 @@ import org.openide.util.lookup.ProxyLookup;
  *
  * @author martin
  */
+@NbBundle.Messages({
+"ERR_UnsupportedLaunchDebug=Debugging is not supported in this project.",
+"ERR_UnsupportedLaunch=Running  is not supported in this project.",
+"# {0} - the selected configuration",
+"# {1} - the suggested configuration",
+"ERR_UnsupportedLaunchDebugConfig=Debugging is not supported in 
configuration \"{0}\", please switch to {1}",
+"# {0} - the selected configuration",
+"# {1} - the suggested configuration",
+"ERR_UnsupportedLaunchConfig=Running is not supported in configuration 
\"{0}\", please switch to {1}.",
+"ERR_LaunchDefaultConfiguration=the default one.",
+"# {0} - the recommended configuration",
+"ERR_LaunchSupportiveConfigName=\"{0}\"",
+})
 public abstract class NbLaunchDelegate {
 
 private final RequestProcessor requestProcessor = new 
RequestProcessor(NbLaunchDelegate.class);
@@ -146,36 +165,6 @@ public abstract class NbLaunchDelegate {
 W writer = new W();
 CompletableFuture> commandFuture = 
findTargetWithPossibleRebuild(toRun, singleMethod, debug, testRun, ioContext);
 commandFuture.thenAccept((providerAndCommand) -> {
-context.setInputSinkProvider(() -> writer);
-if (debug) {
-
DebuggerManager.getDebuggerManager().addDebuggerListener(new 
DebuggerManagerAdapter() {
-@Override
-public void sessionAdded(Session session) {
-JPDADebugger debugger = session.lookupFirst(null, 
JPDADebugger.class);
-if (debugger != null) {
-
DebuggerManager.getDebuggerManager().removeDebuggerListener(this);
-Map properties = session.lookupFirst(null, 
Map.class);
-NbSourceProvider sourceProvider = 
context.getSourceProvider();
-sourceProvider.setSourcePath(properties != 
null ? (ClassPath) properties.getOrDefault("sourcepath", ClassPath.EMPTY) : 
ClassPath.EMPTY);
-
debugger.addPropertyChangeListener(JPDADebugger.PROP_STATE, new 
PropertyChangeListener() {
-@Override
-public void 
propertyChange(PropertyChangeEvent evt) {
-int newState = (int) evt.getNewValue();
-if (newState =