[jira] [Updated] (NETBEANS-6086) Memory Leak in the YAML Parser
[ https://issues.apache.org/jira/browse/NETBEANS-6086?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated NETBEANS-6086: - Labels: pull-request-available (was: ) > Memory Leak in the YAML Parser > -- > > Key: NETBEANS-6086 > URL: https://issues.apache.org/jira/browse/NETBEANS-6086 > Project: NetBeans > Issue Type: Bug > Components: yaml - Editor >Affects Versions: 12.4, 12.5 >Reporter: Ramdane Oualitsen >Assignee: Laszlo Kishalmi >Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > Editing broken YAML cause extensive memory allocation. -- 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-6081) Cleaning to the 'enterprise' module
[ https://issues.apache.org/jira/browse/NETBEANS-6081?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] José Contreras updated NETBEANS-6081: - Description: I did some cleaning to the 'enterprise' module with the 'Inspect & Transform' tool. I divided the cleaning in 8 parts/commits. Cleaning enterprise module part 1: (MERGED) - Remove unnecessary boxing - Remove unnecessary unboxing - Remove boxing of already boxed value - Remove creating new Boolean Cleaning enterprise module part 2: (MERGED) - Remove import From java.lang Package - Remove import From The Same Package Cleaning enterprise module part 3: (MERGED) - Remove redundant conditional expressions - Remove empty statements (semicolon) Cleaning enterprise module part 4: - Replace length one String in String.indexOf ("c" -> 'c') - Remove redundant String.toString() - Use String concatenation in StringBuilder.append - Remove String constructor - Replace useless use of StringBuffer with StringBuilder Cleaning enterprise module part 5: - Converts try finally block to try-with-resources when possible Cleaning enterprise module part 6: - Remove String concatenation in logger - Logger declaration is not static final - Remove unnecessary Throwable.initCause Cleaning enterprise module part 7: - Join catch sections using multicatch Cleaning enterprise module part 8: - Add @Override Annotation was: I did some cleaning to the 'enterprise' module with the 'Inspect & Transform' tool. I divided the cleaning in 8 parts/commits. Cleaning enterprise module part 1: (MERGED) - Remove unnecessary boxing - Remove unnecessary unboxing - Remove boxing of already boxed value - Remove creating new Boolean Cleaning enterprise module part 2: - Remove import From java.lang Package - Remove import From The Same Package Cleaning enterprise module part 3: - Remove redundant conditional expressions - Remove empty statements (semicolon) Cleaning enterprise module part 4: - Replace length one String in String.indexOf ("c" -> 'c') - Remove redundant String.toString() - Use String concatenation in StringBuilder.append - Remove String constructor - Replace useless use of StringBuffer with StringBuilder - Unnecessary temporary during conversion from String - Unnecessary temporary during conversion to String Cleaning enterprise module part 5: - Converts try finally block to try-with-resources when possible Cleaning enterprise module part 6: - Remove String concatenation in logger - Logger declaration is not static final - Remove unnecessary Throwable.initCause Cleaning enterprise module part 7: - Join catch sections using multicatch Cleaning enterprise module part 8: - Add @Override Annotation > Cleaning to the 'enterprise' module > --- > > Key: NETBEANS-6081 > URL: https://issues.apache.org/jira/browse/NETBEANS-6081 > Project: NetBeans > Issue Type: Improvement > Components: javaee - Code >Affects Versions: 12.5 > Environment: Fedora 34 (Workstation Edition) > AMD® Ryzen 7 5800x > 62.7 GiB > SSD Samsung 983 ZET > JDK VM Zulu11.50+19-CA (build 11.0.12+7-LTS, mixed mode) >Reporter: José Contreras >Assignee: José Contreras >Priority: Minor > Labels: pull-request-available > Fix For: 12.6 > > Time Spent: 3h > Remaining Estimate: 0h > > I did some cleaning to the 'enterprise' module with the 'Inspect & Transform' > tool. I divided the cleaning in 8 parts/commits. > Cleaning enterprise module part 1: (MERGED) > - Remove unnecessary boxing > - Remove unnecessary unboxing > - Remove boxing of already boxed value > - Remove creating new Boolean > Cleaning enterprise module part 2: (MERGED) > - Remove import From java.lang Package > - Remove import From The Same Package > Cleaning enterprise module part 3: (MERGED) > - Remove redundant conditional expressions > - Remove empty statements (semicolon) > Cleaning enterprise module part 4: > - Replace length one String in String.indexOf ("c" -> 'c') > - Remove redundant String.toString() > - Use String concatenation in StringBuilder.append > - Remove String constructor > - Replace useless use of StringBuffer with StringBuilder > Cleaning enterprise module part 5: > - Converts try finally block to try-with-resources when possible > Cleaning enterprise module part 6: > - Remove String concatenation in logger > - Logger declaration is not static final > - Remove unnecessary Throwable.initCause > Cleaning enterprise module part 7: > - Join catch sections using multicatch > Cleaning enterprise module part 8: > - Add @Override Annotation -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For
[netbeans] branch master updated: The set of arguments and launcher arguments is corrected.
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 a62f3b5 The set of arguments and launcher arguments is corrected. a62f3b5 is described below commit a62f3b5d5471202cfdc990a8ee80904477fb30ef Author: Martin Entlicher AuthorDate: Tue Oct 12 19:56:01 2021 +0200 The set of arguments and launcher arguments is corrected. --- .../modules/java/lsp/server/debugging/launch/NbLaunchDelegate.java| 4 ++-- 1 file changed, 2 insertions(+), 2 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 a30c6c2..4c61774 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 @@ -352,10 +352,10 @@ public abstract class NbLaunchDelegate { Object envObj = launchArguments.get("env"); Map env = envObj != null ? (Map) envObj : Collections.emptyMap(); ExplicitProcessParameters.Builder bld = ExplicitProcessParameters.builder(); -if (!args.isEmpty()) { +if (!vmArgs.isEmpty()) { bld.launcherArgs(vmArgs); } -if (!vmArgs.isEmpty()) { +if (!args.isEmpty()) { bld.args(args); } bld.replaceArgs(false); - 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 (965730c -> 8df551c)
This is an automated email from the ASF dual-hosted git repository. skygo pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git. from 965730c [NETBEANS-6081] - Cleaning enterprise module part 3: (#3230) add 39924ad update test for layerbuilder add 8df551c Merge pull request #3205 from apache/layertestpatch No new revisions were added by this update. Summary of changes: .../src/org/openide/filesystems/annotations/LayerBuilderTest.java| 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) - 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 (ed02b81 -> 965730c)
This is an automated email from the ASF dual-hosted git repository. pepness pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git. from ed02b81 LSP: Code completion should auto import classes (#3237) add 965730c [NETBEANS-6081] - Cleaning enterprise module part 3: (#3230) No new revisions were added by this update. Summary of changes: .../src/org/netbeans/modules/glassfish/common/nodes/Hk2Cookie.java | 2 +- .../antsrc/org/netbeans/modules/j2ee/ant/StartProfiledServer.java | 2 +- .../src/org/netbeans/modules/j2ee/common/FileSearchUtility.java| 7 ++- .../org/netbeans/modules/j2ee/sun/sunresources/beans/Wizard.java | 2 +- .../org/netbeans/modules/j2ee/sun/dd/impl/transform/Transform.java | 2 +- .../customizers/webservice/MessageSecurityTableModel.java | 2 +- .../org/netbeans/modules/j2ee/sun/share/plan/DeploymentPlan.java | 2 +- .../modules/j2ee/sun/validation/constraints/data/Constraints.java | 2 +- .../org/netbeans/modules/j2ee/sun/validation/data/Validation.java | 2 +- .../org/netbeans/modules/javaee/wildfly/ide/JBossJaxWsStack.java | 2 +- .../modules/maven/j2ee/execution/ServerInstanceChooserPanel.java | 2 +- .../src/org/netbeans/modules/maven/j2ee/JavaEEMavenTestBase.java | 2 +- .../src/org/netbeans/modules/profiler/j2ee/J2EEProfilerSPI.java| 1 - .../tomcat5/src/org/netbeans/modules/tomcat5/j2ee/JaxWsStack.java | 2 +- .../src/org/netbeans/modules/tomcat5/optional/StartTomcat.java | 2 +- .../modules/tomcat5/registration/AutomaticRegistration.java| 2 +- .../org/netbeans/modules/tomcat5/ui/wizard/InstallPanelVisual.java | 2 +- .../src/org/netbeans/modules/web/core/syntax/JspSyntaxSupport.java | 2 +- .../web/debug/breakpoints/JspBreakpointActionsProvider.java| 2 +- .../web.el/src/org/netbeans/modules/web/el/ELTypeUtilities.java| 2 +- .../netbeans/modules/web/jsf/navigation/PageFlowController.java| 2 +- .../netbeans/modules/web/jsf/api/facesmodel/JSFConfigVisitor.java | 2 +- .../org/netbeans/modules/web/jsf/wizards/JSFClientGenerator.java | 2 +- .../src/org/netbeans/modules/web/monitor/client/Controller.java| 4 ++-- .../org/netbeans/modules/web/monitor/client/TransactionView.java | 2 +- .../netbeans/modules/websvc/core/ProjectWebServiceNodeFactory.java | 2 +- .../src/org/netbeans/modules/websvc/design/view/DesignView.java| 2 +- 27 files changed, 32 insertions(+), 28 deletions(-) - 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: Code completion should auto import classes (#3237)
This is an automated email from the ASF dual-hosted git repository. dbalek 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 ed02b81 LSP: Code completion should auto import classes (#3237) ed02b81 is described below commit ed02b81505485299923157d0f4dd58bf9861abee Author: Dusan Balek AuthorDate: Tue Oct 12 19:42:39 2021 +0200 LSP: Code completion should auto import classes (#3237) * Auto completing a non-imported Class should add the import automatically. * Get project packages should wait for project indexing finished. * NPM libs updated due to security vulnerability reported. * Reload Test Explorer on Language Server restart. * Adding @ungap/promise-all-settled as a dependency of mocha to VSCode ext. --- .../org/netbeans/spi/lsp/CompletionCollector.java | 15 + .../server/protocol/TextDocumentServiceImpl.java | 154 ++-- .../lsp/server/protocol/WorkspaceServiceImpl.java | 25 +- java/java.lsp.server/vscode/package-lock.json | 821 +++-- java/java.lsp.server/vscode/package.json | 9 +- java/java.lsp.server/vscode/src/extension.ts | 10 +- java/java.lsp.server/vscode/src/testAdapter.ts | 4 +- .../netbeans/prepare/bundles/PrepareBundles.java | 12 +- 8 files changed, 425 insertions(+), 625 deletions(-) diff --git a/ide/api.lsp/src/org/netbeans/spi/lsp/CompletionCollector.java b/ide/api.lsp/src/org/netbeans/spi/lsp/CompletionCollector.java index 8691e3c..dd80c90 100644 --- a/ide/api.lsp/src/org/netbeans/spi/lsp/CompletionCollector.java +++ b/ide/api.lsp/src/org/netbeans/spi/lsp/CompletionCollector.java @@ -22,6 +22,8 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; import java.util.function.Consumer; import java.util.function.Supplier; import javax.swing.text.Document; @@ -31,6 +33,7 @@ import org.netbeans.api.lsp.Completion; import org.netbeans.api.lsp.TextEdit; import org.netbeans.modules.lsp.CompletionAccessor; import org.netbeans.spi.editor.mimelookup.MimeLocation; +import org.openide.util.RequestProcessor; /** * Interface for computing and collecting completions. Clients can use this interface @@ -338,6 +341,7 @@ public interface CompletionCollector { private static class LazyCompletableFuture extends CompletableFuture { +private static final RequestProcessor ASYNC_WORKER = new RequestProcessor(LazyCompletableFuture.class.getName(), 1); private final Supplier supplier; private LazyCompletableFuture(Supplier supplier) { @@ -353,6 +357,17 @@ public interface CompletionCollector { } return super.get(); } + +@Override +public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { +CompletableFuture.supplyAsync(supplier, ASYNC_WORKER).thenAccept(t -> { +this.complete(t); +}).exceptionally(ex -> { +this.completeExceptionally(ex); +return null; +}); +return super.get(timeout, unit); +} } } } 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 c6baa76..8c75abf 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 @@ -20,6 +20,7 @@ package org.netbeans.modules.java.lsp.server.protocol; import com.google.gson.Gson; import com.google.gson.JsonObject; +import com.google.gson.JsonPrimitive; import com.sun.source.tree.ClassTree; import com.sun.source.tree.LineMap; import com.sun.source.tree.MethodTree; @@ -49,6 +50,7 @@ import java.util.Map.Entry; import java.util.Optional; import java.util.Set; import java.util.concurrent.CompletableFuture; +import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicReference; @@ -81,6 +83,8 @@ import org.eclipse.lsp4j.CompletionItemKind; import org.eclipse.lsp4j.CompletionItemTag; import org.eclipse.lsp4j.CompletionList; import org.eclipse.lsp4j.CompletionParams; +import org.eclipse.lsp4j.ConfigurationItem; +import org.eclipse.lsp4j.ConfigurationParams; import org.eclipse.lsp4j.CreateFile; import org.eclipse.lsp4j.DefinitionParams; import org.eclipse.lsp4j.Diagnostic; @@ -223,6
[jira] [Closed] (NETBEANS-2706) Variable information is not available, source compiled without -g option
[ https://issues.apache.org/jira/browse/NETBEANS-2706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yougeshwar Khatri closed NETBEANS-2706. --- Resolution: Fixed > Variable information is not available, source compiled without -g option > > > Key: NETBEANS-2706 > URL: https://issues.apache.org/jira/browse/NETBEANS-2706 > Project: NetBeans > Issue Type: Bug > Components: apisupport - Maven, cnd - Debugger >Affects Versions: 8.2 >Reporter: Yougeshwar Khatri >Priority: Major > Attachments: image-2021-10-12-16-08-03-707.png, screenshot-1.png > > > Hi, > During debugging local variables not showing and gives this information: > {code:java} > Variable information is not available, source compiled without -g option{code} > > Please help in this > > Thanks -- 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: Selected range is ignored for CSS reformatting
This is an automated email from the ASF dual-hosted git repository. matthiasblaesing 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 332e84d Selected range is ignored for CSS reformatting new e4dc741 Merge pull request #3202 from matthiasblaesing/fix_css_formatting 332e84d is described below commit 332e84dec45b8181016bfc3b63cfe7dbb15d300a Author: Matthias Bläsing AuthorDate: Thu Sep 30 20:42:42 2021 +0200 Selected range is ignored for CSS reformatting Without this change the hole file is always formatted and a selected range is ignored. --- .../modules/css/editor/indent/CssIndentTask.java | 13 +++- .../test/unit/data/testfiles/partialformatting.css | 35 .../data/testfiles/partialformatting.css.formatted | 36 + .../testfiles/partialformatting.css.formatted2 | 37 ++ .../modules/css/editor/indent/CssIndenterTest.java | 28 5 files changed, 148 insertions(+), 1 deletion(-) diff --git a/ide/css.editor/src/org/netbeans/modules/css/editor/indent/CssIndentTask.java b/ide/css.editor/src/org/netbeans/modules/css/editor/indent/CssIndentTask.java index b1b1887..e6bf851 100644 --- a/ide/css.editor/src/org/netbeans/modules/css/editor/indent/CssIndentTask.java +++ b/ide/css.editor/src/org/netbeans/modules/css/editor/indent/CssIndentTask.java @@ -156,10 +156,21 @@ public class CssIndentTask implements IndentTask, Lookup.Provider { } Collections.reverse(newlinesMissing); for (int index : newlinesMissing) { -context.document().insertString(index, "\n", null); +if(isPositionInFormatRegions(index)) { +context.document().insertString(index, "\n", null); +} } } +private boolean isPositionInFormatRegions(int pos) { +for(Region r: context.indentRegions()) { +if(r.getStartOffset() <= pos && r.getEndOffset() > pos) { +return true; +} +} +return false; +} + private int determineBlocklevel(TokenSequence ts) { int blockLevel = 0; ts.moveStart(); diff --git a/ide/css.editor/test/unit/data/testfiles/partialformatting.css b/ide/css.editor/test/unit/data/testfiles/partialformatting.css new file mode 100644 index 000..96e68ba --- /dev/null +++ b/ide/css.editor/test/unit/data/testfiles/partialformatting.css @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/* DIRECT STYLES FOR TAGS---*/ +body { +color: #33; padding:0px; margin:0px; +font-size: 0.7em; +font-family: Verdana, +"Verdana CE", +Arial, +"Arial CE", +"Lucida Grande CE", lucida, "Helvetica CE", sans-serif; +height:500px; +} + +body.blue-bg { +background-color:#b4dae0; +background-image:url('/images/v6/body-bg.png');background-repeat:repeat-x; +} \ No newline at end of file diff --git a/ide/css.editor/test/unit/data/testfiles/partialformatting.css.formatted b/ide/css.editor/test/unit/data/testfiles/partialformatting.css.formatted new file mode 100644 index 000..58f89aa --- /dev/null +++ b/ide/css.editor/test/unit/data/testfiles/partialformatting.css.formatted @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/* DIRECT STYLES FOR
[jira] [Commented] (NETBEANS-2706) Variable information is not available, source compiled without -g option
[ https://issues.apache.org/jira/browse/NETBEANS-2706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17427751#comment-17427751 ] Marc Private commented on NETBEANS-2706: So this ticket can be closed? > Variable information is not available, source compiled without -g option > > > Key: NETBEANS-2706 > URL: https://issues.apache.org/jira/browse/NETBEANS-2706 > Project: NetBeans > Issue Type: Bug > Components: apisupport - Maven, cnd - Debugger >Affects Versions: 8.2 >Reporter: Yougeshwar Khatri >Priority: Major > Attachments: image-2021-10-12-16-08-03-707.png, screenshot-1.png > > > Hi, > During debugging local variables not showing and gives this information: > {code:java} > Variable information is not available, source compiled without -g option{code} > > Please help in this > > Thanks -- 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-2706) Variable information is not available, source compiled without -g option
[ https://issues.apache.org/jira/browse/NETBEANS-2706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yougeshwar Khatri updated NETBEANS-2706: Attachment: screenshot-1.png > Variable information is not available, source compiled without -g option > > > Key: NETBEANS-2706 > URL: https://issues.apache.org/jira/browse/NETBEANS-2706 > Project: NetBeans > Issue Type: Bug > Components: apisupport - Maven, cnd - Debugger >Affects Versions: 8.2 >Reporter: Yougeshwar Khatri >Priority: Major > Attachments: image-2021-10-12-16-08-03-707.png, screenshot-1.png > > > Hi, > During debugging local variables not showing and gives this information: > {code:java} > Variable information is not available, source compiled without -g option{code} > > Please help in this > > Thanks -- 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-2706) Variable information is not available, source compiled without -g option
[ https://issues.apache.org/jira/browse/NETBEANS-2706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17427697#comment-17427697 ] Yougeshwar Khatri commented on NETBEANS-2706: - That's correct, my project is maven based project so I'm compiling with maven, but I'm not using any options. I have resolved that issue by enabling *Generate Debugging Info* in compile setting of the project: !screenshot-1.png! > Variable information is not available, source compiled without -g option > > > Key: NETBEANS-2706 > URL: https://issues.apache.org/jira/browse/NETBEANS-2706 > Project: NetBeans > Issue Type: Bug > Components: apisupport - Maven, cnd - Debugger >Affects Versions: 8.2 >Reporter: Yougeshwar Khatri >Priority: Major > Attachments: image-2021-10-12-16-08-03-707.png, screenshot-1.png > > > Hi, > During debugging local variables not showing and gives this information: > {code:java} > Variable information is not available, source compiled without -g option{code} > > Please help in this > > Thanks -- 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-2706) Variable information is not available, source compiled without -g option
[ https://issues.apache.org/jira/browse/NETBEANS-2706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yougeshwar Khatri updated NETBEANS-2706: Attachment: image-2021-10-12-16-08-03-707.png > Variable information is not available, source compiled without -g option > > > Key: NETBEANS-2706 > URL: https://issues.apache.org/jira/browse/NETBEANS-2706 > Project: NetBeans > Issue Type: Bug > Components: apisupport - Maven, cnd - Debugger >Affects Versions: 8.2 >Reporter: Yougeshwar Khatri >Priority: Major > Attachments: image-2021-10-12-16-08-03-707.png > > > Hi, > During debugging local variables not showing and gives this information: > {code:java} > Variable information is not available, source compiled without -g option{code} > > Please help in this > > Thanks -- 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-2706) Variable information is not available, source compiled without -g option
[ https://issues.apache.org/jira/browse/NETBEANS-2706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17427694#comment-17427694 ] Marc Private commented on NETBEANS-2706: Are you compiling with Maven? Are you using the -Dmaven.compiler.debug=true option? > Variable information is not available, source compiled without -g option > > > Key: NETBEANS-2706 > URL: https://issues.apache.org/jira/browse/NETBEANS-2706 > Project: NetBeans > Issue Type: Bug > Components: apisupport - Maven, cnd - Debugger >Affects Versions: 8.2 >Reporter: Yougeshwar Khatri >Priority: Major > > Hi, > During debugging local variables not showing and gives this information: > {code:java} > Variable information is not available, source compiled without -g option{code} > > Please help in this > > Thanks -- 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-6126) NullPointerException: Cannot invoke "java.net.URL.toURI()" because the return value of "AutoupdateCatalogProvider.getUpdateCenterURL()" is null
[ https://issues.apache.org/jira/browse/NETBEANS-6126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Entlicher updated NETBEANS-6126: --- Description: I've got this exception in an VSCode extension, but it seems to be a generic NetBeans issue. The exception has caused crash of the NetBeans backend in the VSCode extension: {code:java} java.lang.NullPointerException: Cannot invoke "java.net.URL.toURI()" because the return value of "org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogProvider.getUpdateCenterURL()" is null at org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser.getUpdateItems(AutoupdateCatalogParser.java:165) at org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogProvider.getUpdateItems(AutoupdateCatalogProvider.java:120) at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.appendUpdateItems(UpdateUnitFactory.java:150) at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.getUpdateUnits(UpdateUnitFactory.java:118) at org.netbeans.modules.autoupdate.services.UpdateManagerImpl$Cache.(UpdateManagerImpl.java:267) at org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getCache(UpdateManagerImpl.java:227) at org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getUpdateUnits(UpdateManagerImpl.java:186) at org.netbeans.api.autoupdate.UpdateManager.getUpdateUnits(UpdateManager.java:67) at org.netbeans.modules.autoupdate.cli.ModuleOptions.listAllModules(ModuleOptions.java:138) at org.netbeans.modules.autoupdate.cli.ModuleOptions.process(ModuleOptions.java:170) at org.netbeans.spi.sendopts.Option$1.process(Option.java:362) at org.netbeans.api.sendopts.CommandLine.process(CommandLine.java:336) at org.netbeans.modules.sendopts.HandlerImpl.execute(HandlerImpl.java:37) at org.netbeans.modules.sendopts.Handler.cli(Handler.java:44) at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:209) at org.netbeans.core.startup.CLICoreBridge.cli(CLICoreBridge.java:57) at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:209) at org.netbeans.CLIHandler$1.exec(CLIHandler.java:243) at org.netbeans.CLIHandler.finishInitialization(CLIHandler.java:423) at org.netbeans.MainImpl.finishInitialization(MainImpl.java:231) at org.netbeans.Main.finishInitialization(Main.java:67) at org.netbeans.core.startup.Main.start(Main.java:291) at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98) at java.base/java.lang.Thread.run(Thread.java:833) Cannot find org.netbeans.modules.java.lsp.server in the log! Request to kill LSP server. Cannot kill: Requested kill on 230607, current process is None Apache NetBeans Language Server not enabled! {code} was: I've got this exception in an VSCode extension, but it seems to be a generic NetBeans issue. Run on JDK 17 and the system did not have network available at the moment. The exception has caused crash of the NetBeans backend in the VSCode extension: {code} java.lang.NullPointerException: Cannot invoke "java.net.URL.toURI()" because the return value of "org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogProvider.getUpdateCenterURL()" is null at org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser.getUpdateItems(AutoupdateCatalogParser.java:165) at org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogProvider.getUpdateItems(AutoupdateCatalogProvider.java:120) at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.appendUpdateItems(UpdateUnitFactory.java:150) at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.getUpdateUnits(UpdateUnitFactory.java:118) at org.netbeans.modules.autoupdate.services.UpdateManagerImpl$Cache.(UpdateManagerImpl.java:267) at org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getCache(UpdateManagerImpl.java:227) at org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getUpdateUnits(UpdateManagerImpl.java:186) at org.netbeans.api.autoupdate.UpdateManager.getUpdateUnits(UpdateManager.java:67) at org.netbeans.modules.autoupdate.cli.ModuleOptions.listAllModules(ModuleOptions.java:138) at org.netbeans.modules.autoupdate.cli.ModuleOptions.process(ModuleOptions.java:170) at org.netbeans.spi.sendopts.Option$1.process(Option.java:362) at org.netbeans.api.sendopts.CommandLine.process(CommandLine.java:336) at org.netbeans.modules.sendopts.HandlerImpl.execute(HandlerImpl.java:37) at org.netbeans.modules.sendopts.Handler.cli(Handler.java:44) at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:209) at org.netbeans.core.startup.CLICoreBridge.cli(CLICoreBridge.java:57) at
[jira] [Created] (NETBEANS-6126) NullPointerException: Cannot invoke "java.net.URL.toURI()" because the return value of "AutoupdateCatalogProvider.getUpdateCenterURL()" is null
Martin Entlicher created NETBEANS-6126: -- Summary: NullPointerException: Cannot invoke "java.net.URL.toURI()" because the return value of "AutoupdateCatalogProvider.getUpdateCenterURL()" is null Key: NETBEANS-6126 URL: https://issues.apache.org/jira/browse/NETBEANS-6126 Project: NetBeans Issue Type: Bug Components: platform - Autoupdate Reporter: Martin Entlicher I've got this exception in an VSCode extension, but it seems to be a generic NetBeans issue. Run on JDK 17 and the system did not have network available at the moment. The exception has caused crash of the NetBeans backend in the VSCode extension: {code} java.lang.NullPointerException: Cannot invoke "java.net.URL.toURI()" because the return value of "org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogProvider.getUpdateCenterURL()" is null at org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser.getUpdateItems(AutoupdateCatalogParser.java:165) at org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogProvider.getUpdateItems(AutoupdateCatalogProvider.java:120) at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.appendUpdateItems(UpdateUnitFactory.java:150) at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.getUpdateUnits(UpdateUnitFactory.java:118) at org.netbeans.modules.autoupdate.services.UpdateManagerImpl$Cache.(UpdateManagerImpl.java:267) at org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getCache(UpdateManagerImpl.java:227) at org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getUpdateUnits(UpdateManagerImpl.java:186) at org.netbeans.api.autoupdate.UpdateManager.getUpdateUnits(UpdateManager.java:67) at org.netbeans.modules.autoupdate.cli.ModuleOptions.listAllModules(ModuleOptions.java:138) at org.netbeans.modules.autoupdate.cli.ModuleOptions.process(ModuleOptions.java:170) at org.netbeans.spi.sendopts.Option$1.process(Option.java:362) at org.netbeans.api.sendopts.CommandLine.process(CommandLine.java:336) at org.netbeans.modules.sendopts.HandlerImpl.execute(HandlerImpl.java:37) at org.netbeans.modules.sendopts.Handler.cli(Handler.java:44) at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:209) at org.netbeans.core.startup.CLICoreBridge.cli(CLICoreBridge.java:57) at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:209) at org.netbeans.CLIHandler$1.exec(CLIHandler.java:243) at org.netbeans.CLIHandler.finishInitialization(CLIHandler.java:423) at org.netbeans.MainImpl.finishInitialization(MainImpl.java:231) at org.netbeans.Main.finishInitialization(Main.java:67) at org.netbeans.core.startup.Main.start(Main.java:291) at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98) at java.base/java.lang.Thread.run(Thread.java:833) Cannot find org.netbeans.modules.java.lsp.server in the log! Request to kill LSP server. Cannot kill: Requested kill on 230607, current process is None Apache NetBeans Language Server not enabled! {code} -- 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] 01/01: Merging master and latest Akhilesh changes - e.g. f43ea7fc3286 - into nbjava17
This is an automated email from the ASF dual-hosted git repository. jtulach pushed a commit to branch nbjava17 in repository https://gitbox.apache.org/repos/asf/netbeans.git commit 954702f74653d00817751b7143c91ce2f7aaeb6a Merge: 9b8fda1 f43ea7f Author: Jaroslav Tulach AuthorDate: Tue Oct 12 13:42:14 2021 +0200 Merging master and latest Akhilesh changes - e.g. f43ea7fc3286 - into nbjava17 .../modules/java/completion/JavaCompletionTask.java| 3 +++ .../completion/JavaCompletionTask117FeaturesTest.java | 6 -- .../java/hints/errors/DifferentCaseKindsFix.java | 9 - java/libs.javacapi/external/binaries-list | 2 +- ...i-license.txt => nb-javac-17.0.0.0-api-license.txt} | 2 +- .../nbproject/org-netbeans-libs-javacapi.sig | 18 ++ java/libs.javacapi/nbproject/project.xml | 2 +- java/libs.javacimpl/external/binaries-list | 2 +- ...0.0.0-license.txt => nb-javac-17.0.0.0-license.txt} | 2 +- java/libs.javacimpl/nbproject/project.xml | 2 +- nb/updatecenters/extras/nbjavac.api/manifest.mf| 2 +- .../extras/nbjavac.api/nbproject/project.xml | 4 ++-- .../modules/ext/nb-javac-16.0.0.0-api.jar.external | 5 - .../modules/ext/nb-javac-17.0.0.0-api.jar.external | 5 + nb/updatecenters/extras/nbjavac.impl/manifest.mf | 2 +- .../extras/nbjavac.impl/nbproject/project.xml | 4 ++-- .../modules/ext/nb-javac-16.0.0.0-impl.jar.external| 5 - .../modules/ext/nb-javac-17.0.0.0-impl.jar.external| 5 + .../src/org/netbeans/modules/nbjavac/Bundle.properties | 4 ++-- nb/updatecenters/licenseinfo.xml | 4 ++-- nbbuild/templates/projectized.xml | 2 +- 21 files changed, 60 insertions(+), 30 deletions(-) - 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] [Resolved] (NETBEANS-5672) Plugin-based service registrations
[ https://issues.apache.org/jira/browse/NETBEANS-5672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Svatopluk Dedic resolved NETBEANS-5672. --- Resolution: Fixed Accidentally implemented as part of [https://github.com/apache/netbeans/pull/2948] for 12.5 > Plugin-based service registrations > -- > > Key: NETBEANS-5672 > URL: https://issues.apache.org/jira/browse/NETBEANS-5672 > Project: NetBeans > Issue Type: Improvement > Components: projects - Maven >Reporter: Svatopluk Dedic >Assignee: Svatopluk Dedic >Priority: Major > Fix For: 12.5 > > > Maven projects should support registrations of services / providers per > plugin, similar to Gradle. While it is possible to register a > *ProjectServiceProvider*, then query the maven project for a list of plugins, > each such provider must monitor the list of plugins and adjust the behaviour > appropriately. > Still the plugins used in the project are known and the maven core model > level, so this filter can be implemented centraly, by the maven core module. -- 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] [Resolved] (NETBEANS-5732) Profiler not working with Maven Project when installed in path-with-spaces
[ https://issues.apache.org/jira/browse/NETBEANS-5732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Svatopluk Dedic resolved NETBEANS-5732. --- Resolution: Fixed Was fixed for 12.5 by https://github.com/apache/netbeans/pull/3099 > Profiler not working with Maven Project when installed in path-with-spaces > -- > > Key: NETBEANS-5732 > URL: https://issues.apache.org/jira/browse/NETBEANS-5732 > Project: NetBeans > Issue Type: Bug > Components: projects - Maven >Affects Versions: 12.4 >Reporter: Peter Hull >Assignee: Svatopluk Dedic >Priority: Major > Fix For: 12.5 > > Attachments: IDE_log.txt, nbactions.xml > > > Profiler does not start when attempting to profile a Swing app using a maven > project on MacOS. > Expected: profiler does start > Actual: Shows an error in the output tab, given below: > {{cd /Users/peterhull/Projects/mavenproject2; > JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home > "/Applications/NetBeans/Apache NetBeans > 12.4.app/Contents/Resources/NetBeans/netbeans/java/maven/bin/mvn" > "-Dexec.vmArgs='-agentpath:}} > {{'/Applications/NetBeans/Apache NetBeans > 12.4.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib\\'=}} > {{'/Applications/NetBeans/Apache NetBeans > 12.4.app/Contents/Resources/NetBeans/netbeans/profiler/lib}} > {{',5140,10' -XX:+HeapDumpOnOutOfMemoryError > '-XX:HeapDumpPath=/Users/peterhull/Library/Caches/NetBeans/12.4/mavencachedirs/1004131909/org-netbeans-modules-profiler > '" "-Dexec.args=${exec.vmArgs} -classpath %classpath ${exec.mainClass} > ${exec.appArgs}" -Dexec.mainClass=com.nowhere.mavenproject2.NewJFrame > -Dexec.executable=/Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home/bin/java > "-Dprofiler.jvmargs.all= -XX:+HeapDumpOnOutOfMemoryError > -XX:HeapDumpPath=/Users/peterhull/Library/Caches/NetBeans/12.4/mavencachedirs/1004131909/org-netbeans-modules-profiler > -agentpath:'/Applications/NetBeans/Apache NetBeans > 12.4.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib'='/Applications/NetBeans/Apache > NetBeans > 12.4.app/Contents/Resources/NetBeans/netbeans/profiler/lib',5140,10" > "-Dprofiler.jvmargs.arg1=-agentpath:'/Applications/NetBeans/Apache NetBeans > 12.4.app/Contents/Resources/NetBeans/netbeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib'='/Applications/NetBeans/Apache > NetBeans > 12.4.app/Contents/Resources/NetBeans/netbeans/profiler/lib',5140,10" > -Dprofiler.jvmargs.arg2=-XX:HeapDumpPath=/Users/peterhull/Library/Caches/NetBeans/12.4/mavencachedirs/1004131909/org-netbeans-modules-profiler > -Dprofiler.jvmargs.arg3=-XX:+HeapDumpOnOutOfMemoryError -Dexec.appArgs= > org.codehaus.mojo:exec-maven-plugin:3.0.0:exec}} > {{ Running NetBeans Compile On Save execution. Phase execution is skipped and > output directories of dependency projects (with Compile on Save turned on) > will be used instead of their jar artifacts.}} > {{ Scanning for projects...}}{{-< > com.nowhere:mavenproject2 >--}} > {{ Building mavenproject2 1.0-SNAPSHOT}} > {{ [ jar > ]-}}{{— exec-maven-plugin:3.0.0:exec > (default-cli) @ mavenproject2 —}} > {{ Error occurred during initialization of VM}} > {{ Could not find agent library \/Applications/NetBeans/Apache in absolute > path, with error: dlopen(\/Applications/NetBeans/Apache, 1): image not found}} > {{ Command execution failed.}} > {{ org.apache.commons.exec.ExecuteException: Process exited with an error: 1 > (Exit value: 1)}} > {{ at org.apache.commons.exec.DefaultExecutor.executeInternal > (DefaultExecutor.java:404)}} > {{ at org.apache.commons.exec.DefaultExecutor.execute > (DefaultExecutor.java:166)}} > {{ at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:982)}} > {{ at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:929)}} > {{ at org.codehaus.mojo.exec.ExecMojo.execute (ExecMojo.java:457)}} > {{ at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo > (DefaultBuildPluginManager.java:137)}} > {{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:210)}} > {{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:156)}} > {{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:148)}} > {{ at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject > (LifecycleModuleBuilder.java:117)}} > {{ at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject > (LifecycleModuleBuilder.java:81)}} > {{ at >
[jira] [Resolved] (NETBEANS-6106) Stabilize java.gradle unit tests
[ https://issues.apache.org/jira/browse/NETBEANS-6106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Svatopluk Dedic resolved NETBEANS-6106. --- Resolution: Fixed Fixed test code. > Stabilize java.gradle unit tests > > > Key: NETBEANS-6106 > URL: https://issues.apache.org/jira/browse/NETBEANS-6106 > Project: NetBeans > Issue Type: Task > Components: projects - Gradle >Reporter: Svatopluk Dedic >Assignee: Svatopluk Dedic >Priority: Major > Labels: pull-request-available > Fix For: 12.6 > > Time Spent: 10m > Remaining Estimate: 0h > > Java Gradle unit test is constantly failing on CI: > [junit] Test > org.netbeans.modules.gradle.java.execute.JavaExecTokenProviderTest FAILED > See for example https://api.travis-ci.com/v3/job/541430369/log.txt -- 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] [Resolved] (NETBEANS-6123) Step and Continue after breakpoint suspends at wrong place after eval.
[ https://issues.apache.org/jira/browse/NETBEANS-6123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Entlicher resolved NETBEANS-6123. Resolution: Fixed > Step and Continue after breakpoint suspends at wrong place after eval. > -- > > Key: NETBEANS-6123 > URL: https://issues.apache.org/jira/browse/NETBEANS-6123 > Project: NetBeans > Issue Type: Bug > Components: debugger - Java >Reporter: Martin Entlicher >Assignee: Martin Entlicher >Priority: Major > Labels: pull-request-available > Fix For: 12.6 > > Time Spent: 20m > Remaining Estimate: 0h > > Suppose that user performs a step over code that contains a breakpoint. > In this case the step is interrupted with the breakpoint, the code suspends > on the breakpoint and the user can decide to either continue debugging from > the breakpoint, or do continue to finish the step. > That works fine if there is no code evaluation before the continue. If there > is, the step is resubmitted from the current (breakpoint) location. This is > unexpected since the original step would not be completed and a new local > step is performed after continue instead. > We need to assure that the step is not resubmitted from the breakpoint > location and the original step is completed as expected. -- 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: The class com.oracle.truffle.polyglot.LanguageCache$Loader is not found in newer GraalVMs, use TruffleJDKServices instead.
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 9b8fda1 The class com.oracle.truffle.polyglot.LanguageCache$Loader is not found in newer GraalVMs, use TruffleJDKServices instead. 9b8fda1 is described below commit 9b8fda1ef42f5717b619ab44d822f082140cc318 Author: Martin Entlicher AuthorDate: Mon Oct 11 19:46:50 2021 +0200 The class com.oracle.truffle.polyglot.LanguageCache$Loader is not found in newer GraalVMs, use TruffleJDKServices instead. --- .../modules/debugger/jpda/truffle/RemoteServices.java | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/java/debugger.jpda.truffle/src/org/netbeans/modules/debugger/jpda/truffle/RemoteServices.java b/java/debugger.jpda.truffle/src/org/netbeans/modules/debugger/jpda/truffle/RemoteServices.java index b566a93..69af7cb 100644 --- a/java/debugger.jpda.truffle/src/org/netbeans/modules/debugger/jpda/truffle/RemoteServices.java +++ b/java/debugger.jpda.truffle/src/org/netbeans/modules/debugger/jpda/truffle/RemoteServices.java @@ -95,17 +95,17 @@ public final class RemoteServices { private static final Logger logger = Logger.getLogger(RemoteServices.class.getName()); -static final String REMOTE_CLASSES_ZIPFILE = "/org/netbeans/modules/debugger/jpda/truffle/resources/JPDATruffleBackend.jar"; +static final String REMOTE_CLASSES_ZIPFILE = "/org/netbeans/modules/debugger/jpda/truffle/resources/JPDATruffleBackend.jar"; // NOI18N -private static final String TRUFFLE_CLASS = "com.oracle.truffle.api.Truffle"; -private static final String EXPORT_TRUFFLE_CLASS = "com.oracle.truffle.polyglot.LanguageCache$Loader"; -private static final String EXPORT_TRUFFLE_METHOD = "exportTruffle"; -private static final String EXPORT_TRUFFLE_SIGNAT = "(Ljava/lang/ClassLoader;)V"; +private static final String TRUFFLE_CLASS = "com.oracle.truffle.api.Truffle"; // NOI18N +private static final String EXPORT_TRUFFLE_CLASS = "com.oracle.truffle.api.impl.TruffleJDKServices";// NOI18N +private static final String EXPORT_TRUFFLE_METHOD = "exportTo"; // NOI18N +private static final String EXPORT_TRUFFLE_SIGNAT = "(Ljava/lang/ClassLoader;Ljava/lang/String;)V"; // NOI18N private static final Map remoteServiceClasses = new WeakHashMap<>(); private static final Map remoteServiceAccess = new WeakHashMap<>(); -private static final RequestProcessor AUTORESUME_AFTER_SUSPEND_RP = new RequestProcessor("Autoresume after suspend", 1); +private static final RequestProcessor AUTORESUME_AFTER_SUSPEND_RP = new RequestProcessor("Autoresume after suspend", 1);// NOI18N private static final Set serviceListeners = new WeakSet<>(); @@ -279,7 +279,7 @@ public final class RemoteServices { Exceptions.printStackTrace(new IllegalStateException("Method " + EXPORT_TRUFFLE_METHOD + " was not found in " + EXPORT_TRUFFLE_CLASS +" in the debuggee.")); return null; } -ClassTypeWrapper.invokeMethod(languageLoader, tawt, exportTruffle, Collections.singletonList(classLoader), ObjectReference.INVOKE_SINGLE_THREADED); +ClassTypeWrapper.invokeMethod(languageLoader, tawt, exportTruffle, Arrays.asList(classLoader, null), ObjectReference.INVOKE_SINGLE_THREADED); } else { ObjectReference cl; cl = getTruffleClassLoader(tawt, vm); - 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: Step and Continue after breakpoint suspends at wrong place after eval. [NETBEANS-6123]
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 1b12ab7 Step and Continue after breakpoint suspends at wrong place after eval. [NETBEANS-6123] 1b12ab7 is described below commit 1b12ab7eebf06b7264161e8f19a90b5142103a03 Author: Martin Entlicher AuthorDate: Mon Oct 11 20:23:41 2021 +0200 Step and Continue after breakpoint suspends at wrong place after eval. [NETBEANS-6123] --- .../modules/debugger/jpda/JPDAStepImpl.java| 6 ++ .../debugger/jpda/actions/StepActionProvider.java | 3 + .../debugger/jpda/actions/StepIntoNextMethod.java | 2 + .../modules/debugger/jpda/impl/StepUtils.java | 67 .../debugger/jpda/models/JPDAThreadImpl.java | 42 - .../org/netbeans/api/debugger/jpda/StepTest.java | 71 ++ .../debugger/jpda/testapps/StepAndContinueApp.java | 53 7 files changed, 241 insertions(+), 3 deletions(-) diff --git a/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/JPDAStepImpl.java b/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/JPDAStepImpl.java index e762f6f..2a3706f 100644 --- a/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/JPDAStepImpl.java +++ b/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/JPDAStepImpl.java @@ -62,6 +62,7 @@ import org.netbeans.api.debugger.jpda.event.JPDABreakpointListener; import org.netbeans.modules.debugger.jpda.actions.CompoundSmartSteppingListener; import org.netbeans.modules.debugger.jpda.actions.SmartSteppingFilterImpl; import org.netbeans.modules.debugger.jpda.actions.StepIntoActionProvider; +import org.netbeans.modules.debugger.jpda.impl.StepUtils; import org.netbeans.modules.debugger.jpda.jdi.ClassNotPreparedExceptionWrapper; import org.netbeans.modules.debugger.jpda.jdi.ClassTypeWrapper; import org.netbeans.modules.debugger.jpda.jdi.IllegalThreadStateExceptionWrapper; @@ -225,6 +226,7 @@ public class JPDAStepImpl extends JPDAStep implements Executor { size, getDepth() ); +StepUtils.markOriginalStepDepth(stepRequest, trImpl.getThreadReference()); //stepRequest.addCountFilter(1); - works bad with exclusion filters! String[] exclusionPatterns = applyExclusionPatterns(stepRequest); debuggerImpl.getOperator().register(stepRequest, this); @@ -468,6 +470,7 @@ public class JPDAStepImpl extends JPDAStep implements Executor { StepRequest.STEP_LINE, StepRequest.STEP_OVER ); +StepUtils.markOriginalStepDepth(boundaryStepRequest, trRef); if (isNextOperationFromDifferentExpression) { EventRequestWrapper.addCountFilter(boundaryStepRequest, 2); } else { @@ -632,6 +635,7 @@ public class JPDAStepImpl extends JPDAStep implements Executor { StepRequest.STEP_LINE, StepRequest.STEP_OUT ); +StepUtils.markOriginalStepDepth(stepRequest, tr.getThreadReference()); EventRequestWrapper.addCountFilter(stepRequest, 1); String[] exclusionPatterns = getCurrentExclusionPatterns(); // JDI is inconsistent!!! Step into steps *through* filters, but step out does *NOT* @@ -946,6 +950,7 @@ public class JPDAStepImpl extends JPDAStep implements Executor { doStepSize, doStepDepth ); +StepUtils.markOriginalStepDepth(stepRequest, tr); //EventRequestWrapper.addCountFilter(stepRequest, 1); String[] exclusionPatterns = applyExclusionPatterns(stepRequest); debuggerImpl.getOperator ().register (stepRequest, this); @@ -1002,6 +1007,7 @@ public class JPDAStepImpl extends JPDAStep implements Executor { doStepSize, depth ); +StepUtils.markOriginalStepDepth(stepRequest, tr); if (logger.isLoggable(Level.FINE)) { try { logger.fine("Can not stop at " + ThreadReferenceWrapper.frame(tr, 0) + ", smart-stepping. Submitting step = " + stepRequest + "; depth = " + depth); diff --git a/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/actions/StepActionProvider.java b/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/actions/StepActionProvider.java index a770ea5..6cff450 100644 --- a/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/actions/StepActionProvider.java +++
[jira] [Commented] (NETBEANS-3605) Cannot open web application project
[ https://issues.apache.org/jira/browse/NETBEANS-3605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17427532#comment-17427532 ] Sara commented on NETBEANS-3605: any hint on how to solve? I'm still not able to open my project > Cannot open web application project > --- > > Key: NETBEANS-3605 > URL: https://issues.apache.org/jira/browse/NETBEANS-3605 > Project: NetBeans > Issue Type: Bug > Components: apisupport - Project >Affects Versions: 11.2 > Environment: Windows 10 pro(64bit ) > 16G Ram , Intel i5-4460 >Reporter: Walter Lau >Priority: Major > > When open the web application project , system throw the below exception and > cannot open it . > > java.lang.NullPointerExceptionjava.lang.NullPointerException at > org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.runJavaSourceTaskWhenScanFinished(AnnotationModelHelper.java:190) > at > org.netbeans.modules.j2ee.dd.impl.webservices.annotation.WebservicesMetadataModelImpl.runReadActionWhenReady(WebservicesMetadataModelImpl.java:80) > at > org.netbeans.modules.j2ee.metadata.model.api.MetadataModel.runReadActionWhenReady(MetadataModel.java:160) > at > org.netbeans.modules.websvc.core.jaxws.projects.JavaEEWSOpenHook.projectOpened(JavaEEWSOpenHook.java:80) > at > org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:60) > at > org.netbeans.spi.project.ui.support.UILookupMergerSupport$OpenHookImpl.projectOpened(UILookupMergerSupport.java:223) > at > org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:60)[catch] > at > org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:1273) > at > org.netbeans.modules.project.ui.OpenProjectList.doOpenProject(OpenProjectList.java:1354) > at > org.netbeans.modules.project.ui.OpenProjectList.open(OpenProjectList.java:798) > at > org.netbeans.modules.project.ui.OpenProjectList$6.run(OpenProjectList.java:650) > 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) > -- 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] [Resolved] (NETBEANS-6102) Category Actions can not be opend in project properties for certain Maven Projects
[ https://issues.apache.org/jira/browse/NETBEANS-6102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Svatopluk Dedic resolved NETBEANS-6102. --- Resolution: Fixed > Category Actions can not be opend in project properties for certain Maven > Projects > -- > > Key: NETBEANS-6102 > URL: https://issues.apache.org/jira/browse/NETBEANS-6102 > Project: NetBeans > Issue Type: Bug > Components: projects - Maven >Affects Versions: 12.5 > Environment: Windows > Java 11 and 17 >Reporter: Ronny Perinke >Assignee: Svatopluk Dedic >Priority: Critical > Labels: Regression, maven, pull-request-available > Fix For: 12.6 > > Time Spent: 10m > Remaining Estimate: 0h > > For Maven Projects of packaging type "pom" (_e.g. the parent in a > multi-module project_) or "hpi" (_Jenkins plugin_), the menu item "Actions" > in the project settings can not be opened. A {{NullPointerException}} is > logged instead. > This is likely a regression of [commit > c282a25d5071c1b44de7026a4ceb9d200e161e14|https://github.com/apache/netbeans/commit/c282a25d5071c1b44de7026a4ceb9d200e161e14#diff-a0789b6ea44b9deffb46bc59c2da95e1ab44302f648e02703d521d0ea042398dR201] > and [PR #3016|https://github.com/apache/netbeans/pull/3016]. > {code:title=NPE in messages.log} > java.lang.NullPointerException: Cannot invoke > "org.netbeans.modules.maven.execute.model.NetbeansActionMapping.getGoals()" > because "am" is null > at > org.netbeans.modules.maven.execute.ActionToGoalUtils.isDisabledMapping(ActionToGoalUtils.java:201) > at > org.netbeans.modules.maven.customizer.ActionMappings$Renderer.getListCellRendererComponent(ActionMappings.java:1082) > at > java.desktop/javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1444) > at > java.desktop/javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1394) > at > java.desktop/javax.swing.plaf.basic.BasicListUI.getPreferredSize(BasicListUI.java:653) > at > java.desktop/javax.swing.JComponent.getPreferredSize(JComponent.java:1725) > at > java.desktop/javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:799) > at java.desktop/java.awt.Container.layout(Container.java:1541) > at java.desktop/java.awt.Container.doLayout(Container.java:1530) > at java.desktop/java.awt.Container.validateTree(Container.java:1725) > at java.desktop/java.awt.Container.validateTree(Container.java:1734) > at java.desktop/java.awt.Container.validateTree(Container.java:1734) > at java.desktop/java.awt.Container.validateTree(Container.java:1734) > at java.desktop/java.awt.Container.validateTree(Container.java:1734) > at java.desktop/java.awt.Container.validateTree(Container.java:1734) > at java.desktop/java.awt.Container.validateTree(Container.java:1734) > at java.desktop/java.awt.Container.validate(Container.java:1660) > at > java.desktop/javax.swing.RepaintManager$3.run(RepaintManager.java:757) > at > java.desktop/javax.swing.RepaintManager$3.run(RepaintManager.java:755) > at > java.base/java.security.AccessController.doPrivileged(AccessController.java:399) > at > java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) > at > java.desktop/javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:754) > at > java.desktop/javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1897) > at > java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) > at > java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771) > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722) > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716) > at > java.base/java.security.AccessController.doPrivileged(AccessController.java:399) > at > java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) > at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741) > at > org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136) > [catch] at > java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) > at > java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) > at > java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117) > at > java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:191) > at >
[jira] [Updated] (NETBEANS-6102) Category Actions can not be opend in project properties for certain Maven Projects
[ https://issues.apache.org/jira/browse/NETBEANS-6102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated NETBEANS-6102: - Labels: Regression maven pull-request-available (was: Regression maven) > Category Actions can not be opend in project properties for certain Maven > Projects > -- > > Key: NETBEANS-6102 > URL: https://issues.apache.org/jira/browse/NETBEANS-6102 > Project: NetBeans > Issue Type: Bug > Components: projects - Maven >Affects Versions: 12.5 > Environment: Windows > Java 11 and 17 >Reporter: Ronny Perinke >Assignee: Svatopluk Dedic >Priority: Critical > Labels: Regression, maven, pull-request-available > Fix For: 12.6 > > Time Spent: 10m > Remaining Estimate: 0h > > For Maven Projects of packaging type "pom" (_e.g. the parent in a > multi-module project_) or "hpi" (_Jenkins plugin_), the menu item "Actions" > in the project settings can not be opened. A {{NullPointerException}} is > logged instead. > This is likely a regression of [commit > c282a25d5071c1b44de7026a4ceb9d200e161e14|https://github.com/apache/netbeans/commit/c282a25d5071c1b44de7026a4ceb9d200e161e14#diff-a0789b6ea44b9deffb46bc59c2da95e1ab44302f648e02703d521d0ea042398dR201] > and [PR #3016|https://github.com/apache/netbeans/pull/3016]. > {code:title=NPE in messages.log} > java.lang.NullPointerException: Cannot invoke > "org.netbeans.modules.maven.execute.model.NetbeansActionMapping.getGoals()" > because "am" is null > at > org.netbeans.modules.maven.execute.ActionToGoalUtils.isDisabledMapping(ActionToGoalUtils.java:201) > at > org.netbeans.modules.maven.customizer.ActionMappings$Renderer.getListCellRendererComponent(ActionMappings.java:1082) > at > java.desktop/javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1444) > at > java.desktop/javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1394) > at > java.desktop/javax.swing.plaf.basic.BasicListUI.getPreferredSize(BasicListUI.java:653) > at > java.desktop/javax.swing.JComponent.getPreferredSize(JComponent.java:1725) > at > java.desktop/javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:799) > at java.desktop/java.awt.Container.layout(Container.java:1541) > at java.desktop/java.awt.Container.doLayout(Container.java:1530) > at java.desktop/java.awt.Container.validateTree(Container.java:1725) > at java.desktop/java.awt.Container.validateTree(Container.java:1734) > at java.desktop/java.awt.Container.validateTree(Container.java:1734) > at java.desktop/java.awt.Container.validateTree(Container.java:1734) > at java.desktop/java.awt.Container.validateTree(Container.java:1734) > at java.desktop/java.awt.Container.validateTree(Container.java:1734) > at java.desktop/java.awt.Container.validateTree(Container.java:1734) > at java.desktop/java.awt.Container.validate(Container.java:1660) > at > java.desktop/javax.swing.RepaintManager$3.run(RepaintManager.java:757) > at > java.desktop/javax.swing.RepaintManager$3.run(RepaintManager.java:755) > at > java.base/java.security.AccessController.doPrivileged(AccessController.java:399) > at > java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) > at > java.desktop/javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:754) > at > java.desktop/javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1897) > at > java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) > at > java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771) > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722) > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716) > at > java.base/java.security.AccessController.doPrivileged(AccessController.java:399) > at > java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) > at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741) > at > org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136) > [catch] at > java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) > at > java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) > at > java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117) > at > java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:191) > at >
[netbeans] branch master updated: [NETBEANS-6102] no/null mapping should be handled as disabled action.
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 5f2b9b0 [NETBEANS-6102] no/null mapping should be handled as disabled action. new 6fb7a62 Merge pull request #3234 from sdedic/maven/npe-null-mapping 5f2b9b0 is described below commit 5f2b9b0874cf4c381a9bcfb5564dcf288caacf50 Author: Svata Dedic AuthorDate: Mon Oct 11 19:37:48 2021 +0200 [NETBEANS-6102] no/null mapping should be handled as disabled action. --- .../maven/src/org/netbeans/modules/maven/execute/ActionToGoalUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/maven/src/org/netbeans/modules/maven/execute/ActionToGoalUtils.java b/java/maven/src/org/netbeans/modules/maven/execute/ActionToGoalUtils.java index fbb4329..d8aa361 100644 --- a/java/maven/src/org/netbeans/modules/maven/execute/ActionToGoalUtils.java +++ b/java/maven/src/org/netbeans/modules/maven/execute/ActionToGoalUtils.java @@ -198,7 +198,7 @@ public final class ActionToGoalUtils { * @since 2.149 */ public static boolean isDisabledMapping(NetbeansActionMapping am) { -return am.getGoals().isEmpty(); +return am == null || am.getGoals().isEmpty(); } public static boolean isActionEnable(String action, NbMavenProjectImpl project, ProjectConfiguration c, Lookup lookup) { - 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