Re: Refactor renaming hardly works anymore

2020-02-26 Thread Emilian Bold
--Original Message- > From: Emilian Bold > Sent: Tuesday, February 25, 2020 10:04 AM > To: Neil C Smith > Cc: NetBeans Mailing List ; Geertjan Wielenga > > Subject: Re: Refactor renaming hardly works anymore > > > Well, compile on save doesn't work without it as

RE: Refactor renaming hardly works anymore

2020-02-26 Thread Eirik Bakke
il C Smith Cc: NetBeans Mailing List ; Geertjan Wielenga Subject: Re: Refactor renaming hardly works anymore > Well, compile on save doesn't work without it as far as I know. Which is fine, because it saves me from having to disable it on every project anyway! ;-) Touche! (I would

Re: Refactor renaming hardly works anymore

2020-02-25 Thread Geertjan Wielenga
Without very clear steps and a full description of your environment, no one can help. Gj On Tue, Feb 25, 2020 at 5:31 PM Hans Grimmelshausen HG wrote: > Hello Geertjan and others, > > Unfortunately also with NB 11.3 alpha, the same Null pointer exception > occurs frequently at compile time, wit

Re: Refactor renaming hardly works anymore

2020-02-25 Thread Hans Grimmelshausen HG
Hello Geertjan and others, Unfortunately also with NB 11.3 alpha, the same Null pointer exception occurs frequently at compile time, with non-installed nb-java plugin. But I observed the following: While the null pointer exception in its stack-trace lists this (which you quoted earlier) : ->

Re: Refactor renaming hardly works anymore

2020-02-25 Thread Emilian Bold
> Well, compile on save doesn't work without it as far as I know. Which is fine, because it saves me from having to disable it on every project anyway! ;-) Touche! (I would vote to get rid of that feature entirely.) --emi On Tue, Feb 25, 2020 at 4:55 PM Neil C Smith wrote: > > On Tue, 25 Feb 2

Re: Refactor renaming hardly works anymore

2020-02-25 Thread Neil C Smith
On Tue, 25 Feb 2020 at 14:47, Emilian Bold wrote: > Although, my impression is that some features are not implemented and > nb-javac is more or less mandatory for the full Java editing > experience. Well, compile on save doesn't work without it as far as I know. Which is fine, because it saves m

Re: Refactor renaming hardly works anymore

2020-02-25 Thread Emilian Bold
I haven't followed the whole thread here, but couldn't NetBeans auto-disable nb-javac if needed? If nb-javac is only supposed to work for Java 8 runtimes then perhaps NetBeans should just use it as a fallback? Although, my impression is that some features are not implemented and nb-javac is more

Re: Refactor renaming hardly works anymore

2020-02-25 Thread Geertjan Wielenga
Definitely try 11.3. And possibly nb-javac is disabled, though still installed. Gj On Tue, Feb 25, 2020 at 3:39 PM Hans Grimmelshausen HG wrote: > Hello Geertjan and other readers, > > Your observation makes sense, but the strange thing is that I did > uninstall nb-javac via NB's menu Tools->P

Re: Refactor renaming hardly works anymore

2020-02-25 Thread Hans Grimmelshausen HG
Hello Geertjan and other readers, Your observation makes sense, but the strange thing is that I did uninstall nb-javac via NB's menu Tools->Plugins. So it's shown under "Available Plugins". Also I can successfully refactore-rename methods etc in my mid-sized project, which hasn't been working w

Re: Refactor renaming hardly works anymore

2020-02-25 Thread Geertjan Wielenga
Since this is in the stacktrace, nb-javac must still be present, i.e., has not been uninstalled: at org.netbeans.lib.nbjavac.services.NBAttr.visitClassDef(NBAttr.java:66) Gj On Tue, Feb 25, 2020 at 11:48 AM Neil C Smith wrote: > On Tue, 25 Feb 2020 at 10:35, Hans Grimmelshausen (HG) > wr

Re: Refactor renaming hardly works anymore

2020-02-25 Thread Neil C Smith
On Tue, 25 Feb 2020 at 10:35, Hans Grimmelshausen (HG) wrote: > Geertjan wrote at > one point that the nb-javac plugin was mainly useful for JDK 8 projects. Mainly useful for running NetBeans itself on JDK 8 as far as I know. And for supporting versions of JDK above what the IDE is running on. M

Re: Refactor renaming hardly works anymore

