[netbeans] branch master updated: Improving reparsing for errors - not sending updates when the code has already changed.

2021-06-06 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 02c6c65  Improving reparsing for errors - not sending updates when the 
code has already changed.
02c6c65 is described below

commit 02c6c65cb118f083d85ac3d91627303db1fd
Author: Jan Lahoda 
AuthorDate: Mon Jun 7 06:10:03 2021 +0200

Improving reparsing for errors - not sending updates when the code has 
already changed.
---
 .../server/protocol/TextDocumentServiceImpl.java   | 156 +++--
 .../java/lsp/server/protocol/ServerTest.java   |  54 ++-
 2 files changed, 167 insertions(+), 43 deletions(-)

diff --git 
a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/TextDocumentServiceImpl.java
 
b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/TextDocumentServiceImpl.java
index 6c62e25..d425b46 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
@@ -46,14 +46,17 @@ import java.util.EnumMap;
 import java.util.EnumSet;
 import java.util.HashMap;
 import java.util.HashSet;
+import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Set;
 import java.util.concurrent.CompletableFuture;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
 import java.util.function.BiConsumer;
+import java.util.function.Consumer;
 import java.util.function.IntFunction;
 import java.util.logging.Level;
 import java.util.logging.Logger;
@@ -66,6 +69,8 @@ import javax.lang.model.element.TypeElement;
 import javax.lang.model.type.DeclaredType;
 import javax.lang.model.type.TypeKind;
 import javax.lang.model.type.TypeMirror;
+import javax.swing.event.DocumentEvent;
+import javax.swing.event.DocumentListener;
 import javax.swing.text.BadLocationException;
 import javax.swing.text.Document;
 import javax.swing.text.StyledDocument;
@@ -131,6 +136,9 @@ import org.eclipse.lsp4j.services.LanguageClient;
 import org.eclipse.lsp4j.services.LanguageClientAware;
 import org.eclipse.lsp4j.services.TextDocumentService;
 import org.netbeans.api.annotations.common.CheckForNull;
+import org.netbeans.api.editor.EditorUtilities;
+import org.netbeans.api.editor.document.LineDocument;
+import org.netbeans.api.editor.document.LineDocumentUtils;
 import org.netbeans.api.java.lexer.JavaTokenId;
 import org.netbeans.api.java.project.JavaProjectConstants;
 import org.netbeans.api.java.source.CompilationController;
@@ -153,6 +161,7 @@ import org.netbeans.api.project.Project;
 import org.netbeans.api.project.ProjectUtils;
 import org.netbeans.api.project.SourceGroup;
 import org.netbeans.api.project.Sources;
+import org.netbeans.editor.DocumentUtilities;
 import org.netbeans.modules.editor.java.GoToSupport;
 import org.netbeans.modules.editor.java.GoToSupport.GoToTarget;
 import 
org.netbeans.modules.gsf.testrunner.ui.api.TestMethodController.TestMethod;
@@ -247,7 +256,7 @@ public class TextDocumentServiceImpl implements 
TextDocumentService, LanguageCli
 Set documents = new HashSet<>(openedDocuments.keySet());
 
 for (String doc : documents) {
-runDiagnoticTasks(doc);
+runDiagnosticTasks(doc);
 }
 }
 
@@ -1356,7 +1365,7 @@ public class TextDocumentServiceImpl implements 
TextDocumentService, LanguageCli
 
 // attempt to open the directly owning project, delay diagnostics 
after project open:
 server.asyncOpenFileOwner(file).thenRun(() ->
-runDiagnoticTasks(params.getTextDocument().getUri())
+runDiagnosticTasks(params.getTextDocument().getUri())
 );
 } catch (IOException ex) {
 throw new IllegalStateException(ex);
@@ -1384,7 +1393,7 @@ public class TextDocumentServiceImpl implements 
TextDocumentService, LanguageCli
 }
 });
 }
-runDiagnoticTasks(params.getTextDocument().getUri());
+runDiagnosticTasks(params.getTextDocument().getUri());
 reportNotificationDone("didChange", params);
 }
 
@@ -1511,41 +1520,101 @@ public class TextDocumentServiceImpl implements 
TextDocumentService, LanguageCli
 return CompletableFuture.completedFuture(location);
 }
 
-private void runDiagnoticTasks(String uri) {
+private void runDiagnosticTasks(String uri) {
 if (server.openedProjects().getNow(null) == null) {
 return;
 }
-//XXX: cancelling/deferring the tasks!
 diagnosticTasks.computeIfAbsent(uri, u -> {
 return BACKGROUND_TASKS.create(() -> {
-  

[jira] [Updated] (NETBEANS-5292) nb-javac is source of several issues

2021-06-06 Thread Ricardo Pacheco (Jira)


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

Ricardo Pacheco updated NETBEANS-5292:
--
Affects Version/s: 12.4

> nb-javac is source of several issues
> 
>
> Key: NETBEANS-5292
> URL: https://issues.apache.org/jira/browse/NETBEANS-5292
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Compiler, java - Editor, java - Hints, platform - 
> Action Items
>Affects Versions: 11.3, 12.2, 12.4
> Environment: Gradle 6.8.1
> Possibly any JDK version 11
> nb-javac installed
>Reporter: Netbeans User 2019
>Priority: Blocker
>  Labels: hints, nbjavac, nbjavac-impl.jar
>
> There are several issue reporting NullPointerException and in logs even 
> several related to hints (In context of Tools > Options > Editor > Hints).
> So my suggestions are:
> 1) to be deactivated all hints and retested with and with and without 
> nb-javac as seems that many issue like this is connected nb-javac, but It 
> could be even possible that hints are not revised at all from start and even 
> it is possible that could be ticked to run by import from prior version of 
> Netbeans, but it could be unsupported in new version.
> 2) turn off of nb-javac does not fix issues like these, because it seems that 
> that states is ignored and nb-javac is still somehow in use ... so only 
> option is to uninstalled completely (so to see in notification request for 
> installation) - so it has to be fixed that if it is inactivated should not be 
> used
> 3) to be added even new feature to reset all Hints to default
> 4) seems that even some of such failure (even reported as race condition) 
> that leads to cases that it is not finished indexing so particular classes 
> are not index so even not visible by dialog to of types and in java editor is 
> represented as errors and there is not way to removed that reds, because 
> there are no way to tell to Apache Netbeans that such class is existing and 
> it is correct.
> 5) "Background scanning of projects..." is even running for minutes with 
> nb-javac installed
> Even if it is not done in minor version I would like to see it in major 
> version fixed.
> To me it seems that nb-javac brings more issue than save



--
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-5594) NBP12.3 application on JDK16/mac OS: Cannot load even default layout

2021-06-06 Thread Ricardo Pacheco (Jira)


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

Ricardo Pacheco updated NETBEANS-5594:
--
Attachment: (was: netbeans_error_02.PNG)

> NBP12.3 application on JDK16/mac OS: Cannot load even default layout
> 
>
> Key: NETBEANS-5594
> URL: https://issues.apache.org/jira/browse/NETBEANS-5594
> Project: NetBeans
>  Issue Type: Bug
>  Components: apisupport - Harness
>Affects Versions: 12.3
>Reporter: Sebastian Jaenicke
>Priority: Critical
> Attachments: jdk8-messages.log, messages.log2, messages3.log, 
> netbeans_error.txt, netbeans_error_01.PNG, netbeans_error_02.PNG, 
> netbeans_error_03.PNG
>
>
> NBP application using 12.3, JDK 16, runs fine on Linux.
> On mac OS (Big Sur), I first got lots of relection-related exceptions from 
> NbInstaller, e.g.:
> java.lang.reflect.InaccessibleObjectException: Unable to make protected 
> java.util.Enumeration java.lang.ClassLoader.findResources(java.lang.String) 
> throws java.io.IOException accessible: module java.base does not "opens 
> java.lang" to unnamed module @4ccc0db7
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
>  at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
>  at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
> [catch] at org.netbeans.Module.findResources(Module.java:567)
>  at org.netbeans.core.startup.NbInstaller.loadLayers(NbInstaller.java:605)
>  at org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:332)
>  at org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:77)
>  at org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:322)
>  at org.openide.filesystems.FileUtil$2.run(FileUtil.java:413)
>  
> so I added '-J--illegal-access=permit' to default_options in etc/mgx_gui.conf.
> Now, after completely removing the user_dir, I get
>  * a popup warning: 'Cannot load even default layout, using internally 
> predefined configuration.'
>  * a NullPointerException related to FileObject.isValid()
> UI window itself is opened, but remains empty. I'm attaching the full 
> messages.log file,
> any ideas would be greatly appreciated.
>  



--
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-5594) NBP12.3 application on JDK16/mac OS: Cannot load even default layout

2021-06-06 Thread Ricardo Pacheco (Jira)


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

Ricardo Pacheco updated NETBEANS-5594:
--
Attachment: (was: netbeans_error.txt)

> NBP12.3 application on JDK16/mac OS: Cannot load even default layout
> 
>
> Key: NETBEANS-5594
> URL: https://issues.apache.org/jira/browse/NETBEANS-5594
> Project: NetBeans
>  Issue Type: Bug
>  Components: apisupport - Harness
>Affects Versions: 12.3
>Reporter: Sebastian Jaenicke
>Priority: Critical
> Attachments: jdk8-messages.log, messages.log2, messages3.log, 
> netbeans_error.txt, netbeans_error_01.PNG, netbeans_error_02.PNG, 
> netbeans_error_03.PNG
>
>
> NBP application using 12.3, JDK 16, runs fine on Linux.
> On mac OS (Big Sur), I first got lots of relection-related exceptions from 
> NbInstaller, e.g.:
> java.lang.reflect.InaccessibleObjectException: Unable to make protected 
> java.util.Enumeration java.lang.ClassLoader.findResources(java.lang.String) 
> throws java.io.IOException accessible: module java.base does not "opens 
> java.lang" to unnamed module @4ccc0db7
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
>  at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
>  at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
> [catch] at org.netbeans.Module.findResources(Module.java:567)
>  at org.netbeans.core.startup.NbInstaller.loadLayers(NbInstaller.java:605)
>  at org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:332)
>  at org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:77)
>  at org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:322)
>  at org.openide.filesystems.FileUtil$2.run(FileUtil.java:413)
>  
> so I added '-J--illegal-access=permit' to default_options in etc/mgx_gui.conf.
> Now, after completely removing the user_dir, I get
>  * a popup warning: 'Cannot load even default layout, using internally 
> predefined configuration.'
>  * a NullPointerException related to FileObject.isValid()
> UI window itself is opened, but remains empty. I'm attaching the full 
> messages.log file,
> any ideas would be greatly appreciated.
>  



