[jira] [Updated] (NETBEANS-4930) Upgrade Gradle Tooling to 6.7 for JDK 15 Support

2020-10-21 Thread ASF GitHub Bot (Jira)


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

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

> Upgrade Gradle Tooling to 6.7 for JDK 15 Support
> 
>
> Key: NETBEANS-4930
> URL: https://issues.apache.org/jira/browse/NETBEANS-4930
> Project: NetBeans
>  Issue Type: Improvement
>  Components: projects - Gradle
>Reporter: Laszlo Kishalmi
>Assignee: Laszlo Kishalmi
>Priority: Critical
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Gradle 6.7 is the first version that supports JDK-15 which is the recent JDK. 
> It would be nice to include that in NetBeans 12.2



--
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-4930) Upgrade Gradle Tooling to 6.7 for JDK 15 Support

2020-10-21 Thread Laszlo Kishalmi (Jira)
Laszlo Kishalmi created NETBEANS-4930:
-

 Summary: Upgrade Gradle Tooling to 6.7 for JDK 15 Support
 Key: NETBEANS-4930
 URL: https://issues.apache.org/jira/browse/NETBEANS-4930
 Project: NetBeans
  Issue Type: Improvement
  Components: projects - Gradle
Reporter: Laszlo Kishalmi
Assignee: Laszlo Kishalmi


Gradle 6.7 is the first version that supports JDK-15 which is the recent JDK. 
It would be nice to include that in NetBeans 12.2



--
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-4929) Trying to open the class in an annotation value opens the annotation file instead

2020-10-21 Thread dennis lucero (Jira)
dennis lucero created NETBEANS-4929:
---

 Summary: Trying to open the class in an annotation value opens the 
annotation file instead
 Key: NETBEANS-4929
 URL: https://issues.apache.org/jira/browse/NETBEANS-4929
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 12.1
 Environment: Windows 10, OpenJDK 15
Reporter: dennis lucero


Example class:
{code:java}
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
public @interface Demo {
}{code}
Clicking on {{RetentionPolicy}} or {{CLASS}} while pressing {{Ctrl}} opens 
{{Retention.java}} instead of {{RetentionPolicy.java}}.

Clicking on {{ElementType}} or {{TYPE}} while pressing {{Ctrl}} opens 
{{Target.java}} instead of {{ElementType.java}}.



--
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-4928) not enough memory in cache to debugg

2020-10-21 Thread Jorge M Morales (Jira)
Jorge M Morales created NETBEANS-4928:
-

 Summary: not enough memory in cache to debugg
 Key: NETBEANS-4928
 URL: https://issues.apache.org/jira/browse/NETBEANS-4928
 Project: NetBeans
  Issue Type: Bug
Reporter: Jorge M Morales


the compiler says that there is not enough memory in cache to transfer maven 
repository index and I am not able to debug any program



--
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-4905) Exception on starting NetBeans

2020-10-21 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi resolved NETBEANS-4905.
---
Resolution: Incomplete

No information provided.

> Exception on starting NetBeans
> --
>
> Key: NETBEANS-4905
> URL: https://issues.apache.org/jira/browse/NETBEANS-4905
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Amikam Kaminsky
>Priority: Major
>




--
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 delivery updated: Read mainClass configuration or property.

2020-10-21 Thread entl
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/delivery by this push:
 new 3b2dabe  Read mainClass configuration or property.
 new 832de2c  Merge pull request #2474 from 
entlicher/MavenMainClass_delivery
3b2dabe is described below

commit 3b2dabe6baf7154533b4183b0b44fd423ab04066
Author: Martin Entlicher 
AuthorDate: Tue Oct 20 15:58:58 2020 +0200

Read mainClass configuration or property.
---
 .../modules/maven/runjar/RunJarPrereqChecker.java  |  60 -
 .../maven/runjar/RunJarPrereqCheckerTest.java  | 134 +
 2 files changed, 193 insertions(+), 1 deletion(-)

diff --git 
a/java/maven/src/org/netbeans/modules/maven/runjar/RunJarPrereqChecker.java 
b/java/maven/src/org/netbeans/modules/maven/runjar/RunJarPrereqChecker.java
index 26b6196..b3f3b2c 100644
--- a/java/maven/src/org/netbeans/modules/maven/runjar/RunJarPrereqChecker.java
+++ b/java/maven/src/org/netbeans/modules/maven/runjar/RunJarPrereqChecker.java
@@ -24,9 +24,13 @@ import java.io.File;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
+import java.util.Properties;
 import javax.swing.JButton;
 import javax.swing.event.ChangeEvent;
 import javax.swing.event.ChangeListener;
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.model.Plugin;
+import org.codehaus.plexus.util.xml.Xpp3Dom;
 import org.netbeans.api.java.project.JavaProjectConstants;
 import org.netbeans.api.project.Project;
 import org.netbeans.api.project.ProjectUtils;
@@ -57,6 +61,8 @@ import org.openide.util.NbBundle.Messages;
 @ProjectServiceProvider(service=PrerequisitesChecker.class, 
projectType="org-netbeans-modules-maven/" + NbMavenProject.TYPE_JAR)
 public class RunJarPrereqChecker implements PrerequisitesChecker {
 
+private static final String[] MAIN_CLASS_PROPERTIES = {"mainClass", 
"exec.mainClass", "project.mainClass", "project.mainclass"}; // NOI18N
+
 private String mainClass;
 
 @Override public boolean checkRunConfig(RunConfig config) {
@@ -82,7 +88,7 @@ public class RunJarPrereqChecker implements 
PrerequisitesChecker {
 if ((ActionProvider.COMMAND_RUN.equals(actionName) ||
 ActionProvider.COMMAND_DEBUG.equals(actionName) ||
 ActionProvider.COMMAND_PROFILE.equals(actionName))) {
-String mc = null;
+String mc = findMainClass(config);
 for (Map.Entry entry : 
config.getProperties().entrySet()) {
 if (entry.getValue().contains("${packageClassName}")) { 
//NOI18N
 //show dialog to choose main class.
@@ -99,6 +105,58 @@ public class RunJarPrereqChecker implements 
PrerequisitesChecker {
 return true;
 }
 
+private static String findMainClass(RunConfig config) {
+// Read main class from the manifest property:
+String mainClass = getConfiguration(config, "maven-jar-plugin", 
"archive", "manifest", "mainClass"); // NOI18N
+if (mainClass != null) {
+return mainClass;
+}
+// Read main class from exec-maven-plugin configuration:
+mainClass = getConfiguration(config, "exec-maven-plugin", 
"mainClass"); // NOI18N
+if (mainClass != null) {
+return mainClass;
+}
+// Check pom's properties:
+Properties properties = config.getMavenProject().getProperties();
+for (String name : MAIN_CLASS_PROPERTIES) {
+String mc = properties.getProperty(name);
+if (mc != null) {
+return mc;
+}
+}
+return null;
+}
+
+private static Plugin findPlugin(RunConfig config, String name) {
+List plugins = 
config.getMavenProject().getBuild().getPlugins();
+for (Plugin p : plugins) {
+if (name.equals(p.getArtifactId())) {
+return p;
+}
+}
+return null;
+}
+
+private static String getConfiguration(RunConfig config, String pluginId, 
String... configs) {
+Plugin plugin = findPlugin(config, pluginId);
+if (plugin != null) {
+Xpp3Dom configuration = (Xpp3Dom) plugin.getConfiguration();
+if (configuration != null) {
+Xpp3Dom child = configuration;
+for (String c : configs) {
+child = child.getChild(c);
+if (child == null) {
+break;
+}
+}
+if (child != null) {
+return child.getValue();
+}
+}
+}
+return null;
+}
+
 @Messages({
 "LBL_ChooseMainClass_Title=Select Main Class for Execution",
 "LBL_ChooseMainClass_OK=Select Main Class"
diff --git 
a/java/maven/test/unit/src/org/netbeans/modules/

[jira] [Updated] (NETBEANS-4927) Error parsing source files inside the JDK

2020-10-21 Thread Petr Miksik (Jira)


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

Petr Miksik updated NETBEANS-4927:
--
Priority: Major  (was: Blocker)

> Error parsing source files inside the JDK
> -
>
> Key: NETBEANS-4927
> URL: https://issues.apache.org/jira/browse/NETBEANS-4927
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Parsing & Indexing
>Affects Versions: 12.1
>Reporter: Petr Miksik
>Priority: Major
> Attachments: DefaultMutableTreeNode.dump, ide.log, ui.log
>
>
> If you open (for example) file for class {{DefaultMutableTreeNode}}, the 
> editor fails to parse the file. See the attached log files.



--
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-4927) Error parsing source files inside the JDK

2020-10-21 Thread Petr Miksik (Jira)
Petr Miksik created NETBEANS-4927:
-

 Summary: Error parsing source files inside the JDK
 Key: NETBEANS-4927
 URL: https://issues.apache.org/jira/browse/NETBEANS-4927
 Project: NetBeans
  Issue Type: Bug
  Components: editor - Parsing & Indexing
Affects Versions: 12.1
Reporter: Petr Miksik
 Attachments: DefaultMutableTreeNode.dump, ide.log, ui.log

If you open (for example) file for class {{DefaultMutableTreeNode}}, the editor 
fails to parse the file. See the attached log files.



--
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-4926) completely Stops after debugging

2020-10-21 Thread Jorge M Morales (Jira)
Jorge M Morales created NETBEANS-4926:
-

 Summary: completely Stops after debugging
 Key: NETBEANS-4926
 URL: https://issues.apache.org/jira/browse/NETBEANS-4926
 Project: NetBeans
  Issue Type: Bug
 Environment: Linux MInt Ulyana 
NetBeans FlatPack
Reporter: Jorge M Morales
 Attachments: Payroll.java





--
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