-
Notifications
You must be signed in to change notification settings - Fork 409
Closed
Closed
Copy link
Labels
Description
Description
-
When having "vim.g.vimtex_quickfix_mode = 0" + autocommand for opening up Trouble on compilation failures + Compilation failure, errors pops in front of the window.
-
Error:
Error detected while processing function <SNR>69_callback_nvim_output[8]..<SNR>69_check_callback[4]..vimtex#compiler#callback:
line 49:
E121 Undefined variable: b:vimtex
-
I would like to not have my window blocked by this error, I have set Trouble (in quickfix mode) to pop up and show the compilation errors (Observation: Trouble indeed pops up, but only after after closing this window).
-
Options I did set:
vim.g.vimtex_syntax_conceal_disable = 1
vim.g.vimtex_view_method = 'zathura'
vim.g.vimtex_view_forward_search_on_start = 0
vim.g.vimtex_quickfix_mode = 0
- Autocommand I set for Trouble:
autocmd('User', {
pattern = 'VimtexEventCompileFailed',
callback = function()
require('trouble').open('quickfix')
end,
})
Steps to reproduce
- Set
vim.g.vimtex_quickfix_mode = 0 - Have trouble
- set the the autocommand I previously showed.
- Compile a tex file with syntactic errors.
Expected behavior
My window not get blocked by this unusual error.
Actual behavior
My window gets blocked by this unusual error.
Do you use a latexmkrc file?
Yes
VimtexInfo
The only thing I have in the file is `$pdf_mode = 4;`