[jira] [Assigned] (NETBEANS-5037) NetBeans dialog windows in Big Sur

2022-08-15 Thread Anonymous (Jira)


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

Anonymous reassigned NETBEANS-5037:
---

Assignee: AWS MAGYRA

> NetBeans dialog windows in Big Sur
> --
>
> Key: NETBEANS-5037
> URL: https://issues.apache.org/jira/browse/NETBEANS-5037
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Search, editor - Settings, platform - Plugin 
> Manager
>Affects Versions: 8.2, 12.0, 11.1, 11.3, 12.1, 12.2
> Environment: macOS 11.0.2
>Reporter: Donatello Santoro
>Assignee: AWS MAGYRA
>Priority: Major
> Attachments: netbeans.conf, settings.png
>
>
> In macOS Big Sur some NetBeans panels (settings and find in project) are 
> broken:
>  * they are shown in full screen, as tab, please see screenshot 
>  * when they are shown, NB completely hangs, with high CPU usage.
> I tried almost every version of NetBeans (from 8.2 to 12.2rc) with every JDK 
> (1.8, 11, 13, 15), with the same behavior.
> The only way I have to solve the issue is to run NB as sudo
> {code:java}
> sudo /Applications/NetBeans/Apache\ NetBeans\ 12.1.app/Contents/MacOS/netbeans
> {code}
> Of course this is a permission related issue, but it appears only on 
> NetBeans. Other Java apps seems not affected. On command line there are no 
> evidence of the crash.
> Finally, in our office we are 4 with the same MacBook, and same macOS (just 
> upgraded from Catalina to Big Sur). 2 out of 4 have this issue. The other 2 
> can run NB without the sudo command.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[netbeans] branch delivery updated: Revert PR4025 "Open clean up code base to remove Windows 95 & 98 support.." due to compile time constant changes.

2022-08-15 Thread neilcsmith
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/delivery by this push:
 new 81872488c2 Revert PR4025 "Open clean up code base to remove Windows 95 
& 98 support.." due to compile time constant changes.
 new 03bb14800c Merge pull request #4498 from neilcsmith-net/revert-nb4025
81872488c2 is described below

commit 81872488c2d3b8f8651095e6a6084824695b1769
Author: Neil C Smith 
AuthorDate: Fri Aug 12 09:13:41 2022 +0100

Revert PR4025 "Open clean up code base to remove Windows 95 & 98 support.." 
due to compile time constant changes.

This reverts commit 20818f45e3296e33838612592ff10c9f2157c083.
---
 .../modules/extbrowser/NbDdeBrowserImpl.java   | 27 +--
 .../XMLFormatterTest/testReformatSample2.pass  |  4 +--
 .../testReformat/netbeans_build.xml|  4 +--
 .../XMLFormatterTest/testReformatSample2.pass  |  4 +--
 .../testReformat/netbeans_build.xml|  4 +--
 java/performance/sparrow/build.xml |  6 ++---
 .../native/launcher/windows/src/ExtractUtils.c |  1 +
 nbi/engine/native/launcher/windows/src/Main.c  | 31 +-
 .../native/launcher/windows/src/SystemUtils.c  |  5 
 .../native/launcher/windows/src/SystemUtils.h  |  1 +
 .../src/org/netbeans/core/output2/OutWriter.java   |  6 -
 .../beanstubs/org/openide/util/Utilities.java  | 12 +++--
 .../nbproject/org-openide-compat.sig   |  4 +++
 .../nbproject/org-openide-util-ui.sig  |  4 +++
 .../openide.util.ui/nbproject/org-openide-util.sig |  2 ++
 .../src/org/openide/util/Utilities.java|  6 +
 .../openide.util/nbproject/org-openide-util.sig|  2 ++
 .../src/org/openide/util/BaseUtilities.java| 14 --
 .../nbproject/org-netbeans-lib-profiler.sig|  2 ++
 .../org/netbeans/lib/profiler/global/Platform.java | 18 -
 20 files changed, 119 insertions(+), 38 deletions(-)

diff --git 
a/ide/extbrowser/src/org/netbeans/modules/extbrowser/NbDdeBrowserImpl.java 
b/ide/extbrowser/src/org/netbeans/modules/extbrowser/NbDdeBrowserImpl.java
index d87a45b9a7..685161846f 100644
--- a/ide/extbrowser/src/org/netbeans/modules/extbrowser/NbDdeBrowserImpl.java
+++ b/ide/extbrowser/src/org/netbeans/modules/extbrowser/NbDdeBrowserImpl.java
@@ -356,14 +356,16 @@ public class NbDdeBrowserImpl extends ExtBrowserImpl {
 }
 
 logFine("urlstr:", urlStr); // NOI18N
-StatusDisplayer.getDefault().setStatusText(NbBundle.getMessage 
(NbDdeBrowserImpl.class, "MSG_activatingBrowser"));
-try {
-
task.browser.reqDdeMessage(task.browser.realDDEServer(),WWW_ACTIVATE,"-1,0x0",task.browser.getActivateTimeout());
-} catch (NbBrowserException ex) {
-logFine("Exception, gonna start browser:", ex);
-triedStart = true;
-
startBrowser(task.browser.extBrowserFactory.getBrowserExecutable(), urlStr);
-}  
+if (!win9xHack(task.browser.realDDEServer())) {
+
StatusDisplayer.getDefault().setStatusText(NbBundle.getMessage 
(NbDdeBrowserImpl.class, "MSG_activatingBrowser"));
+try {
+
task.browser.reqDdeMessage(task.browser.realDDEServer(),WWW_ACTIVATE,"-1,0x0",task.browser.getActivateTimeout());
+} catch (NbBrowserException ex) {
+logFine("Exception, gonna start browser:", ex);
+triedStart = true;
+
startBrowser(task.browser.extBrowserFactory.getBrowserExecutable(), urlStr);
+}  
+}
 logFine("firstpart"); // NOI18N
 
 if (!triedStart) {
@@ -443,6 +445,15 @@ public class NbDdeBrowserImpl extends ExtBrowserImpl {
 return url;
 }
 
+/**
+ * Checks for IExplorer & Win9x combination.
+ */
+private boolean win9xHack (String browser) {
+return browser.equals(ExtWebBrowser.IEXPLORE)
+   && (Utilities.getOperatingSystem() == Utilities.OS_WIN98 
+  ||  Utilities.getOperatingSystem() == 
Utilities.OS_WIN95);
+}
+
 /** 
  * Utility function that tries to start new browser process.
  *
diff --git 
a/ide/xml.text.obsolete90/test/unit/data/goldenfiles/org/netbeans/modules/xml/text/indent/XMLFormatterTest/testReformatSample2.pass
 
b/ide/xml.text.obsolete90/test/unit/data/goldenfiles/org/netbeans/modules/xml/text/indent/XMLFormatterTest/testReformatSample2.pass
index a2cae95b19..5a924712dd 100644
--- 
a/ide/xml.text.obsolete90/test/unit/data/goldenfiles/org/netbeans/modules/xml/text/indent/XMLFormat

[netbeans] branch delivery updated: Gradle project reports unresolved configurations.

2022-08-15 Thread neilcsmith
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/delivery by this push:
 new 21e64e2eea Gradle project reports unresolved configurations.
 new 4f0fb4dff2 Merge pull request #4476 from 
lkishalmi/fix-unresolved-gradle-configuration-badge
21e64e2eea is described below

commit 21e64e2eea8ce94c9f85b2d8df01c687828c9059
Author: Laszlo Kishalmi 
AuthorDate: Sun Aug 7 12:47:29 2022 -0700

Gradle project reports unresolved configurations.
---
 .../org/netbeans/modules/gradle/api/GradleBaseProject.java   | 12 +++-
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git 
a/extide/gradle/src/org/netbeans/modules/gradle/api/GradleBaseProject.java 
b/extide/gradle/src/org/netbeans/modules/gradle/api/GradleBaseProject.java
index d0b5d12051..447d40ce43 100644
--- a/extide/gradle/src/org/netbeans/modules/gradle/api/GradleBaseProject.java
+++ b/extide/gradle/src/org/netbeans/modules/gradle/api/GradleBaseProject.java
@@ -267,16 +267,18 @@ public final class GradleBaseProject implements 
Serializable, ModuleSearchSuppor
 }
 
 /**
- * Returns {@code true} if all configurations are resolved.
- * @return true - if all configurations are resolved.
+ * Returns {@code true} if all resolvable configurations are resolved.
+ * @return true - if all resolvable configurations are resolved.
  */
 public boolean isResolved() {
 if (resolved == null) {
 boolean b = true;
 for (GradleConfiguration value : configurations.values()) {
-b &= value.isResolved();
-if (!b) {
-break;
+if (value.isCanBeResolved()) {
+b &= value.isResolved();
+if (!b) {
+break;
+}
 }
 }
 resolved = b;


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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[netbeans] branch delivery updated: org.netbeans.modules.java.hints.bugs.Unused doesn't cancel properly

2022-08-15 Thread neilcsmith
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/delivery by this push:
 new 74861d063b org.netbeans.modules.java.hints.bugs.Unused doesn't cancel 
properly
 new a8d131829e Merge pull request #4501 from mbien/cancel-unused-hint
74861d063b is described below

commit 74861d063b547e16d94f19171181a6fb1fc318db
Author: Michael Bien 
AuthorDate: Sat Aug 13 03:29:04 2022 +0200

org.netbeans.modules.java.hints.bugs.Unused doesn't cancel properly

 - streams are not very good at canceling
 - by using a plain loop we can simply break out of it
 - further: convertUnused is the slow part, not findUnused, and it isn't
   cancelable

issue:

 - a synthetic file with 10k fields pins a thread for about 20s
   at 100%
 - most editor features don't work during that time, e.g completion
---
 .../org/netbeans/modules/java/hints/bugs/Unused.java   | 18 +-
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git 
a/java/java.hints/src/org/netbeans/modules/java/hints/bugs/Unused.java 
b/java/java.hints/src/org/netbeans/modules/java/hints/bugs/Unused.java
index 7cb214e5cc..23ac810033 100644
--- a/java/java.hints/src/org/netbeans/modules/java/hints/bugs/Unused.java
+++ b/java/java.hints/src/org/netbeans/modules/java/hints/bugs/Unused.java
@@ -19,6 +19,7 @@
 package org.netbeans.modules.java.hints.bugs;
 
 import com.sun.source.tree.Tree.Kind;
+import java.util.ArrayList;
 import java.util.List;
 import java.util.stream.Collectors;
 import javax.lang.model.element.ElementKind;
@@ -46,11 +47,18 @@ public class Unused {
 
 @TriggerTreeKind(Kind.COMPILATION_UNIT)
 public static List unused(HintContext ctx) {
- return UnusedDetector.findUnused(ctx.getInfo(), () -> 
ctx.isCanceled())
- .stream()
- .map(ud -> convertUnused(ctx, ud))
- .filter(err -> err != null)
- .collect(Collectors.toList());
+List unused = 
UnusedDetector.findUnused(ctx.getInfo(), () -> ctx.isCanceled());
+List result = new ArrayList<>(unused.size());
+for (UnusedDescription ud : unused) {
+if (ctx.isCanceled()) {
+break;
+}
+ErrorDescription err = convertUnused(ctx, ud);
+if (err != null) {
+result.add(err);
+}
+}
+return result;
 }
 
 @Messages({


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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[netbeans] branch delivery updated: Adding libjunixsocket-native-2.5.1.dylib to the list of native binaries that are signed when creating the macOS installer

2022-08-15 Thread neilcsmith
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/delivery by this push:
 new 453b7c62ea Adding libjunixsocket-native-2.5.1.dylib to the list of 
native binaries that are signed when creating the macOS installer
 new 0f752d0b80 Merge pull request #4471 from 
mcdonnell-john/adding-native-binaries-to-mac-installer
453b7c62ea is described below

commit 453b7c62eae3c1f069708d7df4b99f8f4d35840f
Author: John McDonnell 
AuthorDate: Sun Aug 7 06:33:11 2022 +0100

Adding libjunixsocket-native-2.5.1.dylib to the list of native binaries 
that are signed when creating the macOS installer
---
 nbbuild/installer/mac/newbuild/commonfiles/signNativeBinaries.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nbbuild/installer/mac/newbuild/commonfiles/signNativeBinaries.sh 
b/nbbuild/installer/mac/newbuild/commonfiles/signNativeBinaries.sh
index f1d21cc8ba..d91007eff6 100644
--- a/nbbuild/installer/mac/newbuild/commonfiles/signNativeBinaries.sh
+++ b/nbbuild/installer/mac/newbuild/commonfiles/signNativeBinaries.sh
@@ -28,7 +28,7 @@ fi
 appSigningIdentity="$1"
 appDir="$2"
 
-nativeExecutionBinaries=( 
"/netbeans/ide/bin/nativeexecution/MacOSX-x86/unbuffer.dylib" 
"/netbeans/ide/bin/nativeexecution/MacOSX-x86/pty" 
"/netbeans/ide/bin/nativeexecution/MacOSX-x86/pty_open" 
"/netbeans/ide/bin/nativeexecution/MacOSX-x86/process_start" 
"/netbeans/ide/bin/nativeexecution/MacOSX-x86/killall" 
"/netbeans/ide/bin/nativeexecution/MacOSX-x86/stat" 
"/netbeans/ide/bin/nativeexecution/MacOSX-x86_64/unbuffer.dylib" 
"/netbeans/ide/bin/nativeexecution/MacOSX-x86_64/pty" "/netbeans [...]
+nativeExecutionBinaries=( 
"/netbeans/ide/bin/nativeexecution/MacOSX-x86/unbuffer.dylib" 
"/netbeans/ide/bin/nativeexecution/MacOSX-x86/pty" 
"/netbeans/ide/bin/nativeexecution/MacOSX-x86/pty_open" 
"/netbeans/ide/bin/nativeexecution/MacOSX-x86/process_start" 
"/netbeans/ide/bin/nativeexecution/MacOSX-x86/killall" 
"/netbeans/ide/bin/nativeexecution/MacOSX-x86/stat" 
"/netbeans/ide/bin/nativeexecution/MacOSX-x86_64/unbuffer.dylib" 
"/netbeans/ide/bin/nativeexecution/MacOSX-x86_64/pty" "/netbeans [...]
 jniBinaries=("/netbeans/platform/modules/lib/aarch64/libjnidispatch-nb.jnilib" 
"/netbeans/platform/modules/lib/x86_64/libjnidispatch-nb.jnilib")
 
profilerBinaries=("/netbeans/profiler/lib/deployed/jdk16/mac/libprofilerinterface.jnilib"
 "/netbeans/profiler/lib/deployed/jdk15/mac/libprofilerinterface.jnilib" )
 jansiJar="/netbeans/java/maven/lib/jansi-2.4.0.jar"


-
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