[jira] [Commented] (NETBEANS-2360) HiDPI scaling (and anti-aliasing on KDE) not applied automatically on Linux
[ https://issues.apache.org/jira/browse/NETBEANS-2360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17516604#comment-17516604 ] Eirik Bakke commented on NETBEANS-2360: --- Hi, Javier! As you may have noticed, Java only supports either 1x or 2x HiDPI scaling on Linux. So the script I provided only applies the 2x scaling when the desktop's scaling is exactly 2x (192 dots per inch). In your case it seems you have configured a 162/96=1.6875x scaling factor? Could this be right? Could you try setting your desktop's HiDPI scaling to exactly 200%, and then see if the script picks up on that? (I suppose I could change the script to scale NetBeans to 2x if the desktop's scaling level is more than 1.5x, or perhaps some higher threshold. But I figured it was better to let the user increase their font size instead in these cases.) -- Eirik > HiDPI scaling (and anti-aliasing on KDE) not applied automatically on Linux > --- > > Key: NETBEANS-2360 > URL: https://issues.apache.org/jira/browse/NETBEANS-2360 > Project: NetBeans > Issue Type: Bug > Components: platform - Launchers&CLI >Affects Versions: 11.0, 12.2 > Environment: Kubuntu 18.03 > Oracle JDK 11.0.2 >Reporter: Eirik Bakke >Priority: Major > Labels: HiDPI, Linux, pull-request-available > Attachments: CheckHiDpi.java, image-2021-09-12-21-01-33-807.png, > image-2021-09-12-21-05-06-852.png, kubunt.jpg > > Time Spent: 1h > Remaining Estimate: 0h > > Running NetBeans 11 on Kubuntu 18.03, GUI text size does not seem to take > into account the system's default HiDPI scaling. This was reported in a > Twitter thread on https://twitter.com/nicktail/status/1114789604337405952 . > Note that Window decorations seem to be the correct size. > Setting the GDK_SCALE environment variable seems to fix the problem, if I > understand the originally reporter correctly. This could probably be done > easily from the NetBeans launcher script (netbeans/bin). But it wouldn't fix > the problem in multi-monitor setups. We should investigate what could be done > to make scaling work properly in multi-monitor setups involving one HiDPI > screen and one non-HiDPI screen. > Before merging a patch to the launcher script, it should be tested on a > couple of different Linux environments, using both HiDPI and non-HiDPI > screens. Note that the UNIX launcher script is also used on MacOS. -- This message was sent by Atlassian Jira (v8.20.1#820001) - 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 (190ffcb -> 19c5520)
This is an automated email from the ASF dual-hosted git repository. matthiasblaesing pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git. from 190ffcb Cleanup the use of Float primitive wrapper. As of Java 9, the VM can do a better job of handling the (#3890) new 7bc17f5 Enable running commit-validation on JDK 8, 11 and 18 and ensure VerifySimpleTemplatesTest is actually ran new 6e91633 Remove environment setup (enable security manager, add-opens) from github workflow new 19c5520 Merge pull request #3862 from matthiasblaesing/fix-commit-validation-jdk16+ The 6856 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .github/workflows/main.yml | 8 --- .../ide.ergonomics/nbproject/project.properties| 1 - ide/ide.kit/nbproject/project.properties | 10 .../modules/ide/kit/VerifySimpleTemplatesTest.java | 5 -- ide/libs.graalsdk/nbproject/project.properties | 2 - java/java.hints/nbproject/project.properties | 6 ++ .../org/netbeans/nbbuild/extlibs/ignored-overlaps | 1 + nbbuild/build.xml | 36 nbbuild/default.xml| 64 +- nbbuild/jdk.xml| 33 +++ nbbuild/templates/common.xml | 25 + nbbuild/templates/projectized.xml | 9 +-- platform/libs.batik.read/external/binaries-list| 1 + 04-license.txt => xml-apis-1.4.01-license.txt} | 2 +- 3.04-notice.txt => xml-apis-1.4.01-notice.txt} | 0 .../libs.batik.read/nbproject/project.properties | 2 + platform/libs.batik.read/nbproject/project.xml | 4 ++ platform/o.n.core/nbproject/project.properties | 2 - 18 files changed, 136 insertions(+), 75 deletions(-) copy platform/libs.batik.read/external/{xml-apis-ext-1.3.04-license.txt => xml-apis-1.4.01-license.txt} (99%) copy platform/libs.batik.read/external/{xml-apis-ext-1.3.04-notice.txt => xml-apis-1.4.01-notice.txt} (100%) - 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: Cleanup the use of Float primitive wrapper. As of Java 9, the VM can do a better job of handling the (#3890)
This is an automated email from the ASF dual-hosted git repository. bwalker 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 190ffcb Cleanup the use of Float primitive wrapper. As of Java 9, the VM can do a better job of handling the (#3890) 190ffcb is described below commit 190ffcb940036411aa927f3802f05f864f1bb884 Author: Brad Walker AuthorDate: Sun Apr 3 09:54:51 2022 -0400 Cleanup the use of Float primitive wrapper. As of Java 9, the VM can do a better job of handling the (#3890) coversion from a float primitive to a Float Object or vice versa. This is an extension of the work done in #2498. No tests have been touched as those expressly need to manage the conversion. --- .../src/org/netbeans/api/debugger/Properties.java | 2 +- .../css/lib/api/properties/TokenAcceptor.java | 2 +- .../db/dataview/util/DBReadWriteHelper.java| 2 +- .../org/netbeans/modules/schema2beans/Common.java | 2 +- .../modules/schema2beans/GraphManager.java | 2 +- .../netbeans/modules/classfile/CPFloatInfo.java| 2 +- .../performance/benchmarks/XMLReporter.java| 2 +- .../performance/impl/logparsing/GcLog.java | 14 ++- .../spi/AveragedNameValueLogElement.java | 6 ++--- .../netbeans/upgrade/systemoptions/SerParser.java | 4 ++-- .../netbeans/swing/tabcontrol/demo/TestFrame.java | 17 -- .../propertysheet/IndexedPropertyEditor.java | 2 +- .../src/org/openide/filesystems/XMLMapAttr.java| 2 +- .../src/org/openide/text/PrintSettings.java| 2 +- .../netbeans/lib/profiler/ui/cpu/CCTDisplay.java | 27 +- .../lib/profiler/ui/cpu/DiffCCTDisplay.java| 2 +- .../lib/profiler/ui/cpu/DiffFlatProfilePanel.java | 2 +- .../lib/profiler/ui/cpu/FlatProfilePanel.java | 2 +- .../lib/profiler/ui/cpu/ReverseCallGraphPanel.java | 2 +- .../lib/profiler/ui/cpu/SubtreeCallGraphPanel.java | 2 +- .../websvc/saas/codegen/model/ParameterInfo.java | 2 +- 21 files changed, 30 insertions(+), 70 deletions(-) diff --git a/ide/api.debugger/src/org/netbeans/api/debugger/Properties.java b/ide/api.debugger/src/org/netbeans/api/debugger/Properties.java index 2878e06..3f8c7c5 100644 --- a/ide/api.debugger/src/org/netbeans/api/debugger/Properties.java +++ b/ide/api.debugger/src/org/netbeans/api/debugger/Properties.java @@ -1478,7 +1478,7 @@ public abstract class Properties { } else if (classNames[5].equals(className)) { return new Long(properties.getLong(propertyName, 0l)); } else if (classNames[6].equals(className)) { -return new Float(properties.getFloat(propertyName, 0f)); +return properties.getFloat(propertyName, 0f); } else if (classNames[7].equals(className)) { return new Double(properties.getDouble(propertyName, 0d)); } diff --git a/ide/css.lib/src/org/netbeans/modules/css/lib/api/properties/TokenAcceptor.java b/ide/css.lib/src/org/netbeans/modules/css/lib/api/properties/TokenAcceptor.java index 5658c3f..c04e8bc 100644 --- a/ide/css.lib/src/org/netbeans/modules/css/lib/api/properties/TokenAcceptor.java +++ b/ide/css.lib/src/org/netbeans/modules/css/lib/api/properties/TokenAcceptor.java @@ -312,7 +312,7 @@ public abstract class TokenAcceptor { Float f = super.getNumberValue(image); if(f == null) { if(image.length() > 0 && image.charAt(0) == '0') { -f = new Float(0); +f = 0F; } } return f; diff --git a/ide/db.dataview/src/org/netbeans/modules/db/dataview/util/DBReadWriteHelper.java b/ide/db.dataview/src/org/netbeans/modules/db/dataview/util/DBReadWriteHelper.java index d056e34..761ee3f 100644 --- a/ide/db.dataview/src/org/netbeans/modules/db/dataview/util/DBReadWriteHelper.java +++ b/ide/db.dataview/src/org/netbeans/modules/db/dataview/util/DBReadWriteHelper.java @@ -445,7 +445,7 @@ public class DBReadWriteHelper { case Types.FLOAT: case Types.REAL: -return valueObj instanceof Float ? valueObj : new Float(valueObj.toString()); +return valueObj instanceof Float ? valueObj : Float.valueOf(valueObj.toString()); case Types.DECIMAL: case Types.NUMERIC: diff --git a/ide/schema2beans/src/org/netbeans/modules/schema2beans/Common.java b/ide/schema2beans/src/org/netbeans/modules/schema2beans/Common.java index a1e9f39..408a053 100644 --- a/ide/schema2beans/src/org/netbeans/modules/schema2beans/Common.java +++ b/ide/schema2beans/src/org/netbeans/modules/schema2beans/Common.java @@ -385,7 +385,7 @@ public class Common { case Common.TYPE_LONG:
[netbeans-jackpot30] branch master updated: Updating to NetBeans 13
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-jackpot30.git The following commit(s) were added to refs/heads/master by this push: new 840703b Updating to NetBeans 13 840703b is described below commit 840703b1e90f4c69c087f7a48d9780fcb7c200af Author: Jan Lahoda AuthorDate: Sun Apr 3 11:00:55 2022 +0200 Updating to NetBeans 13 --- .travis.yml| 15 +- cmdline/README.md | 8 +- cmdline/build.xml | 27 +- cmdline/lib/nbproject/project.properties | 1 - cmdline/lib/nbproject/project.xml | 3 +- .../jackpot30/cmdline/lib/CreateStandaloneJar.java | 8 +- .../modules/jackpot30/cmdline/lib/TestUtils.java | 59 cmdline/maven/pom.xml | 2 +- .../modules/jackpot30/maven/RunJackpot30.java | 2 +- .../modules/jackpot30/maven/RunJackpot30Test.java | 2 +- cmdline/nbproject/project.properties | 4 +- cmdline/processor/build.xml| 43 +++ cmdline/processor/manifest.mf | 5 + cmdline/processor/nbproject/build-impl.xml | 62 .../nbproject/genfiles.properties} | 14 +- .../nbproject/project.properties | 5 + cmdline/{tool => processor}/nbproject/project.xml | 2 +- .../nbproject/suite.properties}| 6 +- .../jackpot30/cmdline/processor/Bundle.properties} | 6 +- .../cmdline/processor}/ProcessorImpl.java | 4 +- .../jackpot30/cmdline/processor}/cfg_hints.xml | 0 .../cmdline/processor/CreateToolProcessor.java}| 24 +- .../processor}/CreateToolProcessorTest.java| 4 +- .../cmdline/processor}/ProcessorImplTest.java | 13 +- .../jackpot30/cmdline/processor}/Utils.java| 53 +--- cmdline/tool/build.xml | 15 +- cmdline/tool/nbproject/project.properties | 4 + cmdline/tool/nbproject/project.xml | 8 + cmdline/tool/scripts/LICENSE-bin-tool.txt | 352 + cmdline/tool/scripts/jackpot | 2 +- cmdline/tool/scripts/pom.xml | 2 +- .../netbeans/modules/jackpot30/cmdline/Main.java | 2 - .../modules/jackpot30/cmdline/CreateTool.java | 8 +- .../modules/jackpot30/cmdline/CreateToolTest.java | 2 +- .../modules/jackpot30/cmdline/MainTest.java| 44 +-- .../netbeans/modules/jackpot30/cmdline/Utils.java | 52 +-- 36 files changed, 667 insertions(+), 196 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9e0c2d3..2555715 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,15 +22,16 @@ addons: - ant - ant-optional - openjdk-8-jdk + - openjdk-11-jdk + - openjdk-17-jdk jdk: - - openjdk11 + - openjdk8 before_script: - - wget 'https://www.apache.org/dist/netbeans/netbeans/12.5/netbeans-12.5-bin.zip' -O /tmp/netbeans-12.5-bin.zip - - (cd $HOME; unzip /tmp/netbeans-12.5-bin.zip) + - wget 'https://downloads.apache.org/netbeans/netbeans/13/netbeans-13-bin.zip' -O /tmp/netbeans-13-bin.zip + - (cd $HOME; unzip /tmp/netbeans-13-bin.zip) - unset _JAVA_OPTIONS script: - - export JDK11=$JAVA_HOME - - export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 - - export PATH=$JAVA_HOME/bin:$PATH + - export JDK11=/usr/lib/jvm/java-11-openjdk-amd64 + - export JDK17=/usr/lib/jvm/java-17-openjdk-amd64 - (cd cmdline; ant -Dnbplatform.default.harness.dir=$HOME/netbeans/harness rat) - - (cd cmdline; ant -Dnbplatform.default.harness.dir=$HOME/netbeans/harness -DNETBEANS_PLATFORM=$HOME/netbeans -DJDK11=$JDK11 build-and-test) + - (cd cmdline; ant -Dnbplatform.default.harness.dir=$HOME/netbeans/harness -DNETBEANS_PLATFORM=$HOME/netbeans -DJDK11=$JDK11 -DJDK17=$JDK17 build-and-test) diff --git a/cmdline/README.md b/cmdline/README.md index 094ccf7..99a76a5 100644 --- a/cmdline/README.md +++ b/cmdline/README.md @@ -27,22 +27,22 @@ This tool allows to run NetBeans Java code checker without the NetBeans IDE. Thi To Build -* Apache NetBeans 12.5 -* JDK 8 and JDK 11 +* Apache NetBeans 13.0 +* JDK 8, JDK 11 and JDK 17 * bash * Apache ant 1.9.9 or above * Apache Maven 3.3.9 or above To Run -* JDK 11 +* JDK 8-17 ### Building Build using: ``` -$ ant -DNETBEANS_PLATFORM= -DJDK11= build-and-test +$ ant -DNETBEANS_PLATFORM= -DJDK11= -DJDK17= build-and-test ``` The built product is in tool/build/jackpot. diff --git a/cmdline/build.xml b/cmdline/build.xml index f386b5e..c11008a 100644 --- a/cmdline/build.xml +++ b/cmdline/build.xml @@ -52,33 +52,49 @@ - + - -
[jira] [Commented] (NETBEANS-6421) Netbeans 12.6 freezes AWT from Micronaut Support
[ https://issues.apache.org/jira/browse/NETBEANS-6421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17516477#comment-17516477 ] Alberto Rinaudo commented on NETBEANS-6421: --- Hi, I'm having the exact same problem. Application freeze, dump files with the same content, and that level error too. Here's my setup: {code:java} Product Version: Apache NetBeans IDE 13 Java: 17.0.2; OpenJDK 64-Bit Server VM 17.0.2+8-Debian-1deb11u1 Runtime: OpenJDK Runtime Environment 17.0.2+8-Debian-1deb11u1 System: Linux version 5.10.0-13-amd64 running on amd64; UTF-8; en_GB (nb){code} Can this also be related to https://issues.apache.org/jira/browse/NETBEANS-577? Do we have a regression here? If I can provide any other info please let me know. Thanks > Netbeans 12.6 freezes AWT from Micronaut Support > > > Key: NETBEANS-6421 > URL: https://issues.apache.org/jira/browse/NETBEANS-6421 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.6 > Environment: *Product Version:* Apache NetBeans IDE 12.6 > *Java:* 11.0.13; OpenJDK 64-Bit Server VM 11.0.13+8 > *Runtime:* OpenJDK Runtime Environment 11.0.13+8 > *System:* Mac OS X version 12.1 running on x86_64; UTF-8; de_DE (nb) > nbjavac enabled > Compile on save enabled > maven multi module project (> 1000 classes) >Reporter: Stefan Röper >Priority: Major > > Netbeans GUI freezes occasionally during save of file or during navigation. > This happens since 12.6 on my system with a frequency of once every two hours. > > Disabling micronaut plugin helps to prevent that freezing GUI but also makes > Netbeans more responsive and less memory hungry( 2.3 GB instead of 3.5 GB). > After some hours Netbeans again freezes even with micronaut disabled. > The frozen GUI does not let the user save a file or change a tab nor let him > further editing the file. The Window can still be moved and the menu is still > responsive. After choosing a menu item (i.e. Quit) the spinning ball shows up > and the only possibility is to kill the netbeans process. > > I also get the message: > Even though the source level of .../src/main/resources is set to: 11, > java.util.zip.CRC32C cannot be found on the system module path: > Changing source level to 1.8 > > This is combined with lots of *.dump files. All start with > "Incorrectly reparsed file" -- This message was sent by Atlassian Jira (v8.20.1#820001) - 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