2020-02-25 Thread Hans Grimmelshausen (HG)
Hello again Netbeans users, With great interest I follow this thread (and others), and learned several things. As mentioned by me and others, the de-installation of the nb-javac plugin (which NB suggests to install at the beginning and then regularly) repairs the refactor-renaming so that it w

Re: Refactor renaming hardly works anymore

2020-02-24 Thread Laszlo Kishalmi
That's fixed in 11.3 On 2/24/20 4:45 PM, Ty Young wrote: If anyone's interested, here's another bug: https://pastebin.com/g0eLXnFy On 2/18/20 3:34 PM, Jan Lahoda wrote: Thanks! I can reproduce, will take a look on how to fix this! Jan On Tue, Feb 18, 2020 at 10:21 AM Ty Young

Re: Refactor renaming hardly works anymore

2020-02-24 Thread Ty Young
If anyone's interested, here's another bug: https://pastebin.com/g0eLXnFy On 2/18/20 3:34 PM, Jan Lahoda wrote: Thanks! I can reproduce, will take a look on how to fix this! Jan On Tue, Feb 18, 2020 at 10:21 AM Ty Young > wrote: I know some things tha

Re: Refactor renaming hardly works anymore

2020-02-18 Thread Martin Desruisseaux
Le 18/02/2020 à 11:25, Geertjan Wielenga a écrit : Best to also check whether the problem can be reproduced with nb-javac uninstalled. Yes my plan is to try with a fresh install and answer "no" to the question suggesting to install nb-javac.     Martin ---

Re: Refactor renaming hardly works anymore

2020-02-18 Thread Geertjan Wielenga
Best to also check whether the problem can be reproduced with nb-javac uninstalled, i.e., let’s see if we can all isolate the problem to nb-javac and at the same time try our best to work without nb-javac, since ideally in the end, assuming we’re running NetBeans on a JDK later than JDK 8, we’ll no

Re: Refactor renaming hardly works anymore

2020-02-18 Thread Martin Desruisseaux
Hello Jan Le 18/02/2020 à 08:30, Jan Lahoda a écrit : I know some things that changed (like adding the support for JDK 9, or the ability to use the JDK's javac instead of nb-javac). But it is hard to say what is the issue without actually being able to reproduce the issue. I am definitely wil

Re: Refactor renaming hardly works anymore

2020-02-18 Thread Eduard
As far back as in NB8 did I on rare occasions get weird results on refactor/renaming. I never had the time to disrupt what i was working on and to drill down what actually triggered this. I don't recall how I worked around that, though. In almost all cases does it work as expected. Maybe, as

Re: Refactor renaming hardly works anymore

2020-02-17 Thread Jan Lahoda
On Mon, Feb 17, 2020 at 2:58 PM Ty Young wrote: > On 2/17/20 7:32 AM, Geertjan Wielenga wrote: > > Indeed, Oracle is contributing constantly to NetBeans. Easy to prove, look > at the GitHub repo, at the list of contributors. Is your name there? Mine > is. > > > Bit odd then that no one is using a

Re: Refactor renaming hardly works anymore

2020-02-17 Thread Geertjan Wielenga
Best to not use nb-javac anyway. Ultimately we’ll move away from it. Though make sure to run on a JDK later than JDK 8. Gj On Mon, 17 Feb 2020 at 17:39, Thomas Kellerer wrote: > Still happens to me with beta3 (unless I uninstall nb-javac) > > Laszlo Kishalmi schrieb am 17.02.2020 um 18:37: > >

Re: Refactor renaming hardly works anymore

2020-02-17 Thread Thomas Kellerer
Still happens to me with beta3 (unless I uninstall nb-javac) Laszlo Kishalmi schrieb am 17.02.2020 um 18:37: I'd recommend to test 11.3-beta3, there were a lot of improvements around refactoring. I myself fixed 2 bugs during the beta cycle. On 2/17/20 5:56 AM, Martin Desruisseaux wrote: Hello

Re: Refactor renaming hardly works anymore

2020-02-17 Thread Laszlo Kishalmi
I'd recommend to test 11.3-beta3, there were a lot of improvements around refactoring. I myself fixed 2 bugs during the beta cycle. On 2/17/20 5:56 AM, Martin Desruisseaux wrote: Hello Hans Le 17/02/2020 à 13:56, Hans Grimmelshausen a écrit : Have you tried Thomas' excellent work-around for

Re: Refactor renaming hardly works anymore

2020-02-17 Thread Geertjan Wielenga
I’m sorry, I don’t know where to begin responding to your points and questions. Can you start by getting a very basic understanding of the Apache Software Foundation, what it is, and how it works, here: apache.org Thanks, Gj On Mon, 17 Feb 2020 at 14:58, Ty Young wrote: > On 2/17/20 7:32 AM,

Re: Refactor renaming hardly works anymore

2020-02-17 Thread Ty Young
On 2/17/20 7:32 AM, Geertjan Wielenga wrote: Indeed, Oracle is contributing constantly to NetBeans. Easy to prove, look at the GitHub repo, at the list of contributors. Is your name there? Mine is. Bit odd then that no one is using an Oracle email address. I suppose it's a requirement to use

Re: Refactor renaming hardly works anymore

2020-02-17 Thread Martin Desruisseaux
Hello Hans Le 17/02/2020 à 13:56, Hans Grimmelshausen a écrit : Have you tried Thomas' excellent work-around for the problem? He wrote: Not yet. My plan was to try with NetBeans 11.3. Of course I should try the beta first so issues can be filled. But trying beta versions depend on whether it

Re: Refactor renaming hardly works anymore

2020-02-17 Thread Geertjan Wielenga
Indeed, Oracle is contributing constantly to NetBeans. Easy to prove, look at the GitHub repo, at the list of contributors. Is your name there? Mine is. I am from Oracle. In the top 10 contributors, half the names are from Oracle. Gj On Mon, 17 Feb 2020 at 14:03, Ty Young wrote: > > On 2/17/20

Re: Refactor renaming hardly works anymore

2020-02-17 Thread Ty Young
On 2/17/20 6:59 AM, Ty Young wrote: On 2/17/20 4:41 AM, Hans Grimmselshausen wrote: Good day Netbeans users, snip Do you fellow Netbeans users know of problems with the refactoring module? Various code refactoring bugs have existed since before Oracle "donated" Netbeans to Apache(AK

Re: Refactor renaming hardly works anymore

2020-02-17 Thread Ty Young
On 2/17/20 4:41 AM, Hans Grimmselshausen wrote: Good day Netbeans users, snip Do you fellow Netbeans users know of problems with the refactoring module? Various code refactoring bugs have existed since before Oracle "donated" Netbeans to Apache(AKA Netbeans 9 alpha). Some seem to be j

Re: Refactor renaming hardly works anymore

2020-02-17 Thread Hans Grimmelshausen
Hello Martin, Thanks for the confirmation. Here too, sometimes the refactor-renaming works, but mostly it doesn't. And I too assumed it was "just" some problem specific to my configuration... Have you tried Thomas' excellent work-around for the problem? He wrote: You need to uninstall the n

Re: Refactor renaming hardly works anymore

2020-02-17 Thread Martin Desruisseaux
Hello Hans Le 17/02/2020 à 11:41, Hans Grimmselshausen a écrit : With Netbeans 11.2 (but also with 11.0) running in OpenJDK 11.0.6 on Ubuntu 18 LTS, for some time I experience a lot of problems when I try to refactor-rename public variables and functions in my mid-sized project. Mostly but no

Re: Refactor renaming hardly works anymore

2020-02-17 Thread Thomas Kellerer
Hans Grimmselshausen schrieb am 17.02.2020 um 12:09: > Does anybody know if this "refactoring-problem due to nb_javac > plugin" already in the bug database? Because it confuses users a lot. > Actually I thought "Am I the only persons in the world who used > Netbeans for many years but suddenly fail

Re: Refactor renaming hardly works anymore

2020-02-17 Thread Hans Grimmselshausen
Hello Thomas, Thank you very much. Your suggestion turns out to be a perfect work-around for the refactoring problem. You made my day. Now thinking about it, every fresh version of Netbeans (since version 11.0 I think, or was it already in version 10?) asks at the first start to install this

Re: Refactor renaming hardly works anymore

2020-02-17 Thread Thomas Kellerer
Hans Grimmselshausen schrieb am 17.02.2020 um 11:41: > With Netbeans 11.2 (but also with 11.0) running in OpenJDK 11.0.6 on > Ubuntu 18 LTS, for some time I experience a lot of problems when I > try to refactor-rename public variables and functions in my mid-sized > project. Mostly but not always,

Refactor renaming hardly works anymore

2020-02-17 Thread Hans Grimmselshausen
Good day Netbeans users, With Netbeans 11.2 (but also with 11.0) running in OpenJDK 11.0.6 on Ubuntu 18 LTS, for some time I experience a lot of problems when I try to refactor-rename public variables and functions in my mid-sized project. Mostly but not always, I then get the following error: