You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Ty Young <yo...@gmail.com> on 2019/11/09 07:45:53 UTC

What's going on with refactoring?

Hi,


Ever since Netbeans 9(technically pre-alpha, where Netbeans was still 
under Oracle), refractoring on a modular Ant project package or class 
has resulted in exceptions which forces manual refractoring(changing 
imports, mostly). This situation hasn't improved since Netbeans 9 and in 
Netbeans 11.2 it has somehow gotten worse. Now attempting to rename any 
method results in a "Java Refactoring threw java.lang.AssertionError" 
error with zero indication as to why it fails.


What's going on here? Why is refactoring so borked?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

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


Re: What's going on with refactoring?

Posted by Geertjan Wielenga <ge...@apache.org>.
On Sat, Nov 9, 2019 at 9:19 AM Ty Young <yo...@gmail.com> wrote:

>
>
>
> Anyway, I can rename methods now but i'm a bit too scared to rename any
> packages or move classes around.



That implies you need to get your code into a versioning system, e.g., on
GitHub.

Gj



> Does that work for you after removing it?
>
>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> > For additional commands, e-mail: users-help@netbeans.apache.org
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>

Re: What's going on with refactoring?

Posted by Geertjan Wielenga <ge...@apache.org>.
No, it hasn’t been only right now for the current release.

Can you report your refactoring issues or point to the specific issues
you’re encountering?

Yes, there have been several performance enhancements, can you spend some
time on the 11.2 features page on netbeans.apache.org?

And, yes, versioning systems are indeed handy when working with tools such
as IDEs.

Gj

On Sat, 9 Nov 2019 at 09:49, Ty Young <yo...@gmail.com> wrote:

>
> On 11/9/19 2:29 AM, Geertjan Wielenga wrote:
>
> We're working hard on implementing the special sauce that nb-javac adds
> into NetBeans itself so that ultimately nb-javac won't be needed at all
> anymore, e.g.:
>
> https://github.com/apache/netbeans/pull/1319
>
> In the meantime, if you can avoid using nb-javac, even though when it
> works correctly (something else we're trying to fix), it does better than
> not having it, that would be best.
>
> Gj
>
>
> Not having the ability to refactor at all outweighs any supposed
> performance benefit. This really shouldn't be recommended to be installed,
> ever. No one is going to know that refactoring is borked because nb-javac
> is bugged to high hell(and has been for 5 releases now!).
>
>
> Maybe it's just my imagination(or some other system update) but Netbeans
> 11.2 runs faster in general anyway, even without nb-javac.
>
>
> Also regarding the other email: Versioning software isn't meant to be used
> to work around or fix IDE screwups.
>
>
>
>
> On Sat, Nov 9, 2019 at 9:19 AM Ty Young <yo...@gmail.com> wrote:
>
>>
>> On 11/9/19 2:09 AM, Thomas Kellerer wrote:
>> > Ty Young schrieb am 09.11.2019 um 08:58:
>> >> On 11/9/19 1:53 AM, Geertjan Wielenga wrote:
>> >>> What happens when you uninstall nb-javac?
>> >>>
>> >>> Gj
>> >>
>> >>
>> >> I deactivated it and still have the same issue.
>> >
>> > Disabling is not enough as I found out, you need to completely remove
>> it.
>> >
>> >
>>
>> Well, the plugin loader is borked too then.
>>
>>
>> Anyway, I can rename methods now but i'm a bit too scared to rename any
>> packages or move classes around. Does that work for you after removing it?
>>
>>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>> > For additional commands, e-mail: users-help@netbeans.apache.org
>> >
>> > For further information about the NetBeans mailing lists, visit:
>> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: users-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>

Re: What's going on with refactoring?

Posted by Ty Young <yo...@gmail.com>.
On 11/9/19 2:29 AM, Geertjan Wielenga wrote:
> We're working hard on implementing the special sauce that nb-javac 
> adds into NetBeans itself so that ultimately nb-javac won't be needed 
> at all anymore, e.g.:
>
> https://github.com/apache/netbeans/pull/1319
>
> In the meantime, if you can avoid using nb-javac, even though when it 
> works correctly (something else we're trying to fix), it does better 
> than not having it, that would be best.
>
> Gj


Not having the ability to refactor at all outweighs any supposed 
performance benefit. This really shouldn't be recommended to be 
installed, ever. No one is going to know that refactoring is borked 
because nb-javac is bugged to high hell(and has been for 5 releases now!).


Maybe it's just my imagination(or some other system update) but Netbeans 
11.2 runs faster in general anyway, even without nb-javac.


Also regarding the other email: Versioning software isn't meant to be 
used to work around or fix IDE screwups.


>
>
> On Sat, Nov 9, 2019 at 9:19 AM Ty Young <youngty1997@gmail.com 
> <ma...@gmail.com>> wrote:
>
>
>     On 11/9/19 2:09 AM, Thomas Kellerer wrote:
>     > Ty Young schrieb am 09.11.2019 um 08:58:
>     >> On 11/9/19 1:53 AM, Geertjan Wielenga wrote:
>     >>> What happens when you uninstall nb-javac?
>     >>>
>     >>> Gj
>     >>
>     >>
>     >> I deactivated it and still have the same issue.
>     >
>     > Disabling is not enough as I found out, you need to completely
>     remove it.
>     >
>     >
>
>     Well, the plugin loader is borked too then.
>
>
>     Anyway, I can rename methods now but i'm a bit too scared to
>     rename any
>     packages or move classes around. Does that work for you after
>     removing it?
>
>
>     >
>     >
>     ---------------------------------------------------------------------
>     > To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>     <ma...@netbeans.apache.org>
>     > For additional commands, e-mail: users-help@netbeans.apache.org
>     <ma...@netbeans.apache.org>
>     >
>     > For further information about the NetBeans mailing lists, visit:
>     > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>     >
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>     <ma...@netbeans.apache.org>
>     For additional commands, e-mail: users-help@netbeans.apache.org
>     <ma...@netbeans.apache.org>
>
>     For further information about the NetBeans mailing lists, visit:
>     https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>

Re: What's going on with refactoring?

Posted by Geertjan Wielenga <ge...@apache.org>.
We're working hard on implementing the special sauce that nb-javac adds
into NetBeans itself so that ultimately nb-javac won't be needed at all
anymore, e.g.:

https://github.com/apache/netbeans/pull/1319

In the meantime, if you can avoid using nb-javac, even though when it works
correctly (something else we're trying to fix), it does better than not
having it, that would be best.

Gj


On Sat, Nov 9, 2019 at 9:19 AM Ty Young <yo...@gmail.com> wrote:

>
> On 11/9/19 2:09 AM, Thomas Kellerer wrote:
> > Ty Young schrieb am 09.11.2019 um 08:58:
> >> On 11/9/19 1:53 AM, Geertjan Wielenga wrote:
> >>> What happens when you uninstall nb-javac?
> >>>
> >>> Gj
> >>
> >>
> >> I deactivated it and still have the same issue.
> >
> > Disabling is not enough as I found out, you need to completely remove it.
> >
> >
>
> Well, the plugin loader is borked too then.
>
>
> Anyway, I can rename methods now but i'm a bit too scared to rename any
> packages or move classes around. Does that work for you after removing it?
>
>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> > For additional commands, e-mail: users-help@netbeans.apache.org
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>

Re: What's going on with refactoring?

Posted by Ty Young <yo...@gmail.com>.
On 11/9/19 2:09 AM, Thomas Kellerer wrote:
> Ty Young schrieb am 09.11.2019 um 08:58:
>> On 11/9/19 1:53 AM, Geertjan Wielenga wrote:
>>> What happens when you uninstall nb-javac?
>>>
>>> Gj
>>
>>
>> I deactivated it and still have the same issue.
>
> Disabling is not enough as I found out, you need to completely remove it.
>
>

Well, the plugin loader is borked too then.


Anyway, I can rename methods now but i'm a bit too scared to rename any 
packages or move classes around. Does that work for you after removing it?


>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

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


Re: What's going on with refactoring?

Posted by Thomas Kellerer <sh...@gmx.net>.
Ty Young schrieb am 09.11.2019 um 08:58:
> On 11/9/19 1:53 AM, Geertjan Wielenga wrote:
>> What happens when you uninstall nb-javac?
>>
>> Gj
>
>
> I deactivated it and still have the same issue.

Disabling is not enough as I found out, you need to completely remove it.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

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


Re: What's going on with refactoring?

Posted by Ty Young <yo...@gmail.com>.
On 11/9/19 1:53 AM, Geertjan Wielenga wrote:
> What happens when you uninstall nb-javac?
>
> Gj


I deactivated it and still have the same issue.


>
> On Sat, Nov 9, 2019 at 8:46 AM Ty Young <youngty1997@gmail.com 
> <ma...@gmail.com>> wrote:
>
>     Hi,
>
>
>     Ever since Netbeans 9(technically pre-alpha, where Netbeans was still
>     under Oracle), refractoring on a modular Ant project package or class
>     has resulted in exceptions which forces manual refractoring(changing
>     imports, mostly). This situation hasn't improved since Netbeans 9
>     and in
>     Netbeans 11.2 it has somehow gotten worse. Now attempting to
>     rename any
>     method results in a "Java Refactoring threw java.lang.AssertionError"
>     error with zero indication as to why it fails.
>
>
>     What's going on here? Why is refactoring so borked?
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>     <ma...@netbeans.apache.org>
>     For additional commands, e-mail: users-help@netbeans.apache.org
>     <ma...@netbeans.apache.org>
>
>     For further information about the NetBeans mailing lists, visit:
>     https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>

Re: What's going on with refactoring?

Posted by Geertjan Wielenga <ge...@apache.org>.
What happens when you uninstall nb-javac?

Gj

On Sat, Nov 9, 2019 at 8:46 AM Ty Young <yo...@gmail.com> wrote:

> Hi,
>
>
> Ever since Netbeans 9(technically pre-alpha, where Netbeans was still
> under Oracle), refractoring on a modular Ant project package or class
> has resulted in exceptions which forces manual refractoring(changing
> imports, mostly). This situation hasn't improved since Netbeans 9 and in
> Netbeans 11.2 it has somehow gotten worse. Now attempting to rename any
> method results in a "Java Refactoring threw java.lang.AssertionError"
> error with zero indication as to why it fails.
>
>
> What's going on here? Why is refactoring so borked?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>