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

Error detected while processing BufEnter Autocommands for "*": E495: No autocommand file name to substitute for "<afile>" #855

Open
cewood opened this issue Aug 4, 2024 · 0 comments

Comments

@cewood
Copy link

cewood commented Aug 4, 2024

Describe the bug:

Since version v4.9.10 (2716792) vim-polyglot itself generates the following error during startup.

Error detected while processing BufEnter Autocommands for "*":
E495: No autocommand file name to substitute for "<afile>"

I believe the issue is with vim-polyglot itself, by way of the error messages reported, as well as the diff of changes between the last working version (v4.9.9), and the first problematic version (v4.9.10).

v4.9.9...v4.9.10

To Reproduce:

Install any version from v4.9.10 upwards (Sep 15, 2020), and the error will be reported during startup.

The following is an extended version of the error from a debug log.

Executing BufEnter Autocommands for "*"
autocommand if &ft == "" && expand("<afile>") !~ g:ft_ignore_pat | call s:observe_filetype() | endif

Error detected while processing BufEnter Autocommands for "*":
E495: No autocommand file name to substitute for "<afile>"
Executing BufEnter Autocommands for "*"
autocommand lua require("trouble").action("on_win_enter")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant