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

Duplicate search results #247

Open
erikandersen opened this issue Nov 19, 2018 · 8 comments
Open

Duplicate search results #247

erikandersen opened this issue Nov 19, 2018 · 8 comments

Comments

@erikandersen
Copy link

If I enter a search term and the file is modified while glogg is searching, glogg starts the search from the beginning and the search results appear in duplicate.

image

Note the repeating line numbers after 255157

@gin-ahirsch
Copy link
Contributor

Do you get this with a build from master? This might have gotten fixed via 9f85093.

@erikandersen
Copy link
Author

erikandersen commented Nov 21, 2018 via email

@gin-ahirsch
Copy link
Contributor

That does not include the mentioned commit.
You will either have to build yourself or wait for #243 or #189, though the project seems to be rather inactive at the moment.

You could try an appveyor build artifact from @variar's fork https://github.com/variar/klogg, though I'm uncertain if it has already merged the fix: https://ci.appveyor.com/project/variar/klogg.

@ghost
Copy link

ghost commented Dec 20, 2018

@variar's fork does not include this commit. Also, his fork hasn't seen any activity since around the same time that this one has.

@variar
Copy link
Contributor

variar commented Jan 20, 2019

One of the reasons to start my own fork was to be able to make changes faster. Now after several years I understand why Nicolas doesn't react to issues and pull requests very fast.

Last night I've found a way to make initial indexing io-bound (and it becomes two times faster on my machine with clean fs cache, hint: memchr). Also it's time to rebuild klogg binaries with updated Qt version. So I'm going to look into current issues, try to resolve easy or very annoying ones and make a new release in February.

@variar
Copy link
Contributor

variar commented Jan 22, 2019

I've merged @gin-ahirsch commits to klogg (CI builds 19.01.0.273, links to binaries for different platforms are on main repo page).

Also I've updated #189 so latest master build artifacts for windows can be downloaded from https://ci.appveyor.com/project/nickbnf/glogg/builds/21795819/artifacts

Could you check if either of these builds works for you?

@kpkpkp
Copy link

kpkpkp commented May 22, 2019

I am seeing the same - I think it may be related to viewing very large files

@variar
Copy link
Contributor

variar commented Sep 4, 2019

I've investigated and fixed somewhat similar issue in variar#68 . In my case some completely unrelated lines appeared in search results. One possible cause for this issue could be not detecting that file has been changed in already indexed part. That way index gets messed up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants