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 BufNewFile Autocommands for "*.java". #866

Open
tsuji-riya opened this issue Feb 13, 2025 · 0 comments
Open

Comments

@tsuji-riya
Copy link

Does this bug happen when you install plugin without vim-polyglot?
yes.

Describe the bug:
When I open 'vim Main.java', vim says

"Main.java" [New]
Error detected while processing BufNewFile Autocommands for "*.java"..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>11_SynSet[
25]..script /usr/share/vim/vim91/syntax/java.vim:
line  405:
E28: No such highlight group name: markdownId markdownLineStart markdownH1 markdownH2 markdownHeadingRule markdownRule markdownCode markdownCodeBlock mark
downIdDeclaration
Press ENTER or type command to continue

To Reproduce:
Device: MacBook 2020 M1
Vim version: 9.1.754

The ~/.vim/vimrc file is

set laststatus=2

set belloff=all

set expandtab
set tabstop=2
set shiftwidth=2

set nocompatible

hi Comment ctermfg=gray

call plug#begin('~/.vim/plugged')

Plug 'sheerun/vim-polyglot'
Plug 'itchyny/lightline.vim'

call plug#end()

After editing, I do ':PlugInstall' and $ vim Main.java

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