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

User autocommands broken after commit 00ed2f1 #2166

Closed
clason opened this issue Sep 11, 2021 · 7 comments
Closed

User autocommands broken after commit 00ed2f1 #2166

clason opened this issue Sep 11, 2021 · 7 comments
Labels

Comments

@clason
Copy link
Contributor

clason commented Sep 11, 2021

Description

The latest commit 00ed2f1 broke user autocommands; specifically the line

autocmd User <buffer> VimtexEventInitPost call vimtex#syntax#core#init_post()

(removing the <buffer> avoids the error).

Steps to reproduce

Use the following mini.vim (to avoid interference from installed packages):

let rtp = $VIMRUNTIME
let packpath = $VIMRUNTIME .. '/site'
set nocompatible
let &runtimepath  = '~/.local/share/nvim/site/pack/packer/start/vimtex,' . &runtimepath
let &runtimepath .= ',~/.local/share/nvim/site/pack/packer/start/vimtex/after'
filetype plugin indent on
syntax enable
  1. nvim --clean -u min.vim test.tex
  2. :doautocmd User Foo

(These steps are pointless but minimal; they reproduce similar errors from the builtin LSP client and Telescope when opening tex buffers, for example.)

Actual behavior

Error detected while processing User Autocommands for "<buffer=1>":
E492: Not an editor command: VimtexEventInitPost call vimtex#syntax#core#init_post()

VimtexInfo

Vim version: NVIM v0.6.0-dev+249-g086631cd9
@clason clason added the bug label Sep 11, 2021
@storopoli
Copy link
Contributor

I can confirm that it broke both my mac nvim and linux nvim.

@mathjiajia
Copy link
Contributor

My UltiSinps is broken after this update.
After rolling back to vimtex-2.6, everything becomes fine.

@clason
Copy link
Contributor Author

clason commented Sep 11, 2021

Fixed indeed, thank you!

@lervag
Copy link
Owner

lervag commented Sep 11, 2021

Fixed now. I'm sorry for introducing the bug just before releasing v2.7. But I believe most people more or less follow the latest version from github.

@clason
Copy link
Contributor Author

clason commented Sep 11, 2021

Probably want to cut a quick v2.7.1 nevertheless?

@lervag
Copy link
Owner

lervag commented Sep 11, 2021

Fixed indeed, thank you!

Thanks for providing the useful and to the point issue description; and for noticing and reporting immediately!

@lervag lervag closed this as completed Sep 11, 2021
@lervag
Copy link
Owner

lervag commented Sep 11, 2021

Probably want to cut a quick v2.7.1 nevertheless?

Done.

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

No branches or pull requests

4 participants