[jira] [Commented] (NETBEANS-4853) Bad Font Rendering on Linux with any JDK

2020-09-28 Thread Siddhesh Rane (Jira)


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

Siddhesh Rane commented on NETBEANS-4853:
-

I am using `-J-Dawt.useSystemAAFontSettings=on` in `netbeans_default_options`. 
Also Liberation Mono font looks good on my system. Certain fonts have ugly 
rendering.

> Bad Font Rendering on Linux with any JDK 
> -
>
> Key: NETBEANS-4853
> URL: https://issues.apache.org/jira/browse/NETBEANS-4853
> Project: NetBeans
>  Issue Type: Bug
>  Components: ide - UI
>Affects Versions: 12.0, 12.1
> Environment: Fedora32
>Reporter: Enzo martin
>Priority: Major
>  Labels: Font, Linux, Rendering
> Attachments: Screenshot from 2020-09-27 13-50-59.png, Screenshot from 
> 2020-09-27 13-52-24.png, Screenshot from 2020-09-27 13-57-10.png
>
>
> Bad font rendering on linux, with any JDK, y tested the zulu JDK and OpenJDK 
> on his versions 8, 11, and 15, without better font rendering. 
> I also tried some of the solutions found in google, without any positive 
> results. 
> For example on  this link:
>  
> https://askubuntu.com/questions/32624/ugly-fonts-in-netbeans-how-can-i-make-it-use-the-system-font
>  
> I am using Fedora32 with GnomeDE, but the problem also occurs in other 
> desktop environments eg. KDE or Matte, with any linux distribution. Other 
> IDEs like Intellij or Eclipse have better font rendering. Attached Sample 
> Images



--
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-591) Cannot debug failed test method from Test results window

2020-09-28 Thread ASF GitHub Bot (Jira)


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

ASF GitHub Bot updated NETBEANS-591:

Labels: pull-request-available  (was: )

> Cannot debug failed test method from Test results window
> 
>
> Key: NETBEANS-591
> URL: https://issues.apache.org/jira/browse/NETBEANS-591
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - JUnit
>Reporter: Manikantan Narender Nath
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Steps to reproduce
> Run a junit test case which fails
> In the test results window select the test method that failed
> Right click and choose debug from the context menu
> Expected result:
> The test method is run
> Actual result : Cannot run the test method
> {code:java}
> ant -f /Users/msivasub/dev/NetCat9/NBProjects/JUnitSampleProjectAnt 
> -Dnb.internal.action.name=debug.single.method 
> -Djavac.includes=teststorun/CalculatorTest.java -Dtest.method=testDivide 
> -Dtest.class=teststorun.CalculatorTest debug-single-method
> Target "debug-single-method" does not exist in the project 
> "JUnitSampleProjectAnt".
> BUILD FAILED (total time: 0 seconds)
> {code}
> Test specification : Junit Test specification 
> ([http://netbeans-vm.apache.org/synergy/client/app/#/specification/390/v/2)]
>  
> Test Suite: Result window actions 
> ([http://netbeans-vm.apache.org/synergy/client/app/#/suite/2235)]
> Test case: Debug ( 
> [http://netbeans-vm.apache.org/synergy/client/app/#/case/5996/suite/2235/v/1] 
> )
>  



--
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-591) Cannot debug failed test method from Test results window

2020-09-28 Thread Siddhesh Rane (Jira)


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

Siddhesh Rane reassigned NETBEANS-591:
--

Assignee: Siddhesh Rane

> Cannot debug failed test method from Test results window
> 
>
> Key: NETBEANS-591
> URL: https://issues.apache.org/jira/browse/NETBEANS-591
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - JUnit
>Reporter: Manikantan Narender Nath
>Assignee: Siddhesh Rane
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Steps to reproduce
> Run a junit test case which fails
> In the test results window select the test method that failed
> Right click and choose debug from the context menu
> Expected result:
> The test method is run
> Actual result : Cannot run the test method
> {code:java}
> ant -f /Users/msivasub/dev/NetCat9/NBProjects/JUnitSampleProjectAnt 
> -Dnb.internal.action.name=debug.single.method 
> -Djavac.includes=teststorun/CalculatorTest.java -Dtest.method=testDivide 
> -Dtest.class=teststorun.CalculatorTest debug-single-method
> Target "debug-single-method" does not exist in the project 
> "JUnitSampleProjectAnt".
> BUILD FAILED (total time: 0 seconds)
> {code}
> Test specification : Junit Test specification 
> ([http://netbeans-vm.apache.org/synergy/client/app/#/specification/390/v/2)]
>  
> Test Suite: Result window actions 
> ([http://netbeans-vm.apache.org/synergy/client/app/#/suite/2235)]
> Test case: Debug ( 
> [http://netbeans-vm.apache.org/synergy/client/app/#/case/5996/suite/2235/v/1] 
> )
>  



--
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-4859) Netbeans reported bug, while steping through code with f7, crashed

2020-09-28 Thread hj (Jira)
hj created NETBEANS-4859:


 Summary: Netbeans reported bug, while steping through code with 
f7, crashed
 Key: NETBEANS-4859
 URL: https://issues.apache.org/jira/browse/NETBEANS-4859
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 12.1
 Environment: windows 10 version 10.0 on amd64
Reporter: hj
 Attachments: messages.log

While troubleshooting some code while going through a beginner java course 
([https://www.homeandlearn.co.uk/java/save_a_new_record.html)] , I was hitting 
f7 to step through the code and netbeans reported a bug and told me to report 
it.  I was troubleshooting why my save record procedure was not working (adds 
new row to database)

 

environment: windows 10

netbeans (downloaded last week: IDE 12.1: updates: NetBeans 8.2 patch 2

 

error reported on my screen details:

java.lang.AssertionError: Analyzer error when processing: private static final 
Runnable dummyRunnable = new Runnable()\{java.lang.AssertionError: Analyzer 
error when processing: private static final Runnable dummyRunnable = new 
Runnable(){        () {        super();    }        public void run() \{    

[netbeans] branch master updated: Prevent NPE from JavaToCHyperlinkProvider when no project available.

2020-09-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 1c1e1dc  Prevent NPE from JavaToCHyperlinkProvider when no project 
available.
1c1e1dc is described below

commit 1c1e1dc8a709072ac3c68ef8092b8168a8a77834
Author: Jan Lahoda 
AuthorDate: Sun Sep 20 22:27:17 2020 +0200

Prevent NPE from JavaToCHyperlinkProvider when no project available.
---
 .../modules/java/openjdk/editor/JavaToCHyperlinkProvider.java   | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/java/java.openjdk.project/src/org/netbeans/modules/java/openjdk/editor/JavaToCHyperlinkProvider.java
 
b/java/java.openjdk.project/src/org/netbeans/modules/java/openjdk/editor/JavaToCHyperlinkProvider.java
index cde601e..b645367 100644
--- 
a/java/java.openjdk.project/src/org/netbeans/modules/java/openjdk/editor/JavaToCHyperlinkProvider.java
+++ 
b/java/java.openjdk.project/src/org/netbeans/modules/java/openjdk/editor/JavaToCHyperlinkProvider.java
@@ -60,6 +60,8 @@ import org.openide.util.Exceptions;
 @MimeRegistration(mimeType="text/x-java", position=0, 
service=HyperlinkProviderExt.class)
 public class JavaToCHyperlinkProvider implements HyperlinkProviderExt {
 
+private static final SourceGroup[] NO_GROUPS = new SourceGroup[0];
+
 @Override
 public Set getSupportedHyperlinkTypes() {
 return EnumSet.of(HyperlinkType.GO_TO_DECLARATION);
@@ -79,8 +81,8 @@ public class JavaToCHyperlinkProvider implements 
HyperlinkProviderExt {
 public void performClickAction(Document doc, final int offset, 
HyperlinkType type) {
 FileObject file = NbEditorUtilities.getFileObject(doc);
 Project prj = file != null ? FileOwnerQuery.getOwner(file) : null;
-SourceGroup[] nativeGroups = 
ProjectUtils.getSources(prj).getSourceGroups(SourcesImpl.SOURCES_TYPE_JDK_PROJECT_NATIVE);
-
+SourceGroup[] nativeGroups = prj != null ? 
ProjectUtils.getSources(prj).getSourceGroups(SourcesImpl.SOURCES_TYPE_JDK_PROJECT_NATIVE)
+ : NO_GROUPS;
 if (nativeGroups.length == 0) {
 findNext().performClickAction(doc, offset, type);
 return ;


-
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: Quicksearch API allows to check for cancel. (#2298)

2020-09-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 e812655  Quicksearch API allows to check for cancel. (#2298)
e812655 is described below

commit e812655fa7ac17cc155c172754661922a51ebf26
Author: Svatopluk Dedic 
AuthorDate: Tue Sep 29 04:35:08 2020 +0200

Quicksearch API allows to check for cancel. (#2298)

* Quicksearch API allows to check for cancel.

* Added test for obsolete, fixed other tests.
---
 platform/spi.quicksearch/apichanges.xml| 87 ++
 .../spi.quicksearch/nbproject/project.properties   |  1 +
 platform/spi.quicksearch/nbproject/project.xml |  1 +
 .../modules/quicksearch/CategoryResult.java|  4 +-
 .../netbeans/spi/quicksearch/SearchProvider.java   |  5 ++
 .../netbeans/spi/quicksearch/SearchResponse.java   | 14 
 .../modules/quicksearch/ObsoleteSupportTest.java   |  2 +-
 .../modules/quicksearch/ProviderModelTest.java |  2 +-
 .../modules/quicksearch/SlowProviderTest.java  | 41 +-
 .../modules/quicksearch/UnitTestUtils.java |  4 +-
 10 files changed, 152 insertions(+), 9 deletions(-)

diff --git a/platform/spi.quicksearch/apichanges.xml 
b/platform/spi.quicksearch/apichanges.xml
new file mode 100644
index 000..083e845
--- /dev/null
+++ b/platform/spi.quicksearch/apichanges.xml
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+
+
+Quicksearch SPI
+
+
+  
+  
+  
+  
+  Allows to check for obsoleted resultset.
+  
+  
+  
+  
+  
+  
+  A SearchProvider
 that 
+  is searching and cannot find a result can check whether the 
result is still valid, using
+  SearchResponse.isObsolete().
+  It was only possible to check for terminated search when a new 
item was added.
+  
+  
+  
+  
+  
+
+
+
+
+
+
+  Change History for the Progress API
+  
+
+
+
+Overview
+
+Introduction
+
+This document lists changes made to the Progress API/SPI.
+
+
+
+  
+
+  @FOOTER@
+
+
+  
+
+
diff --git a/platform/spi.quicksearch/nbproject/project.properties 
b/platform/spi.quicksearch/nbproject/project.properties
index 02b43d0..e86c855 100644
--- a/platform/spi.quicksearch/nbproject/project.properties
+++ b/platform/spi.quicksearch/nbproject/project.properties
@@ -18,5 +18,6 @@ is.autoload=true
 javac.source=1.6
 javac.compilerargs=-Xlint -Xlint:-serial
 javadoc.arch=${basedir}/arch.xml
+javadoc.apichanges=${basedir}/apichanges.xml
 
 test.config.stableBTD.includes=**/*Test.class
diff --git a/platform/spi.quicksearch/nbproject/project.xml 
b/platform/spi.quicksearch/nbproject/project.xml
index 2bfbc72..7ef05d5 100644
--- a/platform/spi.quicksearch/nbproject/project.xml
+++ b/platform/spi.quicksearch/nbproject/project.xml
@@ -117,6 +117,7 @@
 
 
 
org.netbeans.core.startup
+
 
 
 
org.netbeans.libs.junit4
diff --git 
a/platform/spi.quicksearch/src/org/netbeans/modules/quicksearch/CategoryResult.java
 
b/platform/spi.quicksearch/src/org/netbeans/modules/quicksearch/CategoryResult.java
index d5ff7ad..64deac3 100644
--- 
a/platform/spi.quicksearch/src/org/netbeans/modules/quicksearch/CategoryResult.java
+++ 
b/platform/spi.quicksearch/src/org/netbeans/modules/quicksearch/CategoryResult.java
@@ -121,7 +121,9 @@ public final class CategoryResult implements Runnable {
 }
 
 public boolean isObsolete() {
-return obsolete;
+synchronized (LOCK) {
+return obsolete;
+}
 }
 
 /** Sends notification about category change, always runs in EQ thread */
diff --git 
a/platform/spi.quicksearch/src/org/netbeans/spi/quicksearch/SearchProvider.java 
b/platform/spi.quicksearch/src/org/netbeans/spi/quicksearch/SearchProvider.java
index 1a955ce..3cd1d0a 100644
--- 
a/platform/spi.quicksearch/src/org/netbeans/spi/quicksearch/SearchProvider.java
+++ 
b/platform/spi.quicksearch/src/org/netbeans/spi/quicksearch/SearchProvider.java
@@ -65,6 +65,11 @@ public interface SearchProvider {
  *  }
  * 
  * 
+ * It may happen that the Provider searches for some considerable time, or 
searches
+ * a considerable number of items without any results. It may check use 
+ * {@link SearchResponse#isObsolete()} to determine if the search was 
cancelled 
+ * or obsoleted without adding any items.
+ * 
  * Threading: This method can be called outside EQ thread by 
infrastructure.
  * 
  * @param request Search request object that contains information what to
diff --git 

[jira] [Commented] (NETBEANS-4854) Fix wrong classpaths

2020-09-28 Thread Jose (Jira)


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

Jose commented on NETBEANS-4854:


Sorry for the ambiguous ticket [~lkishalmi],  I updated the description

> Fix wrong classpaths
> 
>
> Key: NETBEANS-4854
> URL: https://issues.apache.org/jira/browse/NETBEANS-4854
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Classpath
>Affects Versions: 12.1
>Reporter: Jose
>Assignee: Jose
>Priority: Minor
>  Labels: pull-request-available
> Fix For: 12.2
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> In [PR-2350|https://github.com/apache/netbeans/pull/2350] Matthias Bläsing 
> suggest a fix. This fix was about the wrong use of *${nb_all}* in some cases 
> e.g.
> Wrong use: 
>  
> test-unit-sys-prop.test.junit.jar=${nb_all}/libs.junit4/external/junit-4.12.jar
> Should be:
>  
> test-unit-sys-prop.test.junit.jar=${nb_all}/*platform*/libs.junit4/external/junit-4.12.jar
> This indicate that *${nb_all}* is equal to the source root directory of 
> NetBeans and below this directory are the major projects (e.g. enterprise, 
> ide, java, nbbuild).
> I search the usage of *${nb_all}* and find some exact cases like the one 
> Matthias indicate and some others like:
> ${nb_all}/javahelp/external/jhall-2.0_05.jar
> Should be:
>  ${nb_all}/*platform*/javahelp/external/jhall-2.0_05.jar
> I will execute the unit testing of every module involved in this change and 
> compare them. 



--
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-4854) Fix wrong classpaths

2020-09-28 Thread Jose (Jira)


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

Jose updated NETBEANS-4854:
---
Description: 
In [PR-2350|https://github.com/apache/netbeans/pull/2350] Matthias Bläsing 
suggest a fix. This fix was about the wrong use of *${nb_all}* in some cases 
e.g.

Wrong use: 
 test-unit-sys-prop.test.junit.jar=${nb_all}/libs.junit4/external/junit-4.12.jar

Should be:
 
test-unit-sys-prop.test.junit.jar=${nb_all}/*platform*/libs.junit4/external/junit-4.12.jar

This indicate that *${nb_all}* is equal to the source root directory of 
NetBeans and below this directory are the major projects (e.g. enterprise, ide, 
java, nbbuild).

I search the usage of *${nb_all}* and find some exact cases like the one 
Matthias indicate and some others like:

${nb_all}/javahelp/external/jhall-2.0_05.jar

Should be:
 ${nb_all}/*platform*/javahelp/external/jhall-2.0_05.jar

I will execute the unit testing of every module involved in this change and 
compare them. 

  was:
In [PR-2350|https://github.com/apache/netbeans/pull/2350] Matthias Bläsing 
suggest a fix. This fix was about the wrong use of *${nb_all}* in some cases 
e.g.

Wrong use: 
 test-unit-sys-prop.test.junit.jar=${nb_all}/libs.junit4/external/junit-4.12.jar

Should be:
 
test-unit-sys-prop.test.junit.jar=${nb_all}/*platform*/libs.junit4/external/junit-4.12.jar

This indicate that *${nb_all}* is equal to the source root directory of 
NetBeans and below this directory are the major projects (e.g. enterprise, ide, 
java, nbbuild).

I search the usage of *${nb_all}* and find some exact cases like the one 
Matthias indicate and some others like:

${nb_all}/javahelp/external/jhall-2.0_05.jar

Should be:
 ${nb_all}/*platform*/javahelp/external/jhall-2.0_05.jar

I fix this wrong use cases and did the following testing. I will execute the 
unit testing of every module involved in this change and compare them. 


> Fix wrong classpaths
> 
>
> Key: NETBEANS-4854
> URL: https://issues.apache.org/jira/browse/NETBEANS-4854
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Classpath
>Affects Versions: 12.1
>Reporter: Jose
>Assignee: Jose
>Priority: Minor
>  Labels: pull-request-available
> Fix For: 12.2
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> In [PR-2350|https://github.com/apache/netbeans/pull/2350] Matthias Bläsing 
> suggest a fix. This fix was about the wrong use of *${nb_all}* in some cases 
> e.g.
> Wrong use: 
>  
> test-unit-sys-prop.test.junit.jar=${nb_all}/libs.junit4/external/junit-4.12.jar
> Should be:
>  
> test-unit-sys-prop.test.junit.jar=${nb_all}/*platform*/libs.junit4/external/junit-4.12.jar
> This indicate that *${nb_all}* is equal to the source root directory of 
> NetBeans and below this directory are the major projects (e.g. enterprise, 
> ide, java, nbbuild).
> I search the usage of *${nb_all}* and find some exact cases like the one 
> Matthias indicate and some others like:
> ${nb_all}/javahelp/external/jhall-2.0_05.jar
> Should be:
>  ${nb_all}/*platform*/javahelp/external/jhall-2.0_05.jar
> I will execute the unit testing of every module involved in this change and 
> compare them. 



--
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-4854) Fix wrong classpaths

2020-09-28 Thread Jose (Jira)


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

Jose updated NETBEANS-4854:
---
Description: 
In [PR-2350|https://github.com/apache/netbeans/pull/2350] Matthias Bläsing 
suggest a fix. This fix was about the wrong use of *${nb_all}* in some cases 
e.g.

Wrong use: 
 test-unit-sys-prop.test.junit.jar=${nb_all}/libs.junit4/external/junit-4.12.jar

Should be:
 
test-unit-sys-prop.test.junit.jar=${nb_all}/*platform*/libs.junit4/external/junit-4.12.jar

This indicate that *${nb_all}* is equal to the source root directory of 
NetBeans and below this directory are the major projects (e.g. enterprise, ide, 
java, nbbuild).

I search the usage of *${nb_all}* and find some exact cases like the one 
Matthias indicate and some others like:

${nb_all}/javahelp/external/jhall-2.0_05.jar

Should be:
 ${nb_all}/*platform*/javahelp/external/jhall-2.0_05.jar

I fix this wrong use cases and did the following testing. I will execute the 
unit testing of every module involved in this change and compare them. 

  was:
NetBeans Testing:

- Full build done
- Started NetBeans and ensure the log didn't have any errors or new warnings
- Checked every path changed in this PR was correct


> Fix wrong classpaths
> 
>
> Key: NETBEANS-4854
> URL: https://issues.apache.org/jira/browse/NETBEANS-4854
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Classpath
>Affects Versions: 12.1
>Reporter: Jose
>Assignee: Jose
>Priority: Minor
>  Labels: pull-request-available
> Fix For: 12.2
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> In [PR-2350|https://github.com/apache/netbeans/pull/2350] Matthias Bläsing 
> suggest a fix. This fix was about the wrong use of *${nb_all}* in some cases 
> e.g.
> Wrong use: 
>  
> test-unit-sys-prop.test.junit.jar=${nb_all}/libs.junit4/external/junit-4.12.jar
> Should be:
>  
> test-unit-sys-prop.test.junit.jar=${nb_all}/*platform*/libs.junit4/external/junit-4.12.jar
> This indicate that *${nb_all}* is equal to the source root directory of 
> NetBeans and below this directory are the major projects (e.g. enterprise, 
> ide, java, nbbuild).
> I search the usage of *${nb_all}* and find some exact cases like the one 
> Matthias indicate and some others like:
> ${nb_all}/javahelp/external/jhall-2.0_05.jar
> Should be:
>  ${nb_all}/*platform*/javahelp/external/jhall-2.0_05.jar
> I fix this wrong use cases and did the following testing. I will execute the 
> unit testing of every module involved in this change and compare them. 



--
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-4858) Find in Projects > Containing Text field paste does not work (control-V)

2020-09-28 Thread Timothy Heider (Jira)
Timothy Heider created NETBEANS-4858:


 Summary: Find in Projects > Containing Text field paste does not 
work (control-V)
 Key: NETBEANS-4858
 URL: https://issues.apache.org/jira/browse/NETBEANS-4858
 Project: NetBeans
  Issue Type: Bug
  Components: editor - Search
Affects Versions: 12.1
 Environment: Mac OS 10
Reporter: Timothy Heider


When I open Find in Projects and attempt to paste text into the input it does 
not paste the text. I have confirmed other apps work (like TextEdit).

 



--
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-4857) ExplorerManager creates way too many PropertyChangeEvents if multiple OutlineViews are synchonized

2020-09-28 Thread Jira
Michael Küttner created NETBEANS-4857:
-

 Summary: ExplorerManager creates way too many PropertyChangeEvents 
if multiple OutlineViews are synchonized 
 Key: NETBEANS-4857
 URL: https://issues.apache.org/jira/browse/NETBEANS-4857
 Project: NetBeans
  Issue Type: Bug
  Components: platform - OutlineTreeTable
Affects Versions: 11.3, 11.2, 11.1, 12.0, 11.0, 8.2, 12.1
Reporter: Michael Küttner
 Attachments: TreeViewMain.java

An ExplorerManager can be shared by multiple OutlineViews to synchronize 
displayed nodes and selection. This works fine for single node selection 
(ListSelectionModel.SINGLE_SELECTION).

But in case of multiple selection 
(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION) the ExplorerManager creates 
way too many PropertyChangeEvents.

I attached a small example application that contains two OutlineViews sharing a 
single ExplorerManger. A PropertyChangeListener is registered to the 
ExplorerManager and prints old/new selected node to standard out.

If you select all nodes from "0" to "29" (e.g, usind SHIFT+Mouse1) you will get 
following output. The PropertyChangeListener is called *32* times!!!

old node: [0]; new node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 
19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29]; new node: []
old node: []; new node: [0]
old node: [0]; new node: [0, 1]
old node: [0, 1]; new node: [0, 1, 2]
old node: [0, 1, 2]; new node: [0, 1, 2, 3]
old node: [0, 1, 2, 3]; new node: [0, 1, 2, 3, 4]
old node: [0, 1, 2, 3, 4]; new node: [0, 1, 2, 3, 4, 5]
old node: [0, 1, 2, 3, 4, 5]; new node: [0, 1, 2, 3, 4, 5, 6]
old node: [0, 1, 2, 3, 4, 5, 6]; new node: [0, 1, 2, 3, 4, 5, 6, 7]
old node: [0, 1, 2, 3, 4, 5, 6, 7]; new node: [0, 1, 2, 3, 4, 5, 6, 7, 8]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8]; new node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; new node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 
9, 10]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; new node: [0, 1, 2, 3, 4, 5, 6, 
7, 8, 9, 10, 11]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]; new node: [0, 1, 2, 3, 4, 5, 
6, 7, 8, 9, 10, 11, 12]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; new node: [0, 1, 2, 3, 4, 
5, 6, 7, 8, 9, 10, 11, 12, 13]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]; new node: [0, 1, 2, 
3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]; new node: [0, 1, 
2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]; new node: [0, 
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]; new node: 
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]; new 
node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18]; 
new node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 
19]; new node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 
18, 19, 20]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 
19, 20]; new node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 
17, 18, 19, 20, 21]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 
19, 20, 21]; new node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 
16, 17, 18, 19, 20, 21, 22]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 
19, 20, 21, 22]; new node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 
15, 16, 17, 18, 19, 20, 21, 22, 23]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 
19, 20, 21, 22, 23]; new node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 
14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 
19, 20, 21, 22, 23, 24]; new node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 
13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 
19, 20, 21, 22, 23, 24, 25]; new node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 
12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 
19, 20, 21, 22, 23, 24, 25, 26]; new node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 
11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27]
old node: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 
19, 20, 21, 22, 23, 24, 25, 

[jira] [Created] (NETBEANS-4856) Remote C++ development: "Local Terminal is not supported on this system"

2020-09-28 Thread Xabier Gardeazabal (Jira)
Xabier Gardeazabal created NETBEANS-4856:


 Summary: Remote C++ development: "Local Terminal is not supported 
on this system"
 Key: NETBEANS-4856
 URL: https://issues.apache.org/jira/browse/NETBEANS-4856
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 12.0, 8.2
 Environment: Windows 10
Reporter: Xabier Gardeazabal


Hi! I hope this is the right place and form to open this issue... 

*Problem*:

I'm trying to develop a C++ project in NetBeans for remote development on a 
RaspberryPi. I can build and run programs successfully, but I can't open a 
remote terminal through Services > C/C++ Buil Hosts > [[r...@192.168.1.xyz]] > 
Right-Click > Open Terminal > Home Folder / Remote mirror of local files.

However, if I open a Terminal on NetBeans 12, and try to open an SSH connection 
to the same remote, it does work (I also successfully connect through SSH on 
PuTTY, or Cygwin, etc.).

*Steps to reproduce* (on a Windows 10 PC with either NetBeans 12 or 8.2:
 # Create new NetBeans project from Samples > C/C++ > "Welcome"
 # Add new remote host in the services tab > C/C++ Buil Hosts
 In my case, the remote host is a RaspberryPi (either 2, 3 or 4, all with the 
latest RaspberryPiOS updates) on the same WLAN as the host Windows 10 PC.
 # Once the connection to the remote is established: right-click on remote > 
Open Terminal > either "Home folder" or "Remote mirror of local files".

 

I have found other users reporting the same problem (on 2013 the earliest), but 
either the proposed solution did not work for me, or there were no answers 
provided:
 [*Bug 237078*|https://bz.apache.org/netbeans/show_bug.cgi?id=237078] - SSH 
terminal not supported [https://bz.apache.org/netbeans/show_bug.cgi?id=237078]
 [*Bug 238464*|https://bz.apache.org/netbeans/show_bug.cgi?id=238464] - Remote 
terminal error: "Local terminal is not supported on this system" 
[https://bz.apache.org/netbeans/show_bug.cgi?id=238464]

 I tried the proposed solution in for Bug 
[*237078*|https://bz.apache.org/netbeans/show_bug.cgi?id=237078] at 
[https://bz.apache.org/netbeans/show_bug.cgi?id=237078#c16] by executing 
NetBeans with the -J-Dcnd.tmpbase flag set to "/root" on the remote, but I'm 
getting the following error:
{code:java}
PS C:\Program Files\NetBeans 8.2\bin> ./netbeans64.exe -J-Dcnd.tmpbase=/root

The launcher has determined that the parent process has a console and will 
reuse it for its own console output.
Closing the console will result in termination of the running program.
Use '--console suppress' to suppress console output.
Use '--console new' to create a separate console window.

C:\Program Files\NetBeans 8.2\bin\.tmpbase=\root does not exist, or is not a 
plain file.
{code}
Which does not make much sense to me, since I though the flag was trying to set 
the tmp dir of the remote machine, not the local one.

 

I have also found that the last version of NetBeans where this error does not 
happen is 8.0.2. Now, I would gladly use that version were it not for the [*Bug 
249074*|https://bz.apache.org/netbeans/show_bug.cgi?id=249074] - [regression] 
"Remote builds using SFTP broke with 8.0.2 update" 
[https://bz.apache.org/netbeans/show_bug.cgi?id=249074] which is reported to be 
already fixed, although I keep triggering it even after clean download and 
install of NetBeans 8.0.2, and getting build failures such as this:
{code:java}
// code placeholder
Copying project files to 
/root/.netbeans/remote/192.168.1.105/desktop-vm4la03-Windows-x86_64 at 
root@192.168.1.105
Building project files list...
Checking directory structure...
Checking previously uploaded files...
Checking links...
Uploading changed files:
Zipping 11 changed files...
Uploading zip to root@192.168.1.105...
Unzipping changed files...
Checking exec permissions...
chmod: cannot access 
'/root/.netbeans/remote/192.168.1.105/desktop-vm4la03-Windows-x86_64/C/Welcome2/nbproject/configurations.xml':
 No such file or directory
chmod: cannot access 
'/root/.netbeans/remote/192.168.1.105/desktop-vm4la03-Windows-x86_64/C/Welcome2/nbproject/private/timestamps-192.168.1.106-root-22':
 No such file or directory
chmod: cannot access 
'/root/.netbeans/remote/192.168.1.105/desktop-vm4la03-Windows-x86_64/C/Welcome2/nbproject/private/configurations.xml':
 No such file or directory
chmod: cannot access 
'/root/.netbeans/remote/192.168.1.105/desktop-vm4la03-Windows-x86_64/C/Welcome2/nbproject/private/timestamps-192.168.1.105-root-22':
 No such file or directory
chmod: cannot access 
'/root/.netbeans/remote/192.168.1.105/desktop-vm4la03-Windows-x86_64/C/Welcome2/nbproject/private/launcher.properties':
 No such file or directory
chmod: cannot access 
'/root/.netbeans/remote/192.168.1.105/desktop-vm4la03-Windows-x86_64/C/Welcome2/nbproject/private/private.xml':
 No such file or directory
Error copying project files to