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

Bug: assertion failed when using files picker #1706

Open
3 of 6 tasks
haoming-li-ling opened this issue Jan 11, 2025 · 2 comments
Open
3 of 6 tasks

Bug: assertion failed when using files picker #1706

haoming-li-ling opened this issue Jan 11, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@haoming-li-ling
Copy link

haoming-li-ling commented Jan 11, 2025

RTFM Checklist

  • I have searched exisiting issues / discussions
  • I have read the Wiki including the Advanced section
  • I have read man fzf / I am well versed in shell fzf

Operating system

Mac

Shell

fish

Neovim version (nvim --version)

v0.11.0-dev-1484+g9b7905df16

Fzf version (fzf --version)

0.57.0 (brew)

Output of :lua print(os.getenv('FZF_DEFAULT_OPTS'))

--color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8 --color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc --color=marker:#f5e0dc,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8 --cycle --height=90% --preview-window=wrap --marker="*"

Is the problem reproducible with mini.sh?

  • My issue is reproducible with mini.sh
  • My issue IS NOT reproducible with mini.sh
  • I have not tested with mini.sh (not relevant, requires LSP, Windows, etc)

Fzf-lua configuration

require('fzf-lua').setup({
})

Describe the bug / steps to reproduce

Enter a particular project. Trigger Fzflua files with a keybinding. Type in any number, 1-9, in the searchbox. The following error is shown inside the searchbox:
~/D/M/doltonius.squig.link/Assertion failed: (idx < glyph_cache.h.n_keys), function schar_get_adv, file grid.c, line 167.

Note that this is only observed in one particular directory.

It also only happens when the query starts with a number. If the first character is a letter, then entering numbers after that will not produce the error.

For some reason, mini.sh fails to run, it says nvim not found. Maybe because I am using asdf to manage nvim versions.

@haoming-li-ling haoming-li-ling added the bug Something isn't working label Jan 11, 2025
@ibhagwan
Copy link
Owner

Is the project where this happens public by any chance so I can test it myself?
Can you try with this after running :FzfLua profiles and select max-perf?

For some reason, mini.sh fails to run, it says nvim not found. Maybe because I am using asdf to manage nvim versions.

You can clone fzf-lua and then run:

NVIM=<nvim bin> ./scripts/mini.sh

@ibhagwan
Copy link
Owner

Can you also screenshot how this looks like? Might give me some details.

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

2 participants