[jira] [Resolved] (NETBEANS-5668) There are in the Gradle Project Problem Resolver Dialog

2021-05-11 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi resolved NETBEANS-5668.
---
Fix Version/s: 12.5
   Resolution: Fixed

> There are  in the Gradle Project Problem Resolver Dialog
> -
>
> Key: NETBEANS-5668
> URL: https://issues.apache.org/jira/browse/NETBEANS-5668
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Laszlo Kishalmi
>Assignee: Laszlo Kishalmi
>Priority: Minor
>  Labels: pull-request-available
> Fix For: 12.5
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>




--
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: [NETBEANS-5668] Fix slipping -s in the Project Problem Dialog

2021-05-11 Thread lkishalmi
This is an automated email from the ASF dual-hosted git repository.

lkishalmi 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 99e1b1c  [NETBEANS-5668] Fix slipping -s in the Project Problem 
Dialog
99e1b1c is described below

commit 99e1b1ca22b744e88c85bd0989cce112d61ae0e5
Author: Laszlo Kishalmi 
AuthorDate: Mon May 10 09:21:59 2021 -0700

[NETBEANS-5668] Fix slipping -s in the Project Problem Dialog
---
 .../gradle/tooling/NetBeansToolingPlugin.java  | 14 ++--
 .../gradle/GradleProjectErrorNotifications.java| 37 +++--
 .../gradle/loaders/LegacyProjectLoader.java| 38 --
 3 files changed, 60 insertions(+), 29 deletions(-)

diff --git 
a/extide/gradle/netbeans-gradle-tooling/src/main/groovy/org/netbeans/modules/gradle/tooling/NetBeansToolingPlugin.java
 
b/extide/gradle/netbeans-gradle-tooling/src/main/groovy/org/netbeans/modules/gradle/tooling/NetBeansToolingPlugin.java
index 15e8459..9b1da37 100644
--- 
a/extide/gradle/netbeans-gradle-tooling/src/main/groovy/org/netbeans/modules/gradle/tooling/NetBeansToolingPlugin.java
+++ 
b/extide/gradle/netbeans-gradle-tooling/src/main/groovy/org/netbeans/modules/gradle/tooling/NetBeansToolingPlugin.java
@@ -30,6 +30,7 @@ import java.util.LinkedList;
 import java.util.List;
 import java.util.Map;
 import javax.inject.Inject;
+import org.gradle.api.GradleException;
 import org.gradle.api.Plugin;
 import org.gradle.api.Project;
 import org.gradle.tooling.provider.model.ToolingModelBuilder;
@@ -97,12 +98,21 @@ public class NetBeansToolingPlugin implements 
Plugin {
 pw.println(ex.toString());
 ex.printStackTrace(pw);
 
-BaseModel ret = new NbProjectInfoModel();
+NbProjectInfoModel ret = new NbProjectInfoModel();
 ret.setGradleException(sw.toString());
+
+Throwable cause = ex;
+while ((cause != null) || (cause.getCause() != cause)) {
+if (cause instanceof GradleException) {
+ret.noteProblem((GradleException) cause);
+break;
+}
+cause = cause.getCause();
+}
 return ret;
 }
 }
-
+
 }
 
 }
diff --git 
a/extide/gradle/src/org/netbeans/modules/gradle/GradleProjectErrorNotifications.java
 
b/extide/gradle/src/org/netbeans/modules/gradle/GradleProjectErrorNotifications.java
index 7ec2df5..d284d43 100644
--- 
a/extide/gradle/src/org/netbeans/modules/gradle/GradleProjectErrorNotifications.java
+++ 
b/extide/gradle/src/org/netbeans/modules/gradle/GradleProjectErrorNotifications.java
@@ -36,10 +36,10 @@ public class GradleProjectErrorNotifications {
 
 public synchronized void openNotification(String title, String problem, 
String details) {
 StringBuilder sb = new StringBuilder(details.length());
-sb.append("");
-String[] lines = details.split("\n");
+sb.append(""); //NOI18N
+String[] lines = details.split("\n");//NOI18N
 for (String line : lines) {
-sb.append(line).append("");
+sb.append(line).append(""); //NOI18N
 }
 Notification ntn = NotificationDisplayer.getDefault().notify(title,
 NbGradleProject.getWarningIcon(),
@@ -59,22 +59,39 @@ public class GradleProjectErrorNotifications {
 
 public static String bulletedList(Collection elements) {
 StringBuilder sb = new StringBuilder();
-sb.append("");
+sb.append("");   //NOI18N
 for (Object element : elements) {
-sb.append("");
-String[] lines = element.toString().split("\n");
+sb.append("");   //NOI18N
+String[] lines = element.toString().split("\n"); //NOI18N
 for (int i = 0; i < lines.length; i++) {
 String line = lines[i];
-sb.append(line);
+sb.append(lineWrap(line, 78));
 if (i < lines.length - 1) {
-sb.append("");
+sb.append("");  //NOI18N
 }
 }
-sb.append("");
+sb.append("");  //NOI18N
 }
-sb.append("");
+sb.append("");  //NOI18N
 return sb.toString();
 }
 
 
+private static String lineWrap(String line, int maxCol) {
+StringBuilder sb = new StringBuilder(line.length());
+String[] parts = line.split(" ");//NOI18N
+int col = 0;
+String delim = "";   //NOI18N
+for (String part : pa

[jira] [Created] (NETBEANS-5672) Plugin-based service registrations

2021-05-11 Thread Svatopluk Dedic (Jira)
Svatopluk Dedic created NETBEANS-5672:
-

 Summary: 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
 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] [Updated] (NETBEANS-5668) There are in the Gradle Project Problem Resolver Dialog

2021-05-11 Thread Marco Robiati (Jira)


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

Marco Robiati updated NETBEANS-5668:

Priority: Trivial  (was: Minor)

> There are  in the Gradle Project Problem Resolver Dialog
> -
>
> Key: NETBEANS-5668
> URL: https://issues.apache.org/jira/browse/NETBEANS-5668
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Laszlo Kishalmi
>Assignee: Laszlo Kishalmi
>Priority: Trivial
>  Labels: pull-request-available
>  Time Spent: 20m
>  Remaining Estimate: 0h
>




--
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-5668) There are in the Gradle Project Problem Resolver Dialog

2021-05-11 Thread Marco Robiati (Jira)


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

Marco Robiati updated NETBEANS-5668:

Priority: Minor  (was: Trivial)

> There are  in the Gradle Project Problem Resolver Dialog
> -
>
> Key: NETBEANS-5668
> URL: https://issues.apache.org/jira/browse/NETBEANS-5668
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Laszlo Kishalmi
>Assignee: Laszlo Kishalmi
>Priority: Minor
>  Labels: pull-request-available
>  Time Spent: 20m
>  Remaining Estimate: 0h
>




--
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-5669) A java.lang.IllegalAccessError exception has occurred.

2021-05-11 Thread Marco Robiati (Jira)


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

Marco Robiati commented on NETBEANS-5669:
-

Version 12.3 and below doesn't support Java 16
This could probably be related with 
https://issues.apache.org/jira/browse/NETBEANS-5427, in which case there's a 
workaround and it's fixed in version 12.4
To solve try the workaround in the link or use another Java version


> A java.lang.IllegalAccessError exception has occurred.
> --
>
> Key: NETBEANS-5669
> URL: https://issues.apache.org/jira/browse/NETBEANS-5669
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Pascal Böhm
>Assignee: Pascal Böhm
>Priority: Blocker
> Attachments: messages.log
>
>
> A java.lang.IllegalAccessError exception has occurred.
> Netbeans IDE 12
> JDK 16/ Java 16.0.1
> Look in the comment section for more information.
> There's also a log file.
> Please help.
> Thank you very much!
>  
>  



--
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-5671) ActionProvider should support running Action using specific ProjectConfiguration

2021-05-11 Thread Svatopluk Dedic (Jira)
Svatopluk Dedic created NETBEANS-5671:
-

 Summary: ActionProvider should support running Action using 
specific ProjectConfiguration
 Key: NETBEANS-5671
 URL: https://issues.apache.org/jira/browse/NETBEANS-5671
 Project: NetBeans
  Issue Type: Improvement
  Components: projects - Generic Infrastructure, projects - Gradle, 
projects - Maven
Reporter: Svatopluk Dedic
Assignee: Svatopluk Dedic
 Fix For: 12.5


When invoking an action programmatically, it's not possible to specify what 
ProjectConfiguration the action should use. This may mean the action is not 
available at all (if defined specifically in a certain Configuration), or may 
be invoked differently - the *active* configuration is always used. The only 
chance is to change the active configuration - which changes the project's view 
*for everyone*, not just for the action being invoked.

Likewise setting the active configuration back after action completes is not a 
good idea, since the config may flip back and forth unexpectedly for the user.

 

Note: Gradle does not support Configurations atm.

 



--
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-5670) MavenActionProviders should contribute configurations

2021-05-11 Thread Svatopluk Dedic (Jira)


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

Svatopluk Dedic updated NETBEANS-5670:
--
Fix Version/s: 12.5

> MavenActionProviders should contribute configurations
> -
>
> Key: NETBEANS-5670
> URL: https://issues.apache.org/jira/browse/NETBEANS-5670
> Project: NetBeans
>  Issue Type: Improvement
>  Components: javaee - Micronaut, projects - Maven
>Reporter: Svatopluk Dedic
>Priority: Major
>  Labels: VSNetBeans
> Fix For: 12.5
>
>
> Currently *MavenActionProviders* can only contribute action replacements or 
> new actions. They can not contribute *configurations*. This could be useful 
> for plugins like Micronaut, that supports *mn:run* which is a suitable 
> alternative to *regular* run. It *may* be preferred by some developers, but 
> should not *replace* and disallow access to the traditional application 
> launch mode.
>  



--
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-5670) MavenActionProviders should contribute configurations

2021-05-11 Thread Svatopluk Dedic (Jira)


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

Svatopluk Dedic updated NETBEANS-5670:
--
Labels: VSNetBeans  (was: )

> MavenActionProviders should contribute configurations
> -
>
> Key: NETBEANS-5670
> URL: https://issues.apache.org/jira/browse/NETBEANS-5670
> Project: NetBeans
>  Issue Type: Improvement
>  Components: javaee - Micronaut, projects - Maven
>Reporter: Svatopluk Dedic
>Priority: Major
>  Labels: VSNetBeans
>
> Currently *MavenActionProviders* can only contribute action replacements or 
> new actions. They can not contribute *configurations*. This could be useful 
> for plugins like Micronaut, that supports *mn:run* which is a suitable 
> alternative to *regular* run. It *may* be preferred by some developers, but 
> should not *replace* and disallow access to the traditional application 
> launch mode.
>  



--
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] [Assigned] (NETBEANS-5670) MavenActionProviders should contribute configurations

2021-05-11 Thread Svatopluk Dedic (Jira)


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

Svatopluk Dedic reassigned NETBEANS-5670:
-

Assignee: Svatopluk Dedic

> MavenActionProviders should contribute configurations
> -
>
> Key: NETBEANS-5670
> URL: https://issues.apache.org/jira/browse/NETBEANS-5670
> Project: NetBeans
>  Issue Type: Improvement
>  Components: javaee - Micronaut, projects - Maven
>Reporter: Svatopluk Dedic
>Assignee: Svatopluk Dedic
>Priority: Major
>  Labels: VSNetBeans
> Fix For: 12.5
>
>
> Currently *MavenActionProviders* can only contribute action replacements or 
> new actions. They can not contribute *configurations*. This could be useful 
> for plugins like Micronaut, that supports *mn:run* which is a suitable 
> alternative to *regular* run. It *may* be preferred by some developers, but 
> should not *replace* and disallow access to the traditional application 
> launch mode.
>  



--
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-5670) MavenActionProviders should contribute configurations

2021-05-11 Thread Svatopluk Dedic (Jira)
Svatopluk Dedic created NETBEANS-5670:
-

 Summary: MavenActionProviders should contribute configurations
 Key: NETBEANS-5670
 URL: https://issues.apache.org/jira/browse/NETBEANS-5670
 Project: NetBeans
  Issue Type: Improvement
  Components: javaee - Micronaut, projects - Maven
Reporter: Svatopluk Dedic


Currently *MavenActionProviders* can only contribute action replacements or new 
actions. They can not contribute *configurations*. This could be useful for 
plugins like Micronaut, that supports *mn:run* which is a suitable alternative 
to *regular* run. It *may* be preferred by some developers, but should not 
*replace* and disallow access to the traditional application launch mode.

 



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