ap / vim-css-color

Preview colours in source code while editing
http://www.vim.org/scripts/script.php?script_id=5056
MIT License
1.77k stars 78 forks source link

Erroring in java file #176

Open qxb3 opened 2 years ago

qxb3 commented 2 years ago

Error:

Error detected while processing BufNewFile Autocommands for "*.java"..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>6_SynSet[25]..script /data/data/com.
termux/files/usr/share/vim/vim90/syntax/java.vim[180]../data/data/com.termux/files/home/.vim/plugged/vim-css-color/after/syntax/html.vim[2]..function css_color#init[10]..css_color#
enable[15]..CursorMoved Autocommands for "<buffer=1>"..function <SNR>89_parse_screen[4]..<SNR>89_create_syn_match[20]..BufNewFile Autocommands for "*.java"..FileType Autocommands f
or "*"..Syntax Autocommands for "*"..function <SNR>6_SynSet[25]..script /data/data/com.termux/files/usr/share/vim/vim90/syntax/java.vim[180]../data/data/com.termux/files/home/.vim/
plugged/vim-css-color/after/syntax/html.vim[2]..function css_color#init[10]..css_color#enable[15]..CursorMoved Autocommands for "<buffer=1>"..function <SNR>89_parse_screen[4]..<SNR
>89_create_syn_match:
line   20:
E605: Exception not caught: css_color: create_syn_match invoked on bad match data

any idea how to fix it?

ap commented 2 years ago

Strange. This looks similar to #174. Not sure what’s going on just yet.

lincolngondin commented 1 year ago

I getting the same error, first when i create a new .java file:

Error detected while processing BufNewFile Autocommands for "*.java"..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>15_SynSet[25]..s cript C:/Program Files (x86)/Vim/vim90/syntax/java.vim[180]..C:/Users/linco/vimfiles/bundle/vim-css-color/after/syntax/html.vim[2]..function css_color#init[10]. .css_color#enable[15]..CursorMoved Autocommands for "<buffer=9>"..function <SNR>155_parse_screen[4]..<SNR>155_create_syn_match[20]..BufNewFile Autocommands for "*.java"..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>15_SynSet[25]..script C:/Program Files (x86)/Vim/vim90/syntax/java.vim[180]. .C:/Users/linco/vimfiles/bundle/vim-css-color/after/syntax/html.vim[2]..function css_color#init[10]..css_color#enable[15]..CursorMoved Autocommands for "<buffer =9>"..function <SNR>155_parse_screen[4]..<SNR>155_create_syn_match: line 20: E605: Exception not caught: css_color: create_syn_match invoked on bad match data

and when i try to change an .java file too:

Error detected while processing CursorMoved Autocommands for "<buffer=8>"..function <SNR>155_parse_screen[4]..<SNR>155_create_syn_match[20]..CursorMoved Autocom mands for "<buffer=8>"..function <SNR>155_parse_screen[4]..<SNR>155_create_syn_match: line 20: E605: Exception not caught: css_color: create_syn_match invoked on bad match data

seems to happen only on java files.