Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sporadic issue : Search results : Incomplete search results are shown #992

Open
raghucssit opened this issue Aug 3, 2023 · 4 comments
Open
Labels
bug Something isn't working

Comments

@raghucssit
Copy link
Contributor

Bug type : Sporadic
Eclipse version : 2023-09 (4.29)
Build id: I20230802-1800
OS : Linux

Steps to reproduce:

  1. Import the attached project. p60.zip
  2. Open File Search then search for text some
  3. Check the search results in Search View. Mostly for the first time results are complete.
  4. Clear All using "Search View" toolbar and hit Refresh next to it. Try this 4-5 times quickly.
  5. It can be reproduced only by clicking Refresh in the Search View tool bar couple of time instantly.
  6. Now observe the results in step 4/5 sometimes some results are missing. Please refer the attached images.

In development environment when I lauch a 'run-time' in debug mode this is very frequent. Even the first time search results are incomplete.
search-issue-missing-items
search-issue-missing-items-4-6

Below is the screenshot of the first serach result from run-time debug.
search-issue-missing-items-run-time-debug

@trancexpress
Copy link
Contributor

Some viewer update problem? I see the total matches count is consistent...

@merks
Copy link
Contributor

merks commented Aug 4, 2023

I’ve seen this problem too on Windows but it’s hard to reproduce. I thought maybe it was related to multi thread search.

@jukzi jukzi added the bug Something isn't working label Aug 18, 2023
@jukzi
Copy link
Contributor

jukzi commented Aug 18, 2023

I thought maybe it was related to multi thread search.

That could be - It's not deterministic which thread handles which file . i'd be happy to help if someone finds the bug.
may be somewhere near org.eclipse.search.internal.ui.text.FileSearchQuery.TextSearchResultCollector.endReporting()

@nunnrlc
Copy link

nunnrlc commented Jan 26, 2024

I get it frequently on large PHP projects. Possibly the search seems to miss listing hits in files I have open editors for.

If I pull the search results back from the "Show previous searches" history menu at the top right of the search pane, the listing shows correctly (without re-running the search).

I see it reported over here too: https://bugs.eclipse.org/bugs/show_bug.cgi?id=581802
Daniil Terentev there says:

I can add that if you change view from tree to list and then back to tree display of search results becomes correct.

My set up...
Version: 2023-12 (4.30.0)
Build id: 20231201-2043
Windows 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants