netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Find in Projects not working in NetBeans 24

Open stant opened this issue 1 year ago • 8 comments

Apache NetBeans version

Apache NetBeans 24

What happened

Just installed newest NB 24 and tried using ctrl-shift-f and anything i try to search for it finds nothing. I try a string in the code file I am in that I see in front of me and it does not find that either.

Language / Project Type / NetBeans Component

Java Spring Boot gradle project

How to reproduce

Have a java file open. hit ctrl-shift-f enter any text, like "logger" and it says match: literal. hit find and it never finds anything.

Did this work correctly in an earlier version?

Apache NetBeans 23

Operating System

Linux mypc 6.12.1-4-MANJARO #1 SMP PREEMPT_DYNAMIC Mon, 25 Nov 2024 05:36:03 +0000 x86_64 GNU/Linux

JDK

Java HotSpot(TM) 64-Bit Server VM (build 17.0.5+9-LTS-191, mixed mode, sharing)

Apache NetBeans packaging

Other

Anything else

i think it is installed with netbeans-bin 24-1 manjaro AUR package

this is newest manjaro. there are other weird things maybe just in netbeans. menu's not dropping down correctly....

Are you willing to submit a pull request?

No

stant avatar Dec 16 '24 16:12 stant

Please provide minimal info necessary to help:

  • message.log of the session you tested the search with (View -> IDE Log)
  • screenshots of the problem

matthiasblaesing avatar Dec 16 '24 16:12 matthiasblaesing

this is newest manjaro. there are other weird things maybe just in netbeans. menu's not dropping down correctly....

and

Java HotSpot(TM) 64-Bit Server VM (build 17.0.5+9-LTS-191, mixed mode, sharing)

please update the JDK to the latest update release. Manjaro does have all up to date packages in its repo.

$ archlinux-java status
Available Java environments:
  java-11-openjdk
  java-17-openjdk (default)
  java-21-openjdk
  java-23-openjdk
$ java -version
openjdk version "17.0.13" 2024-10-15
OpenJDK Runtime Environment (build 17.0.13+11)
OpenJDK 64-Bit Server VM (build 17.0.13+11, mixed mode, sharing)

i think it is installed with netbeans-bin 24-1 manjaro AUR package

the arch user repo is a collection of user maintained build scripts. We can only support the artifacts you can find on the download page. If something is broken there - we can't fix it.

mbien avatar Dec 16 '24 16:12 mbien

Same issue here with JDK21 and macOS 15.1.1

hichamglia avatar Dec 16 '24 18:12 hichamglia

Guys, seriously, you are developers, how do you expect people to help you, if you don't provide basic information?I suspect, that search is working, you are just not seeing the result, that can be trivially be fixed (by you)

matthiasblaesing avatar Dec 16 '24 18:12 matthiasblaesing

What I mean is, could it be, that you get a search result and it looks like this:

grafik

Then, just pull open the result area:

grafik

I saw this a few times, but currently all instances work as they should.

matthiasblaesing avatar Dec 16 '24 21:12 matthiasblaesing

Ubuntu auto updated me yesterday to from NB23 to NB24. I had what appeared to be the exact same issue of no search results that I could see. I almost rolled back to ND23. Your suggestion of just pulling open the hidden results worked for me. Even after you told me where to look, it look me a bit to figure out where to drag.

salochin avatar Dec 18 '24 00:12 salochin

the search results panel probably needs a minimal width set so that it can't completely collapse. Usages/Refactoring doesn't seem to have the same problem - haven't checked the other inspection windows.

this is newest manjaro. there are other weird things maybe just in netbeans. menu's not dropping down correctly....

turns out this remark was a red herring if this issue is just about a panel splitter

mbien avatar Dec 18 '24 01:12 mbien

dev-build with proposed fix (https://github.com/apache/netbeans/pull/8088)

mbien avatar Dec 23 '24 20:12 mbien