[jira] [Resolved] (NETBEANS-3645) Can't Create or open java projects

2019-12-28 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi resolved NETBEANS-3645.
---
Resolution: Invalid

> Can't Create or open java projects
> --
>
> Key: NETBEANS-3645
> URL: https://issues.apache.org/jira/browse/NETBEANS-3645
> Project: NetBeans
>  Issue Type: Bug
> Environment: NetBeans 10
>Reporter: Amber Ferrebee
>Priority: Major
>
> IllegalStateException: Host module StandardModule:org.netbeans.libs.javacimpl 
> jarFile: 
> C:\Users\amber\OneDrive\Desktop\Netbeans\netbeans\java\modules\org-netbeans-libs-javacimpl.jar
>  was enabled before, will not accept fragment 
> StandardModule:org.netbeans.modules.nbjavac.impl jarFile: 
> C:\Users\amber\AppData\Roaming\NetBeans\10.0\modules\org-netbeans-modules-nbjavac-impl.jar



--
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-3620) There were some problems while storing nb-javac Impl

2019-12-28 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi commented on NETBEANS-3620:
---

Please check if you can download: 
[https://hg.netbeans.org/binaries/344C8C2A8B421A52ABE725A677BF75659C17FEB6-nb-javac-13-impl.jar]

Are you behind a proxy?

 

> There were some problems while storing nb-javac Impl
> 
>
> Key: NETBEANS-3620
> URL: https://issues.apache.org/jira/browse/NETBEANS-3620
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Christopher M Logan
>Priority: Major
> Attachments: nb-javac-installation-error.txt
>
>
> There were some problems while storing nb-javac Impl.
> Cause: Cannot resolve external reference to 
> [https://hg.netbeans.org/binaries/344C8C2A8B421A52ABE725A677BF75659C17FEB6-nb-javac-13-impl.jar]
>  
> I was finishing up the 11.2 NetBeans installation and after i opened up the 
> IDE - the popup was shown to install nb-javac. I started the process and it 
> failed with pushing the status to 100%.



--
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-3612) "IllegalArgumentException: Unsupported kind: RECORD" thrown while editing content. JDK 14

2019-12-28 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi resolved NETBEANS-3612.
---
Resolution: Duplicate

> "IllegalArgumentException: Unsupported kind: RECORD" thrown while editing 
> content. JDK 14
> -
>
> Key: NETBEANS-3612
> URL: https://issues.apache.org/jira/browse/NETBEANS-3612
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Editor
> Environment: OpenJDK Runtime Environment 14-ea+27-1339
>Reporter: Akhilesh Singh
>Priority: Major
>  Labels: jdk14
>
> Writing below code in the java editor throws IllegalArgumentException.
> public class JDK14Appplication {
>  public static void main(String[] args) {
>  java.lang.Record t2 = new RECA1.Test2(5, 6);
>  System.out.println("class Inner record value " + t2);
>  }
>  }
> class RECA1{
>  public record Test2(long i1, int j1) {
>  }
> }



--
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-3626) Multiple exceptions java.lang.ClassCastException: java.io.File cannot be cast to java.lang.String

2019-12-28 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi commented on NETBEANS-3626:
---

Is it possible that a File is passed into the compiler arguments somehow?

It might be possible that a File object could infiltrate into a list of Strings 
during de-serialization.

It could be an easy fix, but need some info on the circumstances.

 

> Multiple exceptions java.lang.ClassCastException: java.io.File cannot be cast 
> to java.lang.String
> -
>
> Key: NETBEANS-3626
> URL: https://issues.apache.org/jira/browse/NETBEANS-3626
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 11.2
>Reporter: Alexander
>Assignee: Laszlo Kishalmi
>Priority: Major
> Attachments: messages.log
>
>
> Multiple exceptions "java.lang.ClassCastException: java.io.File cannot be 
> cast to java.lang.String" when opening and working with gradle project.
> Editor became unusable.



--
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-3626) Multiple exceptions java.lang.ClassCastException: java.io.File cannot be cast to java.lang.String

2019-12-28 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi updated NETBEANS-3626:
--
Component/s: projects - Gradle

> Multiple exceptions java.lang.ClassCastException: java.io.File cannot be cast 
> to java.lang.String
> -
>
> Key: NETBEANS-3626
> URL: https://issues.apache.org/jira/browse/NETBEANS-3626
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 11.2
>Reporter: Alexander
>Priority: Major
> Attachments: messages.log
>
>
> Multiple exceptions "java.lang.ClassCastException: java.io.File cannot be 
> cast to java.lang.String" when opening and working with gradle project.
> Editor became unusable.



--
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-3626) Multiple exceptions java.lang.ClassCastException: java.io.File cannot be cast to java.lang.String

2019-12-28 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi reassigned NETBEANS-3626:
-

Assignee: Laszlo Kishalmi

> Multiple exceptions java.lang.ClassCastException: java.io.File cannot be cast 
> to java.lang.String
> -
>
> Key: NETBEANS-3626
> URL: https://issues.apache.org/jira/browse/NETBEANS-3626
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 11.2
>Reporter: Alexander
>Assignee: Laszlo Kishalmi
>Priority: Major
> Attachments: messages.log
>
>
> Multiple exceptions "java.lang.ClassCastException: java.io.File cannot be 
> cast to java.lang.String" when opening and working with gradle project.
> Editor became unusable.



--
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-3643) Sca Project exception

2019-12-28 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi resolved NETBEANS-3643.
---
Resolution: Invalid

NetBeans 10.0 is not supported any more, especially the Debian package. Please 
uninstall the Debian package.

It would be better if you install the Supported Snap package from 
[https://snapcraft.io/netbeans] or other types of installation ar 
[https://netbeans.apache.org|https://netbeans.apache.org/]

 

> Sca Project exception
> -
>
> Key: NETBEANS-3643
> URL: https://issues.apache.org/jira/browse/NETBEANS-3643
> Project: NetBeans
>  Issue Type: Bug
> Environment: Linux  Mint 19.3
> NetBeans 10.0 debian
>Reporter: Marco
>Priority: Major
> Attachments: ui.log
>
>




--
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-3643) Sca Project exception

2019-12-28 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi updated NETBEANS-3643:
--
Attachment: ui.log

> Sca Project exception
> -
>
> Key: NETBEANS-3643
> URL: https://issues.apache.org/jira/browse/NETBEANS-3643
> Project: NetBeans
>  Issue Type: Bug
> Environment: Linux  Mint 19.3
>Reporter: Marco
>Priority: Major
> Attachments: ui.log
>
>




--
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-3643) Sca Project exception

2019-12-28 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi updated NETBEANS-3643:
--
Environment: 
Linux  Mint 19.3
NetBeans 10.0 debian

  was:Linux  Mint 19.3


> Sca Project exception
> -
>
> Key: NETBEANS-3643
> URL: https://issues.apache.org/jira/browse/NETBEANS-3643
> Project: NetBeans
>  Issue Type: Bug
> Environment: Linux  Mint 19.3
> NetBeans 10.0 debian
>Reporter: Marco
>Priority: Major
> Attachments: ui.log
>
>




--
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-3645) Can't Create or open java projects

2019-12-28 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi commented on NETBEANS-3645:
---

NetBeans 10.0 is not supported. Try to upgrade to NetBeans 11.2u1 or NetBeans 
11.0

> Can't Create or open java projects
> --
>
> Key: NETBEANS-3645
> URL: https://issues.apache.org/jira/browse/NETBEANS-3645
> Project: NetBeans
>  Issue Type: Bug
> Environment: NetBeans 10
>Reporter: Amber Ferrebee
>Priority: Major
>
> IllegalStateException: Host module StandardModule:org.netbeans.libs.javacimpl 
> jarFile: 
> C:\Users\amber\OneDrive\Desktop\Netbeans\netbeans\java\modules\org-netbeans-libs-javacimpl.jar
>  was enabled before, will not accept fragment 
> StandardModule:org.netbeans.modules.nbjavac.impl jarFile: 
> C:\Users\amber\AppData\Roaming\NetBeans\10.0\modules\org-netbeans-modules-nbjavac-impl.jar



--
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-3646) Update google guava from 15.0 to 27.0

2019-12-28 Thread ASF GitHub Bot (Jira)


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

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

> Update google guava from 15.0 to 27.0
> -
>
> Key: NETBEANS-3646
> URL: https://issues.apache.org/jira/browse/NETBEANS-3646
> Project: NetBeans
>  Issue Type: Improvement
>  Components: projects - Libraries
>Affects Versions: 11.2
>Reporter: Jose
>Assignee: Jose
>Priority: Minor
>  Labels: pull-request-available
> Fix For: Next, 11.3
>
>
> Notes:
> - Several bug fixes
> - Several improvements
> - Requires Java 8
> - Added JPMS module name com.google.common for Guava
> - Fix security vulnerability CVE-2018-10237
> [Google Guava Web Page|https://github.com/google/guava]
> [Google Guava Release Notes 
> 1|https://github.com/google/guava/wiki/ReleaseHistory]
> [Google Guava Release Notes 2|https://github.com/google/guava/releases]



--
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-3646) Update google guava from 15.0 to 27.0

2019-12-28 Thread Jose (Jira)
Jose created NETBEANS-3646:
--

 Summary: Update google guava from 15.0 to 27.0
 Key: NETBEANS-3646
 URL: https://issues.apache.org/jira/browse/NETBEANS-3646
 Project: NetBeans
  Issue Type: Improvement
  Components: projects - Libraries
Affects Versions: 11.2
Reporter: Jose
Assignee: Jose
 Fix For: Next, 11.3


Notes:
- Several bug fixes
- Several improvements
- Requires Java 8
- Added JPMS module name com.google.common for Guava
- Fix security vulnerability CVE-2018-10237

[Google Guava Web Page|https://github.com/google/guava]

[Google Guava Release Notes 
1|https://github.com/google/guava/wiki/ReleaseHistory]
[Google Guava Release Notes 2|https://github.com/google/guava/releases]



--
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-3634) Gradle CLI Code completion uses hard coded colors.

2019-12-28 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi resolved NETBEANS-3634.
---
Fix Version/s: 11.3
   Resolution: Fixed

> Gradle CLI Code completion uses hard coded colors.
> --
>
> Key: NETBEANS-3634
> URL: https://issues.apache.org/jira/browse/NETBEANS-3634
> Project: NetBeans
>  Issue Type: Improvement
>  Components: projects - Gradle
>Reporter: Laszlo Kishalmi
>Assignee: Laszlo Kishalmi
>Priority: Major
>  Labels: pull-request-available
> Fix For: 11.3
>
>  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



[netbeans] branch master updated: [NETBEANS-3634] Use default colors in Gracle CLI Code completion

2019-12-28 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 fd974d2  [NETBEANS-3634] Use default colors in Gracle CLI Code 
completion
fd974d2 is described below

commit fd974d2a06b599b50bb9dfd3fcd8af41f5e68632
Author: Laszlo Kishalmi 
AuthorDate: Tue Dec 24 10:17:34 2019 -0800

[NETBEANS-3634] Use default colors in Gracle CLI Code completion
---
 .../gradle/execute/GradleCliCompletionProvider.java   | 19 ---
 1 file changed, 16 insertions(+), 3 deletions(-)

diff --git 
a/groovy/gradle/src/org/netbeans/modules/gradle/execute/GradleCliCompletionProvider.java
 
b/groovy/gradle/src/org/netbeans/modules/gradle/execute/GradleCliCompletionProvider.java
index 9dd7f99..a61c96a 100644
--- 
a/groovy/gradle/src/org/netbeans/modules/gradle/execute/GradleCliCompletionProvider.java
+++ 
b/groovy/gradle/src/org/netbeans/modules/gradle/execute/GradleCliCompletionProvider.java
@@ -28,15 +28,18 @@ import java.awt.Graphics;
 import java.awt.event.KeyEvent;
 import java.awt.font.TextAttribute;
 import java.net.URL;
+import java.util.HashMap;
 import java.util.Map;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 import javax.swing.Action;
+import javax.swing.ImageIcon;
 import javax.swing.text.BadLocationException;
 import javax.swing.text.Document;
 import javax.swing.text.Element;
 import javax.swing.text.JTextComponent;
 import javax.swing.text.StyledDocument;
+import org.netbeans.api.annotations.common.StaticResource;
 import org.netbeans.api.editor.completion.Completion;
 import org.netbeans.api.editor.mimelookup.MimeRegistration;
 import org.netbeans.api.project.Project;
@@ -50,6 +53,7 @@ import 
org.netbeans.spi.editor.completion.support.AsyncCompletionQuery;
 import org.netbeans.spi.editor.completion.support.AsyncCompletionTask;
 import org.netbeans.spi.editor.completion.support.CompletionUtilities;
 import org.openide.util.Exceptions;
+import org.openide.util.ImageUtilities;
 
 /**
  *
@@ -210,7 +214,7 @@ public class GradleCliCompletionProvider implements 
CompletionProvider {
 
 @Override
 public void render(Graphics g, Font defaultFont, Color defaultColor, 
Color backgroundColor, int width, int height, boolean selected) {
-CompletionUtilities.renderHtml(null, getValue(), null, g, 
defaultFont, (selected ? Color.white : Color.BLACK), width, height, selected);
+CompletionUtilities.renderHtml(null, getValue(), null, g, 
defaultFont, defaultColor, width, height, selected);
 }
 
 @Override
@@ -246,6 +250,10 @@ public class GradleCliCompletionProvider implements 
CompletionProvider {
 
 private static class GradleTaskCompletionItem extends 
AbstractGradleCompletionItem {
 
+@StaticResource
+private static final String TASK_ICON = 
"org/netbeans/modules/gradle/resources/gradle-task.gif"; //NOI18N
+private static final ImageIcon TASK_IMAGEICON = 
ImageUtilities.loadImageIcon(TASK_ICON, false);
+
 private final GradleTask task;
 
 public GradleTaskCompletionItem(GradleTask task, int startOffset, int 
caretOffset) {
@@ -279,6 +287,11 @@ public class GradleCliCompletionProvider implements 
CompletionProvider {
 return task.getName();
 }
 
+@Override
+public void render(Graphics g, Font defaultFont, Color defaultColor, 
Color backgroundColor, int width, int height, boolean selected) {
+CompletionUtilities.renderHtml(TASK_IMAGEICON, getValue(), null, 
g, defaultFont, defaultColor, width, height, selected);
+}
+
 private class GradleTaskCompletionDocumentation implements 
CompletionDocumentation {
 
 @Override
@@ -334,12 +347,12 @@ public class GradleCliCompletionProvider implements 
CompletionProvider {
 
 @Override
 public void render(Graphics g, Font defaultFont, Color defaultColor, 
Color backgroundColor, int width, int height, boolean selected) {
-Map attributes = defaultFont.getAttributes();
+Map attributes = new 
HashMap<>(defaultFont.getAttributes());
 if (!flag.isSupported()) {
 attributes.put(TextAttribute.STRIKETHROUGH, 
TextAttribute.STRIKETHROUGH_ON);
 }
 Font font = new Font(attributes);
-CompletionUtilities.renderHtml(null, getValue(), null, g, font, 
(selected ? Color.white : Color.BLACK), width, height, selected);
+CompletionUtilities.renderHtml(null, getValue(), null, g, font, 
defaultColor, width, height, selected);
 }
 
 @Override


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

For further information 

[jira] [Resolved] (NETBEANS-3633) Cannot Select Gradle Distribution Version

2019-12-28 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi resolved NETBEANS-3633.
---
Fix Version/s: 11.3
   Resolution: Fixed

> Cannot Select Gradle Distribution Version
> -
>
> Key: NETBEANS-3633
> URL: https://issues.apache.org/jira/browse/NETBEANS-3633
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Reporter: Laszlo Kishalmi
>Assignee: Laszlo Kishalmi
>Priority: Major
>  Labels: pull-request-available
> Fix For: 11.3
>
>  Time Spent: 1h
>  Remaining Estimate: 0h
>
> Gradle distribution lister REST API use https from a time. Unfortunatelly we 
> did not follow the redirects.



--
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: If an annotation processor crashes, just log the error and continue, rather than crash the whole processing.

2019-12-28 Thread jlahoda
This is an automated email from the ASF dual-hosted git repository.

jlahoda 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 20cf951   If an annotation processor crashes, just log the error and 
continue, rather than crash the whole processing.
20cf951 is described below

commit 20cf9519f592e4341c32e00dda5f525c1da8c597
Author: Jan Lahoda 
AuthorDate: Sat Dec 28 17:58:08 2019 +0100

 If an annotation processor crashes, just log the error and continue, 
rather than crash the whole processing.
---
 .../modules/java/source/indexing/APTUtils.java |  77 +-
 .../java/source/indexing/CrashingAPTest.java   | 258 +
 2 files changed, 334 insertions(+), 1 deletion(-)

diff --git 
a/java/java.source.base/src/org/netbeans/modules/java/source/indexing/APTUtils.java
 
b/java/java.source.base/src/org/netbeans/modules/java/source/indexing/APTUtils.java
index 5da0008..35c7719 100644
--- 
a/java/java.source.base/src/org/netbeans/modules/java/source/indexing/APTUtils.java
+++ 
b/java/java.source.base/src/org/netbeans/modules/java/source/indexing/APTUtils.java
@@ -18,6 +18,8 @@
  */
 package org.netbeans.modules.java.source.indexing;
 
+import com.sun.tools.javac.util.Abort;
+import com.sun.tools.javac.util.ClientCodeException;
 import com.sun.tools.javac.util.Context;
 import java.beans.PropertyChangeEvent;
 import java.beans.PropertyChangeListener;
@@ -50,9 +52,18 @@ import java.util.function.Predicate;
 import java.util.logging.Level;
 import java.util.logging.Logger;
 import java.util.stream.Collectors;
+import javax.annotation.processing.Completion;
+import javax.annotation.processing.ProcessingEnvironment;
 import javax.annotation.processing.Processor;
+import javax.annotation.processing.RoundEnvironment;
+import javax.lang.model.SourceVersion;
+import javax.lang.model.element.AnnotationMirror;
+import javax.lang.model.element.Element;
+import javax.lang.model.element.ExecutableElement;
+import javax.lang.model.element.TypeElement;
 import javax.swing.event.ChangeEvent;
 import javax.swing.event.ChangeListener;
+import javax.tools.Diagnostic;
 import org.netbeans.api.annotations.common.CheckForNull;
 import org.netbeans.api.annotations.common.NonNull;
 import org.netbeans.api.annotations.common.NullAllowed;
@@ -77,6 +88,7 @@ import org.openide.util.Exceptions;
 import org.openide.util.Lookup;
 import org.openide.util.RequestProcessor;
 import org.openide.util.BaseUtilities;
+import org.openide.util.NbBundle.Messages;
 import org.openide.util.Pair;
 import org.openide.util.WeakListeners;
 import org.openide.util.lookup.Lookups;
@@ -359,7 +371,7 @@ public class APTUtils implements ChangeListener, 
PropertyChangeListener {
 Class clazz = Class.forName(name, true, cl);
 Object instance = clazz.newInstance();
 if (instance instanceof Processor) {
-result.add((Processor) instance);
+result.add(new ErrorToleratingProcessor((Processor) 
instance));
 }
 } catch (ThreadDeath td) {
 throw td;
@@ -929,4 +941,67 @@ public class APTUtils implements ChangeListener, 
PropertyChangeListener {
 }
 }
 }
+
+private static final class ErrorToleratingProcessor implements Processor {
+
+private final Processor delegate;
+private ProcessingEnvironment processingEnv;
+private boolean valid = true;
+
+public ErrorToleratingProcessor(Processor delegate) {
+this.delegate = delegate;
+}
+
+@Override
+public Set getSupportedOptions() {
+return delegate.getSupportedOptions();
+}
+
+@Override
+public Set getSupportedAnnotationTypes() {
+return delegate.getSupportedAnnotationTypes();
+}
+
+@Override
+public SourceVersion getSupportedSourceVersion() {
+return delegate.getSupportedSourceVersion();
+}
+
+@Override
+public void init(ProcessingEnvironment processingEnv) {
+delegate.init(processingEnv);
+this.processingEnv = processingEnv;
+}
+
+@Override
+@Messages("ERR_ProcessorException=Annotation processor {0} failed with 
an exception: {1}")
+public boolean process(Set annotations, 
RoundEnvironment roundEnv) {
+if (!valid) {
+return false;
+}
+try {
+return delegate.process(annotations, roundEnv);
+} catch (ClientCodeException | ThreadDeath | Abort err) {
+valid = false;
+throw err;
+} catch (Throwable t) {
+valid = false;
+Element el = roundEnv.getRootElements().isEmpty() ? null : 
roundEnv.getRootElements().iterator().next();
+

[jira] [Commented] (NETBEANS-2940) Excessive CPU Usage during HTML/PHP project parsing.

2019-12-28 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi commented on NETBEANS-2940:
---

[~uran1980] Is this still an issue?

> Excessive CPU Usage during HTML/PHP project parsing.
> 
>
> Key: NETBEANS-2940
> URL: https://issues.apache.org/jira/browse/NETBEANS-2940
> Project: NetBeans
>  Issue Type: Bug
>  Components: javascript - Editor
>Affects Versions: 10.0, 11.1
>Reporter: E Dementiev
>Assignee: Laszlo Kishalmi
>Priority: Major
>  Labels: performance, pull-request-available
> Attachments: 2019-08-08-08-00-01.png, 2019-08-08-12-00-01.png, 
> 2019-08-08-14-00-01.png, 2019-08-09-09-00-01.png, 
> 2019-08-09-09-00-02-htop.png, 2019-08-09-09-00-03.png, 
> 2019-08-09-09-00-05.png, 2019-08-09-09-00-exception-log.txt, 
> 2019-08-09-12-00-01-JRE.png, 2019-08-09-14-00-01.png, 
> 2019-08-09-14-00-02.png, 2019-08-09-14-00-02.png, 2019-08-09-14-00-03.png, 
> 2019-08-09-14-00-03.png, 2019-08-09-17-30-IDE-log.txt, 
> 2019-08-09-17-30-java.lang.StackOverflowError.txt, 
> 2019-08-09-netbeans-11.1-about.png, 2019-08-09-netbeans-8.2-about.png, 
> 2019-08-12-21-00-01.png, 2019-08-12-21-00-02.png, 
> 2019-08-13-09-00-Eception-IDE-log.txt, 
> 2019-08-13-09-00-java.lang.NullPointerException.txt, 
> 2019-08-13-12-00-NB-about.png, 2019-08-14-09-00-UI-NB10.png, 
> 2019-08-14-12-00-Refreshing-indices-03.png, 
> image-2019-08-12-10-34-22-305.png, netbeans-11.1.conf, netbeans-8.2.conf, 
> selfsampler15073537369378979592.npss, selfsampler15232135153799309662.npss, 
> selfsampler15675620776487318185.npss, selfsampler16506135220476039727.npss, 
> selfsampler17323576831159964034.npss, selfsampler1962235903870517275.npss, 
> selfsampler231953002133054481.npss, selfsampler4257377310219144311.npss, 
> selfsampler4496583350478949316.npss, selfsampler5156665032004940801.npss, 
> selfsampler5156665032004940801.npss, selfsampler6110902925879607737.npss, 
> selfsampler6409512410806567513.npss, selfsampler7754563681117566493.npss, 
> selfsampler9035236510445031912.npss
>
>  Time Spent: 2h 50m
>  Remaining Estimate: 0h
>
> Very often Netbeans would start consuming high CPU resources for the job of 
> Checking for external changes, which sits in suspended status. If you click 
> on the cross and manually cancel that job, the CPU will keep being consumed.
> The only way to stop this is to completely close Netbeans. Upon closing, it 
> will say that it is still checking for external changes.



--
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-2291) NetBeans is unusably slow

2019-12-28 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi resolved NETBEANS-2291.
---
Fix Version/s: 11.2
   Resolution: Fixed

I mark this one resolved, as the situation seems to be improved and issue seems 
to be stalled. For once in a blue moon I see some unexplainable raise of file 
events, but it is really hard to reproduce. I'm running my NetBeans in debug 
options, so I could catch something when it happens, but was not succesful so 
far. So whenever it would show up that would be a separate issue.

As of reload needed when switching branches, it is most probably due to a 
caching issue in ProjectManager.

> NetBeans is unusably slow
> -
>
> Key: NETBEANS-2291
> URL: https://issues.apache.org/jira/browse/NETBEANS-2291
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 8.2, 10.0, 11.0
> Environment: Ubuntu 18.10
> Linux 4.18.0
> 12 core Xeon E-2176M with 64Gb RAM
> -Xmx2536m (2.5Gb for NB, of which it uses about 1.7G)
> NetBeans 10vc2, 10vc5, 8.2
> JDK 11.0.1
> JDK 1.8
> G1GC, CMS GC, Serial GC
>Reporter: Shevek
>Assignee: Laszlo Kishalmi
>Priority: Critical
>  Labels: performance, usability
> Fix For: 11.2
>
> Attachments: git-branch-switch.npss, 
> image-2019-06-12-15-33-06-715.png, image-2019-06-13-17-35-18-309.png, 
> nb-11-slow-hotspots.png, netbeans-10vc5-jdk8-hang-gototype.txt.tdump, 
> netbeans-10vc5-jdk8-hang-progressutils.txt.tdump, 
> netbeans-10vc5-jdk8-hang.txt.tdump, netbeans-slow-00.npss, 
> netbeans-slow-01.npss, netbeans-startup-slow.npss, 
> open-file-slow-01.txt.tdump, open-file-slow-02.txt.tdump, 
> open-file-slow-03.txt.tdump, org-netbeans-modules-masterfs-linux.xml, 
> restart-netbeans-and-open-file-01.npss, slow-stack-00.txt
>
>
> I used to use NetBeans 8 on JDK8, it was tolerable, but slow.
> Now I have a new laptop, I've tried nb8, nb10 on jdk8, jdk11, with g1gc, 
> cmsgc, other gc. They are all UNUSABLY slow. By which I mean, it takes over a 
> minute just to open a file.
> Mostly this is because things are waiting for things waiting for very 
> inefficiently implemnted file I/O, editor parsing, or things like that. I've 
> watched a 12-core Xeon chip spend over 4 hours just attempting to handle the 
> Active Reference Queue Daemon thread.
> The slowdown is somewhat incremental - I can escape it as long as I'm happy 
> to restart NetBeans every hour or so (which I'm not happy to do).
> Attached a stack dump to get you started, this took over a minute to open a 
> 284-line Java file from idle.
> Please feel free to ask all the obvious questions, although I'm fairly sure 
> all the obvious things have been done. Mostly, I've got GC down to a 
> negligible amount.
> If there's one or more features of NetBeans I can disable to get acceptable 
> behaviour while still being able to realistically edit Java code, please tell 
> me and I will disable them because I am at the end of my rope after using 
> (and developing for) NetBeans for nearly 10 years. If I can get IntelliJ to 
> load a Java/Gradle project neatly before this gets fixed, I'm gone.



--
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-3041) NetBeans gradle invoker not honouring org.gradle.jvmargs

2019-12-28 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi commented on NETBEANS-3041:
---

[~arren] first of all, your bug reports are appreciated. At least it seems 
somebody is using NetBeans with Gradle.

 

> NetBeans gradle invoker not honouring org.gradle.jvmargs
> 
>
> Key: NETBEANS-3041
> URL: https://issues.apache.org/jira/browse/NETBEANS-3041
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Shevek
>Assignee: Laszlo Kishalmi
>Priority: Major
>  Labels: pull-request-available, pull-requests-available
> Fix For: 11.2
>
>  Time Spent: 2h 50m
>  Remaining Estimate: 0h
>
> cat .gradle/gradle.properties
> org.gradle.jvmargs=-Xmx8192m -XX:+PreserveFramePointer
> This property is not honoured by NetBeans when it starts a Gradle daemon, so 
> I end up with a Gradle daemon using the "default" amount of RAM, which on 
> some machines is too little, and on some is too much (it's 25% of system RAM).
> I'm guessing this is because it's loaded by the wrapper, not the daemon, 
> because other properties like org.gradle.daemon.idletimeout=36 are 
> honoured by NB's gradle daemon.
> The other effect of not loading that property is that I get multiple gradle 
> dameons running, each consuming 16Gb of RAM, because they're "incompatible", 
> so fixing this will save me about 16Gb of RAM per system.
> I'm a bit shaky on this bug report, but ... I think this is what's going on.
> (footnote: oh dear, Shevek broke something again, what on earth is that idiot 
> doing with NetBeans and why can't Shevek just behave like a "normal" 
> developer :D :D)



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