Re: [NETBEANS-3346] Upgrade asm to 5.2+

2019-11-06 Thread Peter Hull
On Wed, 6 Nov 2019 at 00:42, Jose Ch wrote: > I tried to upgrade the asm-all-5.0.1 library to the latest version 7.2 and > received a nullPointerException (line 774 of asm-52 & asm-72 files). I > already successfully upgrade it to version 5.1 >

Re: [NETBEANS-3346] Upgrade asm to 5.2+

2019-11-07 Thread Peter Hull
On Wed, 6 Nov 2019 at 22:24, Jose Ch wrote: > > I will test the PR and do as you suggest Pete. For what it's worth my implementation was a bit different: private static class CtorDelVisitor extends AnnotationVisitor { int[] indices; /** * Constructs a new {@link

Re: [NETBEANS-3346] Upgrade asm to 5.2+

2019-11-06 Thread Peter Hull
On Wed, 6 Nov 2019 at 20:38, Svata Dedic wrote: > Yes, that was it. You probably didn't do "ant clean" (neither did I). Right. > The NPE should be fixed by > https://github.com/pepness/incubator-netbeans/pull/2 Right again! I just opened up my mail to post my progress, great to see you'd already

Re: [NETBEANS-3346] Upgrade asm to 5.2+

2019-11-06 Thread Peter Hull
On Wed, 6 Nov 2019 at 15:13, Jose Ch wrote: > Could you verify that in the line 300 (Startup Classpath) it is using the asm > version 5.2 or above? For some reason I've got both 7.2 and 5.0.1 on the startup classpath - I will do a clean & rebuild then report back to you. Pete Startup Classpath

Re: Build failing locally

2019-12-03 Thread Peter Hull
On Tue, 3 Dec 2019 at 01:19, Steven Ingram wrote: > Also I just noticed that the README has changed to say that you can now > build the project with 8 or 11? How'd I miss that? > > Just to check I did a clean checkout and built with JDK11. I needed to add option "-Dpermit.jdk9.builds=true" to

Instructions for getting started

2019-10-21 Thread Peter Hull
Can someone point me to the current directions for getting started with Netbeans development? I've cloned the current git master but am unsure how to proceed. This is a bit embarrassing for me because I've done it in the recent past, but from memory all I had to do was 'ant tryme' to get a

Re: Instructions for getting started

2019-10-21 Thread Peter Hull
On Mon, 21 Oct 2019 at 10:56, Geertjan Wielenga wrote: > > In nbbuild/netbeans/bin you’ll find the executable, and netbeans.conf in > nbbuild/netbeans/etc. Thanks Geertjan! Unfortunately I don't get the executable when I just run ant (as suggested in README.md). I get errors

Re: 20 years of NetBeans!

2019-10-23 Thread Peter Hull
On Wed, 23 Oct 2019 at 10:49, Geertjan Wielenga wrote: > As stated on Twitter by Jaroslav Tulach: "Exactly twenty years ago Sun > announced it had acquired NetBeans." I had a copy of "Forte for Java" which I requested from Sun and they posted to me on a CD. That was where it started for me

Re: Blocker Maven issue just opened?

2019-10-18 Thread Peter Hull
Possibly it is the change labelled "Runtime.exec and ProcessBuilder Argument Restrictions" in https://www.oracle.com/technetwork/java/javase/11all-relnotes-5013287.html#R11_0_5 In which case it's not a bug introduced by JDK and the command line for maven needs to change, I think. Pete On Fri,

Re: Blocker Maven issue just opened?

2019-10-25 Thread Peter Hull
On Sat, 19 Oct 2019 at 11:32, Neil C Smith wrote: > Searching that system property surprised to see it's quite old - > https://blogs.oracle.com/thejavatutorials/jdk-7u25:-solutions-to-issues-caused-by-changes-to-runtimeexec > > I've opened a linked issue for 11.3 to track fixing it properly >

Re: [NETBEANS-3346] Upgrade asm to 5.2+

2019-11-19 Thread Peter Hull
On Thu, 7 Nov 2019 at 22:28, Laszlo Kishalmi wrote: > When you create your PR for 7.2, please close this one in favor of that: > PR#1620 has been merged now, which is great news! Is everyone happy that no changes are needed to the processjsannotations ant task - this was discussed in the

Error when building from current git

2019-11-27 Thread Peter Hull
Hi all, I have started seeing this error after updating to the latest git master and running `ant` or `ant build-basic`: > ...\netbeans\nbbuild\build.xml:660: Target "all-o.n.swing.laf.dark" does not exist in the project "nbbuild". It is used from target "nbmerge-build-one-cluster". Has anyone

Re: Build failing locally

2019-12-01 Thread Peter Hull
On Sun, 1 Dec 2019 at 22:15, Steven Ingram wrote: > I tried to build the project today, but I kept hitting errors which led me > to make a new clone of an up-to-date master branch of my fork. I keep > running into compilation errors. See attached truncated output. If i need > to attach the

Re: Error when building from current git

2019-11-28 Thread Peter Hull
On Wed, 27 Nov 2019 at 14:31, Laszlo Kishalmi wrote: > Actually I've seen that when I added the dark LAF to the build. > > But master builds fine for Travis and for me as well. > > I don't know what caused the problem but I have done an `ant clean` and then `ant build` which was successful.

Re: Profiling method calls does not work with JDK newer than 1.8

2020-02-26 Thread Peter Hull
On Wed, 26 Feb 2020 at 20:00, Matthias Bläsing wrote: > ok - I'll aks the obvious question: Why try to squeze a pointer sized > type into a int sized type? Why not use a jlong? I've been back and forth on this one - I actually implemented it both ways. I went for mapping jmethodID to jint because

Re: Profiling method calls does not work with JDK newer than 1.8

2020-02-26 Thread Peter Hull
On Wed, 26 Feb 2020 at 18:39, Matteo Di Giovinazzo wrote: > > Profiling method calls does not work with JDK newer than 1.8 > https://issues.apache.org/jira/browse/NETBEANS-3896 It is the same as https://issues.apache.org/jira/browse/NETBEANS-1428 I think.

Re: Profiling method calls does not work with JDK newer than 1.8

2020-02-26 Thread Peter Hull
On Wed, 26 Feb 2020 at 19:42, Matteo Di Giovinazzo wrote: > I found the whole thread and I see you found a solution: NB 12.0 might be a > good occasion to get this sorted out. Agreed, I have been a bit quiet recently because I was waiting for all the 11.3 stuff to settle down. > I see in one of

Re: Pull the plug from Java 8 in 12.1?

2020-02-27 Thread Peter Hull
I also feel it is a bit too early. Java 8 is still common in production - for example this suggests 64% Java 8, 25% Java 11: https://snyk.io/blog/developers-dont-want-to-leave-java-8-as-64-hold-firm-on-their-preferred-release/ (i know this is not necessarily a representative survey) For people

Re: Memory usage text rendering issue

2020-02-28 Thread Peter Hull
On Fri, 28 Feb 2020 at 10:37, Tim Boudreau wrote: > I happened to be around to chat with the author of that code Thanks for the info; I mentioned above that the code seemed strangely complicated and I could not find any comments or history to explain it. > The reason: GradientPaint's allocate

Re: Memory usage text rendering issue

2020-02-03 Thread Peter Hull
On Mon, 3 Feb 2020 at 12:38, Scott Palmer wrote: > How is the BufferedImage created? What is the pixel format? > It is BufferedImage.TYPE_INT_ARGB Reference:

Re: Memory usage text rendering issue

2020-02-03 Thread Peter Hull
I made a simple example, https://gist.github.com/pedro-w/b089e23db7aca037266b41cfc9c2ec2f On windows, I see this: [image: Annotation 2020-02-03 142402.jpg] I think the unpleasant rendering in the 'Rendered via Image' sample accounts for what you can see in the Memory usage widget (it's worse for

Re: Memory usage text rendering issue

2020-02-03 Thread Peter Hull
On Sun, 2 Feb 2020 at 18:28, Scott Palmer wrote: > Does anyone else see really ugly text in the memory usage widget on the > toolbar? > I had a quick look at this. It's very odd, rendering text into a Graphics2D derived from a BufferedImage (which is what the current dropshadow does) comes out

Re: Memory usage text rendering issue

2020-02-03 Thread Peter Hull
On Mon, 3 Feb 2020 at 15:12, Eirik Bakke wrote: > Do you have HiDPI scaling activated? (Check "Scale and Layout" in the > windows Display control panel.) > > To make things like this work well on HiDPI screens, it's best not to go > through a BufferedImage, but rather draw directly on the

Re: Memory usage text rendering issue

2020-02-03 Thread Peter Hull
On Mon, 3 Feb 2020 at 15:43, Eirik Bakke wrote: > You could make it work, but it will be easier to just redo the drawing > code directly. And it can really be something much simpler than what is > there now--no gradients etc, axis marker lines or anything. Just a single > polygon of a solid

Re: Memory usage text rendering issue

2020-02-04 Thread Peter Hull
On Mon, 3 Feb 2020 at 21:23, Laszlo Kishalmi wrote: > +1 for make it more simple! > > I have made a PR, https://github.com/apache/netbeans/pull/1918. Images of current / proposed are in the PR. Please let me know if you have any comments and also if you are able to test it on Mac, Linux,

Java profiler (again) - supported platforms

2020-02-11 Thread Peter Hull
Hi all, I think I am right when I say the Profiler still will not work for 64-bit windows, [NETBEANS-1428] (https://issues.apache.org/jira/browse/NETBEANS-1428) There's a quick fix, a replacement DLL, which is referenced in the bug report above. I am still working slowly on the correct fix and I

Re: Apache Netbeans 11.3 Press

2020-03-15 Thread Peter Hull
On Sun, 15 Mar 2020 at 20:44, Eric Bresie wrote: > https://adtmag.com/articles/2020/03/11/apache-netbeans-update.aspx?oly_enc_id=8998A7400878E0S Looks good up to the last paragraph - that stuff about the Swiss army knife doesn't make sense to me. Has the author confused NetCAT with the nc/netcat

Status of 'allowAmbiguousCommands' and Maven

2020-03-24 Thread Peter Hull
Towards the end of last year there was a problem with Maven projects caused by a new version of the JDK. The workaround was to edit netbeans.conf and add an option to netbeans_default_options. What's the current status of this? If memory serves, the change for netbeans.conf was put into NB 11.3

Re: Status of 'allowAmbiguousCommands' and Maven

2020-03-24 Thread Peter Hull
On Tue, 24 Mar 2020 at 08:44, Eric Barboni wrote: Thanks Eric, I have updated the StackOverflow. - To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For

Re: Status of 'allowAmbiguousCommands' and Maven

2020-03-24 Thread Peter Hull
On Tue, 24 Mar 2020 at 11:09, Neil C Smith wrote: > Incidentally, that fix went into NB 11.2. OK, memory didn't serve. After my first message I actually checked in the bug report and there were references to it being fixed in 11.2 VC so I guessed it was fixed in 11.2. How time flies! Pete

Re: Cannot build netbeans from the master on Fedora 31

2020-03-17 Thread Peter Hull
I think there is something unusual about Fedora's ant, which I have not got to the bottom of. See, for example, https://issues.apache.org/jira/browse/NETBEANS-239 Can you try downloading ant from Apache and using that, instead of the one from your distro. https://ant.apache.org/bindownload.cgi I

Re: x11 resource claim of graph applet in performance toolbar

2023-09-05 Thread Peter Hull
he window (i dont know the proper term, the display manager > > shows a button with windowtitle in [] in the panel), the increment of > > the graphics contexts stops. Also it is probably dependend on the > > netbeans window content. After restarting netbeans it is down to 3 gc > > e

Re: x11 resource claim of graph applet in performance toolbar

2023-09-04 Thread Peter Hull
On Mon, 4 Sept 2023 at 10:01, Simon IJskes - QCG wrote: > The memory graph in the performance toolbar claims a huge amount of X11 > resources. > > To give an idea, it creates 30 X11 graphics contexts per second. For information - this is implemented in

Re: NetBeans 20

2023-10-16 Thread Peter Hull
On Mon, 16 Oct 2023 at 11:40, Laszlo Kishalmi wrote: > > The String Template support has been merged for NB20: I missed that one. Thank you Michael and Laszlo! Peter - To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org

Re: NetBeans 20

2023-10-26 Thread Peter Hull
On Mon, 16 Oct 2023 at 11:01, Michael Bien wrote: > NB 20 will have initial support for string templates, e.g code completion: > the first release candidate should be out this week so you can test it > yourself if you want. I just tried it on rc2 - seems to work fine, thanks!

NetBeans 20

2023-10-16 Thread Peter Hull
Quick question - will NetBeans 20 editor support Java 21, specifically the string templates (which, I know, is only in preview)? I couldn't see anything Java 21-related in the milestone issue list. Thanks Pete - To unsubscribe,

Re: Windows 11 Issues - Copy/Paste Failure

2023-08-29 Thread Peter Hull
On Tue, 29 Aug 2023 at 14:59, Scott Palmer wrote: > But when I worked on Windows it happened all the time. It was a weekly > annoyance. > I know how frustrating this must be. I use NetBeans on Windows (currently NB 18 and Windows 11) and I do not see this issue. In the linked bug, there is some

Replacement for deprecated getUserHomeDirectory

2023-03-07 Thread Peter Hull
Hi, Does anyone know what is the suggested replacement for org.netbeans.installer.utils#getUserHomeDirectory() in netbeans/nbi/engine/src/org/netbeans/installer/utils/SystemUtils.java:88 Thanks! - To unsubscribe, e-mail:

Re: Replacement for deprecated getUserHomeDirectory

2023-03-07 Thread Peter Hull
On Tue, 7 Mar 2023 at 16:36, Christian Oyarzun wrote: > Looks like you should use getDefaultUserdirRoot(). Great thanks! Although I see that, for example in getSuperId(), it uses getUserHomeDirectory() as a fallback if getDefaultUserdirRoot() doesn't work!

Re: Windows installer build process

2023-03-02 Thread Peter Hull
On 2023/02/27 22:23:17 Christian Oyarzun wrote: > I believe the stub gets the rest of the installer's binary data appended to > it or vise-versa Thanks Christian, that was helpful. I think maybe it's the shell scripts in "netbeans\nbbuild\installer\infra\build" that assemble the final binary. The

Re: Launching an application

2023-03-02 Thread Peter Hull
On Thu, 2 Mar 2023 at 10:22, Andrii Cherepkov wrote: > > I just installed NetBeans for coding in PHP. So I try to launch application > and nothing was happened =( Just to be clear, what OS are you using and how did you install Netbeans? (from the zip or from a platform dependent installer?) I

Windows installer build process

2023-02-27 Thread Peter Hull
I was wanting to investigate the 'native' windows installer to see if I could fix https://github.com/apache/netbeans/issues/5060 'Difficulty with NB16 Windows installer' but I cannot figure out how the windows stub exe gets incorporated to the final, overall windows installer

Re: PR

2023-04-15 Thread Peter Hull
On Sat, 15 Apr 2023 at 21:15, Łukasz Bownik wrote: > Will it get merged or shall I close it? I believe PRs can still get merged even after the fork is deleted - see

Re: [Lazy Consensus] Minimum JDK build and run policy (dropping JDK 8)

2023-04-12 Thread Peter Hull
On Wed, 12 Apr 2023 at 09:15, Mark Struberg wrote: > Java11 is not as much used in the industry, it was kind of totally ignored by > some companies and bigger projects. It also imo doesn't bring that much of a > benefit for the code base. Plus the eco system is rather slowly moving. There >

Maven indexing on NB 18

2023-06-09 Thread Peter Hull
Hi, It seems to me that the maven indexing is running more often than it used to, and certainly more than 'once per week' which is what I've set it up for. For example, it's run twice today. Is there a log which shows how often it's run and what made it start, then I can confirm what the situation

Re: Maven indexing on NB 18

2023-06-12 Thread Peter Hull
On Sun, 11 Jun 2023 at 19:05, Tamás Cservenák wrote: > The central index last publish happened on 5th June 2023. Thanks everyone for the comments. I've not been monitoring it specifically but I had the feeling that indexer was running more frequently, that's why I asked if there was a log so I

Re: Maven indexing on NB 18

2023-06-26 Thread Peter Hull
Just to update you, I think my problem was really down to running out of space on the system drive; I have made more space available and over the last 2 weeks it seems to be behaving fine. I didn't try NB19 as I haven't had time. Thanks everyone, Peter

Re: [HELP WANTED] Testing new macOS installer

2023-11-14 Thread Peter Hull
On Tue, 14 Nov 2023 at 18:19, Neil C Smith wrote: > Testing as we wind down towards NB20 release would be appreciated, > including of terminal and profiler support from a signed installer on > aarch64! It installed OK for me on MacOS (see specs below) but it wouldn't run because it said it needed

Re: [HELP WANTED] Testing new macOS installer

2023-11-14 Thread Peter Hull
Just as a follow up I noticed some keys which are in the info.plist of netbeans 18 and not in 20-rc4, specifically NSHighResolutionCapable and NSSupportsAutomaticGraphicsSwitching - I don't know what these do but might they be important?

org.openide.filesystems.Repository

2024-05-08 Thread Peter Hull
Trying to understand a little about how NB finds source files (e.g. "go to declaration") I came across class "org.openide.filesystems.Repository" which seems to be used widely, even though all (?) its public methods are deprecated. The deprecation notice says to use the ClassPath API instead but