--
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-5594) NBP12.3 application on JDK16/mac OS: Cannot load even default layout

2021-06-06 Thread Ricardo Pacheco (Jira)


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

Ricardo Pacheco updated NETBEANS-5594:
--
Attachment: (was: netbeans_error_01.PNG)

> NBP12.3 application on JDK16/mac OS: Cannot load even default layout
> 
>
> Key: NETBEANS-5594
> URL: https://issues.apache.org/jira/browse/NETBEANS-5594
> Project: NetBeans
>  Issue Type: Bug
>  Components: apisupport - Harness
>Affects Versions: 12.3
>Reporter: Sebastian Jaenicke
>Priority: Critical
> Attachments: jdk8-messages.log, messages.log2, messages3.log, 
> netbeans_error.txt, netbeans_error_01.PNG, netbeans_error_02.PNG, 
> netbeans_error_03.PNG
>
>
> NBP application using 12.3, JDK 16, runs fine on Linux.
> On mac OS (Big Sur), I first got lots of relection-related exceptions from 
> NbInstaller, e.g.:
> java.lang.reflect.InaccessibleObjectException: Unable to make protected 
> java.util.Enumeration java.lang.ClassLoader.findResources(java.lang.String) 
> throws java.io.IOException accessible: module java.base does not "opens 
> java.lang" to unnamed module @4ccc0db7
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
>  at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
>  at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
> [catch] at org.netbeans.Module.findResources(Module.java:567)
>  at org.netbeans.core.startup.NbInstaller.loadLayers(NbInstaller.java:605)
>  at org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:332)
>  at org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:77)
>  at org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:322)
>  at org.openide.filesystems.FileUtil$2.run(FileUtil.java:413)
>  
> so I added '-J--illegal-access=permit' to default_options in etc/mgx_gui.conf.
> Now, after completely removing the user_dir, I get
>  * a popup warning: 'Cannot load even default layout, using internally 
> predefined configuration.'
>  * a NullPointerException related to FileObject.isValid()
> UI window itself is opened, but remains empty. I'm attaching the full 
> messages.log file,
> any ideas would be greatly appreciated.
>  



--
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-5594) NBP12.3 application on JDK16/mac OS: Cannot load even default layout

2021-06-06 Thread Ricardo Pacheco (Jira)


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

Ricardo Pacheco commented on NETBEANS-5594:
---

I'm having the same issues with the final 12.4 version on windows 10 running 
openjdk 16.0.1 and using RELEASE 123 (any release is the same).

Actually the default app test fauls. If I disable the thes and run/debug, the 
app is ot able to run properly   

 !netbeans_error_01.PNG! 

 !netbeans_error_02.PNG! 

 !netbeans_error_03.PNG! 

 [^netbeans_error.txt] 

> NBP12.3 application on JDK16/mac OS: Cannot load even default layout
> 
>
> Key: NETBEANS-5594
> URL: https://issues.apache.org/jira/browse/NETBEANS-5594
> Project: NetBeans
>  Issue Type: Bug
>  Components: apisupport - Harness
>Affects Versions: 12.3
>Reporter: Sebastian Jaenicke
>Priority: Critical
> Attachments: jdk8-messages.log, messages.log2, messages3.log, 
> netbeans_error.txt, netbeans_error.txt, netbeans_error_01.PNG, 
> netbeans_error_01.PNG, netbeans_error_02.PNG, netbeans_error_02.PNG, 
> netbeans_error_03.PNG
>
>
> NBP application using 12.3, JDK 16, runs fine on Linux.
> On mac OS (Big Sur), I first got lots of relection-related exceptions from 
> NbInstaller, e.g.:
> java.lang.reflect.InaccessibleObjectException: Unable to make protected 
> java.util.Enumeration java.lang.ClassLoader.findResources(java.lang.String) 
> throws java.io.IOException accessible: module java.base does not "opens 
> java.lang" to unnamed module @4ccc0db7
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
>  at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
>  at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
> [catch] at org.netbeans.Module.findResources(Module.java:567)
>  at org.netbeans.core.startup.NbInstaller.loadLayers(NbInstaller.java:605)
>  at org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:332)
>  at org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:77)
>  at org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:322)
>  at org.openide.filesystems.FileUtil$2.run(FileUtil.java:413)
>  
> so I added '-J--illegal-access=permit' to default_options in etc/mgx_gui.conf.
> Now, after completely removing the user_dir, I get
>  * a popup warning: 'Cannot load even default layout, using internally 
> predefined configuration.'
>  * a NullPointerException related to FileObject.isValid()
> UI window itself is opened, but remains empty. I'm attaching the full 
> messages.log file,
> any ideas would be greatly appreciated.
>  



--
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-5594) NBP12.3 application on JDK16/mac OS: Cannot load even default layout

2021-06-06 Thread Ricardo Pacheco (Jira)


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

Ricardo Pacheco updated NETBEANS-5594:
--
Attachment: netbeans_error_03.PNG

> NBP12.3 application on JDK16/mac OS: Cannot load even default layout
> 
>
> Key: NETBEANS-5594
> URL: https://issues.apache.org/jira/browse/NETBEANS-5594
> Project: NetBeans
>  Issue Type: Bug
>  Components: apisupport - Harness
>Affects Versions: 12.3
>Reporter: Sebastian Jaenicke
>Priority: Critical
> Attachments: jdk8-messages.log, messages.log2, messages3.log, 
> netbeans_error.txt, netbeans_error.txt, netbeans_error_01.PNG, 
> netbeans_error_01.PNG, netbeans_error_02.PNG, netbeans_error_02.PNG, 
> netbeans_error_03.PNG
>
>
> NBP application using 12.3, JDK 16, runs fine on Linux.
> On mac OS (Big Sur), I first got lots of relection-related exceptions from 
> NbInstaller, e.g.:
> java.lang.reflect.InaccessibleObjectException: Unable to make protected 
> java.util.Enumeration java.lang.ClassLoader.findResources(java.lang.String) 
> throws java.io.IOException accessible: module java.base does not "opens 
> java.lang" to unnamed module @4ccc0db7
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
>  at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
>  at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
> [catch] at org.netbeans.Module.findResources(Module.java:567)
>  at org.netbeans.core.startup.NbInstaller.loadLayers(NbInstaller.java:605)
>  at org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:332)
>  at org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:77)
>  at org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:322)
>  at org.openide.filesystems.FileUtil$2.run(FileUtil.java:413)
>  
> so I added '-J--illegal-access=permit' to default_options in etc/mgx_gui.conf.
> Now, after completely removing the user_dir, I get
>  * a popup warning: 'Cannot load even default layout, using internally 
> predefined configuration.'
>  * a NullPointerException related to FileObject.isValid()
> UI window itself is opened, but remains empty. I'm attaching the full 
> messages.log file,
> any ideas would be greatly appreciated.
>  



--
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-5594) NBP12.3 application on JDK16/mac OS: Cannot load even default layout

2021-06-06 Thread Ricardo Pacheco (Jira)


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

Ricardo Pacheco updated NETBEANS-5594:
--
Attachment: netbeans_error.txt

> NBP12.3 application on JDK16/mac OS: Cannot load even default layout
> 
>
> Key: NETBEANS-5594
> URL: https://issues.apache.org/jira/browse/NETBEANS-5594
> Project: NetBeans
>  Issue Type: Bug
>  Components: apisupport - Harness
>Affects Versions: 12.3
>Reporter: Sebastian Jaenicke
>Priority: Critical
> Attachments: jdk8-messages.log, messages.log2, messages3.log, 
> netbeans_error.txt, netbeans_error.txt, netbeans_error_01.PNG, 
> netbeans_error_01.PNG, netbeans_error_02.PNG, netbeans_error_02.PNG, 
> netbeans_error_03.PNG
>
>
> NBP application using 12.3, JDK 16, runs fine on Linux.
> On mac OS (Big Sur), I first got lots of relection-related exceptions from 
> NbInstaller, e.g.:
> java.lang.reflect.InaccessibleObjectException: Unable to make protected 
> java.util.Enumeration java.lang.ClassLoader.findResources(java.lang.String) 
> throws java.io.IOException accessible: module java.base does not "opens 
> java.lang" to unnamed module @4ccc0db7
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
>  at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
>  at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
> [catch] at org.netbeans.Module.findResources(Module.java:567)
>  at org.netbeans.core.startup.NbInstaller.loadLayers(NbInstaller.java:605)
>  at org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:332)
>  at org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:77)
>  at org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:322)
>  at org.openide.filesystems.FileUtil$2.run(FileUtil.java:413)
>  
> so I added '-J--illegal-access=permit' to default_options in etc/mgx_gui.conf.
> Now, after completely removing the user_dir, I get
>  * a popup warning: 'Cannot load even default layout, using internally 
> predefined configuration.'
>  * a NullPointerException related to FileObject.isValid()
> UI window itself is opened, but remains empty. I'm attaching the full 
> messages.log file,
> any ideas would be greatly appreciated.
>  



--
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-5594) NBP12.3 application on JDK16/mac OS: Cannot load even default layout

2021-06-06 Thread Ricardo Pacheco (Jira)


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

Ricardo Pacheco updated NETBEANS-5594:
--
Attachment: netbeans_error_02.PNG

> NBP12.3 application on JDK16/mac OS: Cannot load even default layout
> 
>
> Key: NETBEANS-5594
> URL: https://issues.apache.org/jira/browse/NETBEANS-5594
> Project: NetBeans
>  Issue Type: Bug
>  Components: apisupport - Harness
>Affects Versions: 12.3
>Reporter: Sebastian Jaenicke
>Priority: Critical
> Attachments: jdk8-messages.log, messages.log2, messages3.log, 
> netbeans_error.txt, netbeans_error.txt, netbeans_error_01.PNG, 
> netbeans_error_01.PNG, netbeans_error_02.PNG, netbeans_error_02.PNG, 
> netbeans_error_03.PNG
>
>
> NBP application using 12.3, JDK 16, runs fine on Linux.
> On mac OS (Big Sur), I first got lots of relection-related exceptions from 
> NbInstaller, e.g.:
> java.lang.reflect.InaccessibleObjectException: Unable to make protected 
> java.util.Enumeration java.lang.ClassLoader.findResources(java.lang.String) 
> throws java.io.IOException accessible: module java.base does not "opens 
> java.lang" to unnamed module @4ccc0db7
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
>  at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
>  at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
> [catch] at org.netbeans.Module.findResources(Module.java:567)
>  at org.netbeans.core.startup.NbInstaller.loadLayers(NbInstaller.java:605)
>  at org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:332)
>  at org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:77)
>  at org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:322)
>  at org.openide.filesystems.FileUtil$2.run(FileUtil.java:413)
>  
> so I added '-J--illegal-access=permit' to default_options in etc/mgx_gui.conf.
> Now, after completely removing the user_dir, I get
>  * a popup warning: 'Cannot load even default layout, using internally 
> predefined configuration.'
>  * a NullPointerException related to FileObject.isValid()
> UI window itself is opened, but remains empty. I'm attaching the full 
> messages.log file,
> any ideas would be greatly appreciated.
>  



--
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-5594) NBP12.3 application on JDK16/mac OS: Cannot load even default layout

2021-06-06 Thread Ricardo Pacheco (Jira)


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

Ricardo Pacheco updated NETBEANS-5594:
--
Attachment: netbeans_error_01.PNG

> NBP12.3 application on JDK16/mac OS: Cannot load even default layout
> 
>
> Key: NETBEANS-5594
> URL: https://issues.apache.org/jira/browse/NETBEANS-5594
> Project: NetBeans
>  Issue Type: Bug
>  Components: apisupport - Harness
>Affects Versions: 12.3
>Reporter: Sebastian Jaenicke
>Priority: Critical
> Attachments: jdk8-messages.log, messages.log2, messages3.log, 
> netbeans_error.txt, netbeans_error_01.PNG, netbeans_error_01.PNG, 
> netbeans_error_02.PNG
>
>
> NBP application using 12.3, JDK 16, runs fine on Linux.
> On mac OS (Big Sur), I first got lots of relection-related exceptions from 
> NbInstaller, e.g.:
> java.lang.reflect.InaccessibleObjectException: Unable to make protected 
> java.util.Enumeration java.lang.ClassLoader.findResources(java.lang.String) 
> throws java.io.IOException accessible: module java.base does not "opens 
> java.lang" to unnamed module @4ccc0db7
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
>  at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
>  at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
> [catch] at org.netbeans.Module.findResources(Module.java:567)
>  at org.netbeans.core.startup.NbInstaller.loadLayers(NbInstaller.java:605)
>  at org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:332)
>  at org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:77)
>  at org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:322)
>  at org.openide.filesystems.FileUtil$2.run(FileUtil.java:413)
>  
> so I added '-J--illegal-access=permit' to default_options in etc/mgx_gui.conf.
> Now, after completely removing the user_dir, I get
>  * a popup warning: 'Cannot load even default layout, using internally 
> predefined configuration.'
>  * a NullPointerException related to FileObject.isValid()
> UI window itself is opened, but remains empty. I'm attaching the full 
> messages.log file,
> any ideas would be greatly appreciated.
>  



--
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-5594) NBP12.3 application on JDK16/mac OS: Cannot load even default layout

2021-06-06 Thread Ricardo Pacheco (Jira)


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

Ricardo Pacheco updated NETBEANS-5594:
--
Attachment: netbeans_error.txt

> NBP12.3 application on JDK16/mac OS: Cannot load even default layout
> 
>
> Key: NETBEANS-5594
> URL: https://issues.apache.org/jira/browse/NETBEANS-5594
> Project: NetBeans
>  Issue Type: Bug
>  Components: apisupport - Harness
>Affects Versions: 12.3
>Reporter: Sebastian Jaenicke
>Priority: Critical
> Attachments: jdk8-messages.log, messages.log2, messages3.log, 
> netbeans_error.txt, netbeans_error_01.PNG, netbeans_error_01.PNG, 
> netbeans_error_02.PNG
>
>
> NBP application using 12.3, JDK 16, runs fine on Linux.
> On mac OS (Big Sur), I first got lots of relection-related exceptions from 
> NbInstaller, e.g.:
> java.lang.reflect.InaccessibleObjectException: Unable to make protected 
> java.util.Enumeration java.lang.ClassLoader.findResources(java.lang.String) 
> throws java.io.IOException accessible: module java.base does not "opens 
> java.lang" to unnamed module @4ccc0db7
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
>  at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
>  at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
> [catch] at org.netbeans.Module.findResources(Module.java:567)
>  at org.netbeans.core.startup.NbInstaller.loadLayers(NbInstaller.java:605)
>  at org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:332)
>  at org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:77)
>  at org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:322)
>  at org.openide.filesystems.FileUtil$2.run(FileUtil.java:413)
>  
> so I added '-J--illegal-access=permit' to default_options in etc/mgx_gui.conf.
> Now, after completely removing the user_dir, I get
>  * a popup warning: 'Cannot load even default layout, using internally 
> predefined configuration.'
>  * a NullPointerException related to FileObject.isValid()
> UI window itself is opened, but remains empty. I'm attaching the full 
> messages.log file,
> any ideas would be greatly appreciated.
>  



--
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-5594) NBP12.3 application on JDK16/mac OS: Cannot load even default layout

2021-06-06 Thread Ricardo Pacheco (Jira)


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

Ricardo Pacheco updated NETBEANS-5594:
--
Attachment: netbeans_error_02.PNG

> NBP12.3 application on JDK16/mac OS: Cannot load even default layout
> 
>
> Key: NETBEANS-5594
> URL: https://issues.apache.org/jira/browse/NETBEANS-5594
> Project: NetBeans
>  Issue Type: Bug
>  Components: apisupport - Harness
>Affects Versions: 12.3
>Reporter: Sebastian Jaenicke
>Priority: Critical
> Attachments: jdk8-messages.log, messages.log2, messages3.log, 
> netbeans_error.txt, netbeans_error_01.PNG, netbeans_error_01.PNG, 
> netbeans_error_02.PNG
>
>
> NBP application using 12.3, JDK 16, runs fine on Linux.
> On mac OS (Big Sur), I first got lots of relection-related exceptions from 
> NbInstaller, e.g.:
> java.lang.reflect.InaccessibleObjectException: Unable to make protected 
> java.util.Enumeration java.lang.ClassLoader.findResources(java.lang.String) 
> throws java.io.IOException accessible: module java.base does not "opens 
> java.lang" to unnamed module @4ccc0db7
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
>  at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
>  at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
> [catch] at org.netbeans.Module.findResources(Module.java:567)
>  at org.netbeans.core.startup.NbInstaller.loadLayers(NbInstaller.java:605)
>  at org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:332)
>  at org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:77)
>  at org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:322)
>  at org.openide.filesystems.FileUtil$2.run(FileUtil.java:413)
>  
> so I added '-J--illegal-access=permit' to default_options in etc/mgx_gui.conf.
> Now, after completely removing the user_dir, I get
>  * a popup warning: 'Cannot load even default layout, using internally 
> predefined configuration.'
>  * a NullPointerException related to FileObject.isValid()
> UI window itself is opened, but remains empty. I'm attaching the full 
> messages.log file,
> any ideas would be greatly appreciated.
>  



--
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-5594) NBP12.3 application on JDK16/mac OS: Cannot load even default layout

2021-06-06 Thread Ricardo Pacheco (Jira)


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

Ricardo Pacheco updated NETBEANS-5594:
--
Attachment: netbeans_error_01.PNG

> NBP12.3 application on JDK16/mac OS: Cannot load even default layout
> 
>
> Key: NETBEANS-5594
> URL: https://issues.apache.org/jira/browse/NETBEANS-5594
> Project: NetBeans
>  Issue Type: Bug
>  Components: apisupport - Harness
>Affects Versions: 12.3
>Reporter: Sebastian Jaenicke
>Priority: Critical
> Attachments: jdk8-messages.log, messages.log2, messages3.log, 
> netbeans_error.txt, netbeans_error_01.PNG, netbeans_error_01.PNG, 
> netbeans_error_02.PNG
>
>
> NBP application using 12.3, JDK 16, runs fine on Linux.
> On mac OS (Big Sur), I first got lots of relection-related exceptions from 
> NbInstaller, e.g.:
> java.lang.reflect.InaccessibleObjectException: Unable to make protected 
> java.util.Enumeration java.lang.ClassLoader.findResources(java.lang.String) 
> throws java.io.IOException accessible: module java.base does not "opens 
> java.lang" to unnamed module @4ccc0db7
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
>  at 
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
>  at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
>  at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
> [catch] at org.netbeans.Module.findResources(Module.java:567)
>  at org.netbeans.core.startup.NbInstaller.loadLayers(NbInstaller.java:605)
>  at org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:332)
>  at org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:77)
>  at org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:322)
>  at org.openide.filesystems.FileUtil$2.run(FileUtil.java:413)
>  
> so I added '-J--illegal-access=permit' to default_options in etc/mgx_gui.conf.
> Now, after completely removing the user_dir, I get
>  * a popup warning: 'Cannot load even default layout, using internally 
> predefined configuration.'
>  * a NullPointerException related to FileObject.isValid()
> UI window itself is opened, but remains empty. I'm attaching the full 
> messages.log file,
> any ideas would be greatly appreciated.
>  



--
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-5757) Compile-on-Save drops static initializer (vanilla javac)

2021-06-06 Thread Eirik Bakke (Jira)


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

Eirik Bakke updated NETBEANS-5757:
--
Description: 
Very great to see Compile-on-Save now working without the external nb-javac 
plugin! Here's the first bug I've found around this. To reproduce, create an 
empty maven-based Java project and add the following class:

{code:java}
public class StaticInitializerExample {
  private static final String SOME_CONSTANT;
  static {
SOME_CONSTANT = "I am a constant.";
  }

  public static final void main(String args[]) {
System.out.println(SOME_CONSTANT);
  }
}
{code}

Do a clean build and run. The application will print, "I am a constant."

Now do any trivial change to the code, such as adding a comment, and save. Run 
again. The application will now print "null", rather than the correct output.

Tested on both Java 11.0.11 and Java 17-ea+25. I also tested with NetBeans 11.3 
with nb-javac installed; in that case the output is correct (still "I am a 
constant."). In the latter case you can also change the constant in the static 
initializer, and CoS will apply the change correctly.



  was:
Very great to see Compile-on-Save now working without the external nb-javac 
plugin! Here's the first bug I've found around this. To reproduce, create an 
empty maven-based Java project and add the following class:

{code:java}
public class StaticInitializerExample {
  private static final String SOME_CONSTANT;
  static {
SOME_CONSTANT = "I am a constant.";
  }

  public static final void main(String args[]) {
System.out.println(SOME_CONSTANT);
  }
}
{code}

Do a clean build and run. The application will print, "I am a constant."

Tested on both Java 11.0.11 and Java 17-ea+25.

Now do any trivial change to the code, such as adding a comment, and save. Run 
again. The application will now print "null", rather than the correct output. I 
tested this with an older NetBeans version with nb-javac as well, and in that 
case the output is correct (still "I am a constant.").


> Compile-on-Save drops static initializer (vanilla javac)
> 
>
> Key: NETBEANS-5757
> URL: https://issues.apache.org/jira/browse/NETBEANS-5757
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Compiler
>Affects Versions: 12.4
> Environment: NetBeans 12.4 _without_ nb-javac installed (started from 
> clean user and cache directories to ensure no trace of nb-javac was left from 
> my old installation). Java 11.0.11 or Java 17-ea+25. Windows 10.
>Reporter: Eirik Bakke
>Priority: Major
>
> Very great to see Compile-on-Save now working without the external nb-javac 
> plugin! Here's the first bug I've found around this. To reproduce, create an 
> empty maven-based Java project and add the following class:
> {code:java}
> public class StaticInitializerExample {
>   private static final String SOME_CONSTANT;
>   static {
> SOME_CONSTANT = "I am a constant.";
>   }
>   public static final void main(String args[]) {
> System.out.println(SOME_CONSTANT);
>   }
> }
> {code}
> Do a clean build and run. The application will print, "I am a constant."
> Now do any trivial change to the code, such as adding a comment, and save. 
> Run again. The application will now print "null", rather than the correct 
> output.
> Tested on both Java 11.0.11 and Java 17-ea+25. I also tested with NetBeans 
> 11.3 with nb-javac installed; in that case the output is correct (still "I am 
> a constant."). In the latter case you can also change the constant in the 
> static initializer, and CoS will apply the change correctly.



--
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-5757) Compile-on-Save drops static initializer (vanilla javac)

2021-06-06 Thread Eirik Bakke (Jira)
Eirik Bakke created NETBEANS-5757:
-

 Summary: Compile-on-Save drops static initializer (vanilla javac)
 Key: NETBEANS-5757
 URL: https://issues.apache.org/jira/browse/NETBEANS-5757
 Project: NetBeans
  Issue Type: Bug
  Components: java - Compiler
Affects Versions: 12.4
 Environment: NetBeans 12.4 _without_ nb-javac installed (started from 
clean user and cache directories to ensure no trace of nb-javac was left from 
my old installation). Java 11.0.11 or Java 17-ea+25. Windows 10.
Reporter: Eirik Bakke


Very great to see Compile-on-Save now working without the external nb-javac 
plugin! Here's the first bug I've found around this. To reproduce, create an 
empty maven-based Java project and add the following class:

{code:java}
public class StaticInitializerExample {
  private static final String SOME_CONSTANT;
  static {
SOME_CONSTANT = "I am a constant.";
  }

  public static final void main(String args[]) {
System.out.println(SOME_CONSTANT);
  }
}
{code}

Do a clean build and run. The application will print, "I am a constant."

Tested on both Java 11.0.11 and Java 17-ea+25.

Now do any trivial change to the code, such as adding a comment, and save. Run 
again. The application will now print "null", rather than the correct output. I 
tested this with an older NetBeans version with nb-javac as well, and in that 
case the output is correct (still "I am a constant.").



--
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] [Comment Edited] (NETBEANS-1842) ambiguous method when using Lombok

2021-06-06 Thread Alexandre (Jira)


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

Alexandre  edited comment on NETBEANS-1842 at 6/6/21, 5:55 PM:
---

Hello everyone,

This issue has been plaguing the long time

I'm using Linux, NetBeans 12, Java 8, lombok 1.18.20
 * Workaround 1:
 Clear cache by removing folder "12.0" in path "/home/user/.cache/netbeans"; I 
note that sometimes it solves the problem for one of the projects, sometimes it 
solves for 2 or 3 projects, other times it solves for all (Note I use up to 5 
open projects in netbeans);
 * Workaround 2: 
 Was going to the classes and removing the @Getter in the problem property and 
saving the file and then adding the @Getter again and saving the file, so I 
notice that the problem disappears for that class.  But I still haven't found 
an alternative to remove all the ambiguity issues.

Hope a solution could be found.


was (Author: xandefog):
Hello everyone,Hello everyone,

This issue has been plaguing the long time

I'm using Linux, NetBeans 12, Java 8, lombok 1.18.20
 * Workaround 1: 
Clear cache by removing folder "12.0" in path "/home/user/.cache/netbeans"; I 
note that sometimes it solves the problem for one of the projects, sometimes it 
solves for 2 or 3 projects, other times it solves for all (Note I use up to 5 
open projects in netbeans);
 * Workaround 2:  
Was going to the classes and removing the @Getter in the problem property and 
saving the file and then adding the @Getter again and saving the file, so I 
notice that the problem disappears for that class.  But I still haven't found 
an alternative to remove all the ambiguity issues.
 
Hope a solution could be found.

> ambiguous method when using Lombok
> --
>
> Key: NETBEANS-1842
> URL: https://issues.apache.org/jira/browse/NETBEANS-1842
> Project: NetBeans
>  Issue Type: Bug
> Environment: Win10
>Reporter: Rik Scarborough
>Priority: Major
> Attachments: Screen Shot 2019-07-25 at 4.14.03 PM.png
>
>
> When using lombok (v 1.18.4), generated methods show as errors in editor.  
> "reference to  is ambiguous   both method  in 
>  and method  in  match".
>  
> Both methodnames and classnames are the exactly same.



--
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-1842) ambiguous method when using Lombok

2021-06-06 Thread Alexandre (Jira)


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

Alexandre  commented on NETBEANS-1842:
--

Hello everyone,Hello everyone,

This issue has been plaguing the long time

I'm using Linux, NetBeans 12, Java 8, lombok 1.18.20
 * Workaround 1: 
Clear cache by removing folder "12.0" in path "/home/user/.cache/netbeans"; I 
note that sometimes it solves the problem for one of the projects, sometimes it 
solves for 2 or 3 projects, other times it solves for all (Note I use up to 5 
open projects in netbeans);
 * Workaround 2:  
Was going to the classes and removing the @Getter in the problem property and 
saving the file and then adding the @Getter again and saving the file, so I 
notice that the problem disappears for that class.  But I still haven't found 
an alternative to remove all the ambiguity issues.
 
Hope a solution could be found.

> ambiguous method when using Lombok
> --
>
> Key: NETBEANS-1842
> URL: https://issues.apache.org/jira/browse/NETBEANS-1842
> Project: NetBeans
>  Issue Type: Bug
> Environment: Win10
>Reporter: Rik Scarborough
>Priority: Major
> Attachments: Screen Shot 2019-07-25 at 4.14.03 PM.png
>
>
> When using lombok (v 1.18.4), generated methods show as errors in editor.  
> "reference to  is ambiguous   both method  in 
>  and method  in  match".
>  
> Both methodnames and classnames are the exactly same.



--
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-5756) Wheel Scrolling broken from 8.2

2021-06-06 Thread Nicolas Gouteux (Jira)
Nicolas Gouteux created NETBEANS-5756:
-

 Summary: Wheel Scrolling broken from 8.2
 Key: NETBEANS-5756
 URL: https://issues.apache.org/jira/browse/NETBEANS-5756
 Project: NetBeans
  Issue Type: Bug
  Components: ide - UI
Affects Versions: 12.4
Reporter: Nicolas Gouteux


In 8.2, the UI was using BasicScrollPaneUI
the handler of mouse wheel was returning if viewport was null

*JViewport vp = scrollpane.getViewport();*
*if (vp == null) \{ return; }*

In later versions, you introduced SmoothScrollPaneUI
the handler of mouse wheel was returning if viewport is null
but also if the instance is not Scrollable:

*JViewport viewport = this.scrollpane.getViewport();*
*if (viewport != null && viewport.getView() instanceof Scrollable) {*

As a result, the wheel stop to function on non scrollable components
Whereas it used to work in the past, as if component was not scrollable it went 
to

*else {*
 *// Viewport's view is not a Scrollable, or fast wheel*
 *// scrolling is not enabled.*
 *BasicScrollBarUI.scrollByUnits(toScroll, direction,*
 *units, limitScroll);*
*}*

To avoid this regression, Netbeans code should mimic default swing behavior 
which is to scroll even if viewport's view is not a Scrollable.

 



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