You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Chris Wareham <ch...@chriswareham.net> on 2024/12/20 16:33:00 UTC
Find usages appears to be broken in NetBeans 24
Hi,
I upgraded from NetBeans 23 to 24, and I've been finding that "Find usages" doesn't seem to work anymore. This is not the issue with UI change mentioned in a prior thread on this list, it's actually saying "Usages of Foo [no occurences]", even if I have another file with a usage open in an editor tab. This was with several Spring Boot projects open, and in Java code.
I tried clearing ~.cache/netbeans and ~.netbeans, then reinstalling NetBeans 24, but the same problem. I then downgraded back to NetBeans 23 as I had to continue working, but I will try and create a minimal test case over the Christmas break.
Just wondering at this stage if anyone else has encountered this issue.
Regards,
Chris
---------------------------------------------------------------------
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: Find usages appears to be broken in NetBeans 24
Posted by Michael Bien <mb...@gmail.com>.
Hi Chris,
can you close all projects (or switch to an empty group) then restart NB
and check if the same issue is reproducible with a freshly created hello
world project. (any java project type of you choice)
assuming everything works fine: is this about ant projects and did you
see a ConcurrentModificationException right after launch? Any other
problems like red markers on perfectly fine files? Exceptions in log?
-mbien
On 20.12.24 17:33, Chris Wareham wrote:
> Hi,
>
> I upgraded from NetBeans 23 to 24, and I've been finding that "Find usages" doesn't seem to work anymore. This is not the issue with UI change mentioned in a prior thread on this list, it's actually saying "Usages of Foo [no occurences]", even if I have another file with a usage open in an editor tab. This was with several Spring Boot projects open, and in Java code.
>
> I tried clearing ~.cache/netbeans and ~.netbeans, then reinstalling NetBeans 24, but the same problem. I then downgraded back to NetBeans 23 as I had to continue working, but I will try and create a minimal test case over the Christmas break.
>
> Just wondering at this stage if anyone else has encountered this issue.
>
> Regards,
>
> Chris
>
> ---------------------------------------------------------------------
> 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: Find usages appears to be broken in NetBeans 24
Posted by Simon IJskes - QCG <si...@qcg.nl>.
I know reporting these problems are really getting on everybodies
nerves. I apologize in advance. But please don't reject them on the
basis of not having a good reproducer.
I've noticed in the past, behaviour of background processes, that looks
there is some kind of deadlock, hanging lock condition, or something
related to concurrency. so it feels. (i know, very vague).
I develop with a big code base, so some background processes take
noticably longer.
The problems are mostly in things i suspect are background processes,
like error indicators in the right bar of the editor window. error
indicators on files that are not in sync. alt-space method suggestion
popups that do not work.
Generally they are the most noticable (if at all, not sure here), when
i've started a daemon and it is still running. when i develop a client-
server setup, i keep both maven projects open in the IDE, en if i
develop on the client, i keep the server runing. and vice versa. The
problem in reproducing here, it doesn't happen all the time. I mix my
development sessions with running, and then debugging, etc. And then
suddenly all the (background?) stuff that is very helpfull, like
mentioned before stop working. To recover i need to stop all processes
running under command of the IDE. Mostly that does it. Sometimes not,
then i have to leave the IDE.
Now for the difficult question, how to reproduce, and how to collect
information that points us nearer to the problem.
I have several versions on my desktop, the last one that exhibited this
behaviour was 24. i've just installed 25-rc1 to see if there are
improvements.
Let me conclude: i'm very gratefull for the time people put in netbeans,
and other apache projects. When i have i sense of ownership for a
project, i feel personally responsible for any errors/bugs that get
reported, even if i should not be. I hope i'm not causing any extra
stress by reporting this.
Gr. Simon
On 12/22/24 19:21, Ulrich Mayring wrote:
> Am Freitag, Dezember 20, 2024 18:21 CET, schrieb Michael Bien
> <mb...@gmail.com>:
>
>> For other issues please try to find a reproducer and open a proper bug
>> report (or add more details to existing reports).
>>
>> Posts like this are close to impossible to investigate if they don't
>> even mention the project type or any other details.
>>
>> best regards,
>> michael
>>
> Agreed. My point was to give a few examples of unreproducible problems
> in Netbeans (Gradle/Java projects all of them) and saying that the
> current problem talked about here also happens to me unreproducibly. So
> it's probably some kind of architectural issue that can affect Netbeans
> in many different ways, maybe something to do with an index becoming
> inconsistent or some other race condition. The only (and I would say
> slim) chance of deterministically fixing this is if the various reports
> ring a bell with someone, who is deeply familiar with Netbean's internal
> design.
>
> I haven't been successful in finding a reproducer for any of those
> issues, but managed to live with them by restarting / reloading. The
> good news is that at some point these issues will simply disappear (as
> indeed some others have in the past), because someone changes some
> internal behavior in NB for a completely different reason.
>
> Kind regards,
>
> Ulrich
>
--
create firmware without programming https://www.bendyroad.com
---------------------------------------------------------------------
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: Find usages appears to be broken in NetBeans 24
Posted by Ulrich Mayring <ul...@isys.de>.
Am Freitag, Dezember 20, 2024 18:21 CET, schrieb Michael Bien <mb...@gmail.com>:
For other issues please try to find a reproducer and open a proper bug
report (or add more details to existing reports).
Posts like this are close to impossible to investigate if they don't
even mention the project type or any other details.
best regards,
michael
Agreed. My point was to give a few examples of unreproducible problems in Netbeans (Gradle/Java projects all of them) and saying that the current problem talked about here also happens to me unreproducibly. So it's probably some kind of architectural issue that can affect Netbeans in many different ways, maybe something to do with an index becoming inconsistent or some other race condition. The only (and I would say slim) chance of deterministically fixing this is if the various reports ring a bell with someone, who is deeply familiar with Netbean's internal design.
I haven't been successful in finding a reproducer for any of those issues, but managed to live with them by restarting / reloading. The good news is that at some point these issues will simply disappear (as indeed some others have in the past), because someone changes some internal behavior in NB for a completely different reason.
Kind regards,
Ulrich
Re: Find usages appears to be broken in NetBeans 24
Posted by Michael Bien <mb...@gmail.com>.
the second point about missing error markers sounds like
https://github.com/apache/netbeans/pull/7937
There was also a CME fix for ant projects which broke code scanning in
some cases https://github.com/apache/netbeans/pull/7989 (unfortunately
didn't make it into NB24).
For other issues please try to find a reproducer and open a proper bug
report (or add more details to existing reports).
Posts like this are close to impossible to investigate if they don't
even mention the project type or any other details.
best regards,
michael
On 20.12.24 17:49, Ulrich Mayring wrote:
> This happens for me as well with Netbeans 22 (haven't upgrade to 24
> yet) and possibly earlier versions, too. So perhaps it is not a new
> issue.
>
> There are actually a number of "initially works, but stops working at
> some point" problems lingering in Netbeans. All of those are fixed by
> restarting Netbeans / reloading the project. I would be surprised if
> it were different in your case.
>
> For example:
> - after working for a while, "Fix Imports" doesn't find the JDK
> classes anymore and will not import them (classes from external
> libraries are always found).
> - at some point the editor will stop showing the red markings in the
> sidebar, when you have an error in your code.
>
> Kind regards,
> Ulrich
>
> Am 20.12.24 um 17:33 schrieb Chris Wareham:
>> Hi,
>>
>> I upgraded from NetBeans 23 to 24, and I've been finding that "Find
>> usages" doesn't seem to work anymore. This is not the issue with UI
>> change mentioned in a prior thread on this list, it's actually saying
>> "Usages of Foo [no occurences]", even if I have another file with a
>> usage open in an editor tab. This was with several Spring Boot
>> projects open, and in Java code.
>>
>> I tried clearing ~.cache/netbeans and ~.netbeans, then reinstalling
>> NetBeans 24, but the same problem. I then downgraded back to NetBeans
>> 23 as I had to continue working, but I will try and create a minimal
>> test case over the Christmas break.
>>
>> Just wondering at this stage if anyone else has encountered this
>> issue.
>>
>> Regards,
>>
>> Chris
>>
>> ---------------------------------------------------------------------
>> 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: Find usages appears to be broken in NetBeans 24
Posted by Ulrich Mayring <ul...@isys.de>.
This happens for me as well with Netbeans 22 (haven't upgrade to 24 yet)
and possibly earlier versions, too. So perhaps it is not a new issue.
There are actually a number of "initially works, but stops working at
some point" problems lingering in Netbeans. All of those are fixed by
restarting Netbeans / reloading the project. I would be surprised if it
were different in your case.
For example:
- after working for a while, "Fix Imports" doesn't find the JDK classes
anymore and will not import them (classes from external libraries are
always found).
- at some point the editor will stop showing the red markings in the
sidebar, when you have an error in your code.
Kind regards,
Ulrich
Am 20.12.24 um 17:33 schrieb Chris Wareham:
> Hi,
>
> I upgraded from NetBeans 23 to 24, and I've been finding that "Find usages" doesn't seem to work anymore. This is not the issue with UI change mentioned in a prior thread on this list, it's actually saying "Usages of Foo [no occurences]", even if I have another file with a usage open in an editor tab. This was with several Spring Boot projects open, and in Java code.
>
> I tried clearing ~.cache/netbeans and ~.netbeans, then reinstalling NetBeans 24, but the same problem. I then downgraded back to NetBeans 23 as I had to continue working, but I will try and create a minimal test case over the Christmas break.
>
> Just wondering at this stage if anyone else has encountered this issue.
>
> Regards,
>
> Chris
>
> ---------------------------------------------------------------------
> 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
>
--
iSYS Software GmbH
Ulrich Mayring | Full Stack Developer
Technology Lab / R&D
Tel: +49 (0) 89 46 23 28-0 | Fax +49 (0) 89 46 23 28-14
email: ulrich.mayring@isys.de
Grillparzerstraße 10 | D-81675 München
www.isys.de
Sitz der Gesellschaft: München | HRB 111760
Geschäftsführer: Stefan Fischer und Max Haller
---------------------------------------------------------------------
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