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: quickfix extension crashes on % #1241

Open
2 tasks done
harriott opened this issue May 20, 2024 · 0 comments
Open
2 tasks done

Bug: quickfix extension crashes on % #1241

harriott opened this issue May 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@harriott
Copy link

Self Checks

  • I'm using the latest lualine.
  • I didn't find the issue in existing issues or PRs.

How to reproduce the problem

with quickfix extension enabled, vimgrep for '%' then try to open quickfix

Expected behaviour

Nvim's quickfix window opens normally.

Actual behaviour

See many instances of this error report:

Error executing vim.schedule lua callback: ...vim/plugged/lualine.nvim/lua/lualine/utils/nvim_opts.lua:77: E539: Illegal character </>
stack traceback:
[C]: in function 'nvim_win_set_option'
...vim/plugged/lualine.nvim/lua/lualine/utils/nvim_opts.lua:77: in function 'setter_fn'
...vim/plugged/lualine.nvim/lua/lualine/utils/nvim_opts.lua:50: in function 'set_opt'
...vim/plugged/lualine.nvim/lua/lualine/utils/nvim_opts.lua:74: in function 'set'
...e/.local/share/nvim/plugged/lualine.nvim/lua/lualine.lua:432: in function 'refresh'
...e/.local/share/nvim/plugged/lualine.nvim/lua/lualine.lua:353: in function <...e/.local/share/nvim/plugged/lualine.nvim/lua/lualine.lua:352>
Press ENTER or type command to continue

- requires many Enters...

Minimal config to reproduce the issue

call plug#begin("/home/jo/nvim_lualine/.local/share/nvim/plugged")
Plug 'nvim-lualine/lualine.nvim'
call plug#end()
PlugUpdate

lua << END
require'lualine'.setup {
  extensions = {'quickfix',},
}
END

" quickfix extension fails on vimgrep including '%'
" -------------------------------------------------
edit ~/percent
normal xi%
write
vimgrep /%/ %
cwindow
" now hit Enter to see many instances of the error report

Additional information

Comment on functionality of nvim_isolated_conf.sh:
Could be helpful to include PlugUpdate up there (as I have) with advice to comment it out once done.
I only understood that your script wasn't faulty after making my own vim-plug minimal install.

@harriott harriott added the bug Something isn't working label May 20, 2024
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

1 participant