-
Notifications
You must be signed in to change notification settings - Fork 17
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
Panic when using ripgrep output in the v8 codebase #58
Comments
Hmm, it looks like it is failing in the ziglyph unicode normalizing.
Thank you for reporting, I will look into this more |
Alright, it seems like part of the
One problematic file is Are you building zf from source? Or do you use it packaged from some repository? I'll make a fix to catch this case. If you are using it from one of the repos I'll make a quick patch release |
I also want to note that While zf does function as a general purpose fuzzy finder, it is specifically designed for filepath matching. Maybe another tool is better for filtering the output of |
The input is passed to normalizer.nfd. Previously it was assumed that the input was valid utf8. If the input contained invalid bytes, zf would panic and exit. This is a temporary workaround. A future commit will remove zyglyph entirely and this will no longer be an issue. Closes #58
I made a new release that contains this fix https://github.com/natecraddock/zf/releases/tag/0.9.1 |
@natecraddock I'm using the Homebrew package, looks like it's already got the new release. Just updated and the case above is working! Thanks for the quick fix! 🙏
I'll bear this in mind, have used fzf for ages but I was exploring other options. @natecraddock I've found another crash, this time when search for |
@doubledup Yes please report. I haven't personally experienced crashes with zf in over a year, so I'm always interested to know what might be broken. And just because you aren't using zf for a filepath doesn't mean I shouldn't fix it. I do want to support zf as a general-purpose fuzzy finder |
Using zf to filter ripgrep output in v8 exits with a panic & SIGABRT:
The text was updated successfully, but these errors were encountered: