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

Bad interaction between vim-css-color, sheerun/vim-polyglot, and modelines #117

Open ssokolow opened 4 years ago

ssokolow commented 4 years ago

I have a .css.jinja2 file (part of a site using a homegrown static site generator) with this line at the bottom:

{# vim: set ft=css noexpandtab : #}

As soon as I enable this to my .vimrc...

" Colourize red and #00f but only load it in file formats where I'd want it
Plug 'ap/vim-css-color', { 'for': ['css', 'vim'] }

...it starts applying the jinja syntax colourization that the modeline was supposed to override, despite still saying css in my status line, but manually running :set ft=css gets everything working as expected.

With all my other plugins commented out, the problem goes away but uncommenting Plug 'sheerun/vim-polyglot' brings it back again.

In case it's relevant to reproducing the problem, I'm running:

I'm not sure what other details would be useful to you.

ap commented 4 years ago

What is &syntax set to at each point?

ssokolow commented 4 years ago

css both before and after the :set ft=css that gets the colors working after the modeline didn't. :set syntax=css will also have the same effect.

ap commented 4 years ago

...it starts applying the jinja syntax colourization that the modeline was supposed to override,

Does it load both the jinja and the css syntax, or just the jinja syntax?

but manually running :set ft=css gets everything working as expected.

You mean doing that without the modeline?

ssokolow commented 4 years ago

Does it load both the jinja and the css syntax, or just the jinja syntax?

Both, apparently, given that putting <style> at the top of the file causes everything to colorize as expected.

You mean doing that without the modeline?

I mean that, whether or not I have set ft=css in my modeline, if both vim-css-color and vim-polyglot are loaded, I have to manually type :set ft=css to get Vim to actually colorize my .css.jinja2 file while, if either one but not both is loaded, the modeline behaves as expected.

How it loads with vim-css-color and vim-polyglot:

before

What it looks like if I then type :set ft=css or restart Vim with one of the two plugins disabled:

after

Note that ALE is putting CSS warnings and errors in the gutter even before the :set ft=css or :set syntax=css to get the colors fixed.

ap commented 4 years ago

If you take away the for directive to vim-plug when loading CSS Color, does it then work right?

I.e. make the line just

Plug 'ap/vim-css-color'
ssokolow commented 4 years ago

No apparent change.

ap commented 4 years ago

Does making that change affect the order of entries you get from :scriptnames?

ap commented 4 years ago

(Basically my understanding is that there are three layers of on-demand loading going on, and their interaction is not working out and my working assumption is that it’s the interaction between vim-plug and Polyglot that’s mainly at fault, not CSS Color. After all, once you get the at-load-time timing out of the way and you :set ft=css manually, it then works as intended – and it’s not CSS Color manipulating the loading of plugins, it’s just coming along for the ride, and so presumably it’s the other plugins that aren’t doing an entirely correct job of ensuring the order of events necessary for CSS Color to work correctly. But that’s just a working hypothesis… I may well be wrong, so my assumptions need debugging first.)

ssokolow commented 4 years ago

No change.

I commented out every Plug line except vim-polyglot and vim-css-color, started up a new vim on the CSS file, saved the output of :scriptnames, then removed the for, repeated the process, and diffed them. Identical output.

I then tried reversing the order of the two Plug directives. That caused a lot of swapping around, but still didn't change the symptoms.

ap commented 4 years ago

Can you attach the log for that (with just the two Plug lines left)?

ssokolow commented 4 years ago

Here you go. The ~/.profile_repo/... stuff is because my ~/.vim is a symlink to ~/.profile_repo/home/.vim/

  1: /usr/share/vim/vimrc
  2: /usr/share/vim/vim81/debian.vim
  3: /usr/share/vim/vim81/syntax/syntax.vim
  4: /usr/share/vim/vim81/syntax/synload.vim
  5: /usr/share/vim/vim81/syntax/syncolor.vim
  6: /usr/share/vim/vim81/filetype.vim
  7: ~/.profile_repo/home/.vim/ftdetect/all.vim
  8: /usr/share/vim/vim81/menu.vim
  9: /usr/share/vim/vim81/lang/menu_en_gb.latin1.vim
 10: /usr/share/vim/vim81/lang/menu_en_gb.utf-8.vim
 11: /usr/share/vim/vim81/autoload/paste.vim
 12: ~/.profile_repo/home/.vim/vimrc
 13: /usr/share/vim/vim81/ftplugin.vim
 14: /usr/share/vim/vim81/indent.vim
 15: /usr/share/vim/vim81/syntax/nosyntax.vim
 16: ~/.profile_repo/home/.vim/colors/default_256_fixed.vim
 17: ~/.profile_repo/home/.vim/autoload/plug.vim
 18: /usr/share/vim/vim81/ftoff.vim
 19: ~/.profile_repo/home/.vim/plugged/vim-polyglot/ftdetect/polyglot.vim
 20: ~/.profile_repo/home/.vim/plugin/creamStatus.vim
 21: /usr/share/vim/vim81/plugin/getscriptPlugin.vim
 22: /usr/share/vim/vim81/plugin/gzip.vim
 23: /usr/share/vim/vim81/plugin/logiPat.vim
 24: /usr/share/vim/vim81/plugin/manpager.vim
 25: /usr/share/vim/vim81/plugin/matchparen.vim
 26: /usr/share/vim/vim81/plugin/netrwPlugin.vim
 27: /usr/share/vim/vim81/plugin/rrhelper.vim
 28: /usr/share/vim/vim81/plugin/spellfile.vim
 29: /usr/share/vim/vim81/plugin/tarPlugin.vim
 30: /usr/share/vim/vim81/plugin/tohtml.vim
 31: /usr/share/vim/vim81/plugin/vimballPlugin.vim
 32: /usr/share/vim/vim81/plugin/zipPlugin.vim
 33: /usr/share/vim/gvimrc
 34: ~/.profile_repo/home/.vim/gvimrc
 35: /usr/share/vim/vim81/scripts.vim
 36: ~/.profile_repo/home/.vim/plugged/vim-polyglot/indent/jinja.vim
 37: ~/.profile_repo/home/.vim/plugged/vim-polyglot/indent/html.vim
 38: ~/.profile_repo/home/.vim/plugged/vim-polyglot/indent/javascript.vim
 39: /usr/share/vim/vim81/indent/javascript.vim
 40: ~/.profile_repo/home/.vim/plugged/vim-polyglot/after/indent/javascript.vim
 41: /usr/share/vim/vim81/indent/html.vim
 42: ~/.profile_repo/home/.vim/plugged/vim-polyglot/syntax/jinja.vim
 43: ~/.profile_repo/home/.vim/plugged/vim-polyglot/syntax/html.vim
 44: /usr/share/vim/vim81/syntax/html.vim
 45: ~/.profile_repo/home/.vim/plugged/vim-polyglot/syntax/javascript.vim
 46: /usr/share/vim/vim81/syntax/javascript.vim
 47: ~/.profile_repo/home/.vim/plugged/vim-polyglot/after/syntax/javascript.vim
 48: ~/.profile_repo/home/.vim/plugged/vim-polyglot/after/syntax/jsx_pretty.vim
 49: ~/.profile_repo/home/.vim/plugged/vim-css-color/after/syntax/javascript.vim
 50: ~/.profile_repo/home/.vim/plugged/vim-css-color/autoload/css_color.vim
 51: /usr/share/vim/vim81/ftplugin/css.vim
 52: /usr/share/vim/vim81/indent/css.vim
 53: /usr/share/vim/vim81/syntax/css.vim
 54: ~/.profile_repo/home/.vim/plugged/vim-css-color/after/syntax/css.vim
 55: ~/.profile_repo/home/.vim/plugged/vim-css-color/syntax/colornames/extended.vim
 56: ~/.profile_repo/home/.vim/plugged/vim-css-color/syntax/colornames/basic.vim
 57: /usr/share/vim/vim81/syntax/vb.vim
 58: ~/.profile_repo/home/.vim/plugged/vim-polyglot/after/syntax/html.vim
 59: ~/.profile_repo/home/.vim/plugged/vim-css-color/after/syntax/html.vim
ap commented 4 years ago

I assume up to line 50 is before the :set ft=css and line 51 and on is after?

ssokolow commented 4 years ago

Sorry for the delayed response. You got buried under a pile of distractions and I only just remembered that you were waiting on me rather than the other way around today.

To answer your question, no. The whole thing is prior to :set ft=css and no new lines get added by :set ft=css.

ap commented 4 years ago

Scratching my head…

I guess I have to try replicating your issue myself to get anywhere.

danoost commented 2 years ago

Hi all. Apologies for bumping a very old issue, but I've come across it myself using the Vim 8 plugin manager and an .inc file, which gets detected as PHP. The modeline is # vim: syntax=sh, and the issue can be replicated with a .inc file containing only the modeline. The only plugins loaded are this and vim-polyglot. The output of :scriptnames is below.

In my case, the sh-style syntax highlighting appears just fine, but a large error message appears on load. I've pasted that below as well.

  1: /usr/share/vim/vimrc                                                                                                                 
  2: /usr/share/vim/vim82/debian.vim
  3: ~/.vimrc
  4: /usr/share/vim/vim82/syntax/syntax.vim
  5: /usr/share/vim/vim82/syntax/synload.vim
  6: /usr/share/vim/vim82/syntax/syncolor.vim
  7: /usr/share/vim/vim82/filetype.vim
  8: /usr/share/vim/vim82/ftplugin.vim
  9: /usr/share/vim/vim82/indent.vim
 10: /usr/share/vim/vim82/plugin/getscriptPlugin.vim
 11: /usr/share/vim/vim82/plugin/gzip.vim
 12: /usr/share/vim/vim82/plugin/logiPat.vim
 13: /usr/share/vim/vim82/plugin/manpager.vim
 14: /usr/share/vim/vim82/plugin/matchparen.vim
 15: /usr/share/vim/vim82/plugin/netrwPlugin.vim
 16: /usr/share/vim/vim82/plugin/rrhelper.vim
 17: /usr/share/vim/vim82/plugin/spellfile.vim
 18: /usr/share/vim/vim82/plugin/tarPlugin.vim
 19: /usr/share/vim/vim82/plugin/tohtml.vim
 20: /usr/share/vim/vim82/plugin/vimballPlugin.vim
 21: /usr/share/vim/vim82/plugin/zipPlugin.vim
 22: ~/.vim/pack/ansible-managed/start/vim-polyglot/plugin/polyglot.vim
 23: ~/.vim/pack/ansible-managed/start/vim-polyglot/autoload/polyglot/init.vim
 24: ~/.vim/pack/ansible-managed/start/vim-polyglot/filetype.vim
 25: ~/.vim/pack/ansible-managed/start/vim-polyglot/ftdetect/polyglot.vim
 26: ~/.vim/pack/ansible-managed/start/vim-polyglot/extras/filetype.vim
 27: ~/.vim/pack/ansible-managed/start/vim-polyglot/syntax/php.vim
 28: ~/.vim/pack/ansible-managed/start/vim-polyglot/syntax/html.vim
 29: /usr/share/vim/vim82/syntax/html.vim
 30: ~/.vim/pack/ansible-managed/start/vim-polyglot/syntax/javascript.vim
 31: ~/.vim/pack/ansible-managed/start/vim-polyglot/extras/jsdoc.vim
 32: /usr/share/vim/vim82/syntax/javascript.vim
 33: ~/.vim/pack/ansible-managed/start/vim-polyglot/after/syntax/javascript.vim
 34: ~/.vim/pack/ansible-managed/start/vim-polyglot/after/syntax/jsx.vim
 35: ~/.vim/pack/ansible-managed/start/vim-polyglot/after/syntax/jsx_pretty.vim
 36: ~/.vim/pack/ansible-managed/start/vim-css-color/after/syntax/javascript.vim
 37: ~/.vim/pack/ansible-managed/start/vim-css-color/autoload/css_color.vim
 38: ~/.vim/pack/ansible-managed/start/vim-polyglot/syntax/sh.vim
 39: /usr/share/vim/vim82/syntax/sh.vim
 40: ~/.vim/pack/ansible-managed/start/vim-css-color/after/syntax/sh.vim
 41: ~/.vim/pack/ansible-managed/start/vim-css-color/syntax/colornames/extended.vim
 42: ~/.vim/pack/ansible-managed/start/vim-css-color/syntax/colornames/basic.vim
 43: ~/.vim/pack/ansible-managed/start/vim-polyglot/syntax/vb.vim
 44: /usr/share/vim/vim82/syntax/vb.vim
 45: ~/.vim/pack/ansible-managed/start/vim-polyglot/syntax/css.vim
 46: /usr/share/vim/vim82/syntax/css.vim
 47: ~/.vim/pack/ansible-managed/start/vim-css-color/after/syntax/css.vim
 48: ~/.vim/pack/ansible-managed/start/vim-polyglot/after/syntax/html.vim
 49: ~/.vim/pack/ansible-managed/start/vim-css-color/after/syntax/html.vim
 50: ~/.vim/pack/ansible-managed/start/vim-polyglot/syntax/sql.vim
 51: ~/.vim/pack/ansible-managed/start/vim-polyglot/syntax/mysql.vim
 52: /usr/share/vim/vim82/syntax/sql.vim
 53: /usr/share/vim/vim82/syntax/php.vim
 54: ~/.vim/pack/ansible-managed/start/vim-polyglot/after/syntax/php/graphql.vim
 55: ~/.vim/pack/ansible-managed/start/vim-polyglot/syntax/graphql.vim
 56: ~/.vim/pack/ansible-managed/start/vim-css-color/after/syntax/php.vim
 57: /usr/share/vim/vim82/ftplugin/php.vim
 58: ~/.vim/pack/ansible-managed/start/vim-polyglot/ftplugin/html.vim
 59: /usr/share/vim/vim82/ftplugin/html.vim
 60: ~/.vim/pack/ansible-managed/start/vim-polyglot/autoload/htmlcomplete.vim
 61: /usr/share/vim/vim82/autoload/htmlcomplete.vim
 62: /usr/share/vim/vim82/indent/php.vim
 63: ~/.vim/pack/ansible-managed/start/vim-polyglot/after/indent/php.vim
 64: ~/.vim/pack/ansible-managed/start/vim-polyglot/indent/graphql.vim
 65: ~/.vim/pack/ansible-managed/start/vim-polyglot/autoload/polyglot/ft.vim
 66: ~/.vim/pack/ansible-managed/start/vim-polyglot/autoload/polyglot/sleuth.vim
"/var/tmp/sr1.akl02-new-forwardXXgZowaP.inc" 52L, 1874B
Error detected while processing BufRead Autocommands for "*.inc"..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>5_SynSet[25]..sc
ript /home/danoost/.vim/pack/ansible-managed/start/vim-polyglot/syntax/php.vim[115]../usr/share/vim/vim82/syntax/html.vim[210]../home/danoost/.vim/pack/ansi
ble-managed/start/vim-css-color/after/syntax/javascript.vim[10]..function css_color#init[10]..css_color#enable[15]..modelines[52]..Syntax Autocommands for "
*"..function <SNR>5_SynSet[25]..script /home/danoost/.vim/pack/ansible-managed/start/vim-css-color/after/syntax/sh.vim[2]..function css_color#init[10]..css_
color#enable:
line    3:
E12: Command not allowed from exrc/vimrc in current dir or tag search: ^Iaugroup CSSColor
line    4:
E12: Command not allowed from exrc/vimrc in current dir or tag search: ^I^Iautocmd! * <buffer>
line    8:
E12: Command not allowed from exrc/vimrc in current dir or tag search: ^I^I^Iautocmd CursorMoved,CursorMovedI <buffer> call s:parse_screen() | call s:create
_matches()
line    9:
E12: Command not allowed from exrc/vimrc in current dir or tag search: ^I^I^Iautocmd BufWinEnter <buffer> call s:create_matches()
line   10:
E12: Command not allowed from exrc/vimrc in current dir or tag search: ^I^I^Iautocmd BufWinLeave <buffer> call s:clear_matches()
line   12:
E12: Command not allowed from exrc/vimrc in current dir or tag search: ^I^Iautocmd ColorScheme <buffer> call css_color#reinit()
line   13:
E12: Command not allowed from exrc/vimrc in current dir or tag search: ^Iaugroup END
line    3:
E12: Command not allowed from exrc/vimrc in current dir or tag search: ^Iaugroup CSSColor
line    4:
E12: Command not allowed from exrc/vimrc in current dir or tag search: ^I^Iautocmd! * <buffer>
line    8:
E12: Command not allowed from exrc/vimrc in current dir or tag search: ^I^I^Iautocmd CursorMoved,CursorMovedI <buffer> call s:parse_screen() | call s:create
_matches()
line    9:
E12: Command not allowed from exrc/vimrc in current dir or tag search: ^I^I^Iautocmd BufWinEnter <buffer> call s:create_matches()
line   10:
E12: Command not allowed from exrc/vimrc in current dir or tag search: ^I^I^Iautocmd BufWinLeave <buffer> call s:clear_matches()
line   12:
E12: Command not allowed from exrc/vimrc in current dir or tag search: ^I^Iautocmd ColorScheme <buffer> call css_color#reinit()
line   13:
E12: Command not allowed from exrc/vimrc in current dir or tag search: ^Iaugroup END
riffraff commented 7 months ago

I also see this, some additional info in case it might help: I experience the errors in an extensionless script with a vim: syntax=ruby modeline.

scriptnames for me is

  1: /Applications/MacVim.app/Contents/Resources/vim/vimrc
  2: ~/.vimrc
  3: /Applications/MacVim.app/Contents/Resources/vim/runtime/ftoff.vim
  4: ~/.vimrc.before
  5: ~/.vim/autoload/plug.vim
  6: /Applications/MacVim.app/Contents/Resources/vim/runtime/filetype.vim
  7: ~/.vim/plugged/vim-fugitive/ftdetect/fugitive.vim
  8: ~/.vim/plugged/typescript-vim/ftdetect/typescript.vim
  9: ~/.vim/plugged/vim-jsx-typescript/ftdetect/typescript.vim
 10: ~/.vim/plugged/vim-cucumber/ftdetect/cucumber.vim
 11: ~/.vim/plugged/vim-slim/ftdetect/slim.vim
 12: ~/.vim/plugged/vim-beancount/ftdetect/beancount.vim
 13: /Applications/MacVim.app/Contents/Resources/vim/runtime/menu.vim
 14: /Applications/MacVim.app/Contents/Resources/vim/runtime/autoload/paste.vim
 15: /Applications/MacVim.app/Contents/Resources/vim/runtime/ftplugin.vim
 16: /Applications/MacVim.app/Contents/Resources/vim/runtime/indent.vim
 17: /Applications/MacVim.app/Contents/Resources/vim/runtime/syntax/syntax.vim
 18: /Applications/MacVim.app/Contents/Resources/vim/runtime/syntax/synload.vim
 19: /Applications/MacVim.app/Contents/Resources/vim/runtime/syntax/syncolor.vim
 20: ~/.vimrc.after
 21: /Applications/MacVim.app/Contents/Resources/vim/runtime/syntax/nosyntax.vim
 22: ~/.vim/plugged/vim-airline/autoload/airline/parts.vim
 23: ~/.vim/plugged/vim-airline/autoload/airline/section.vim
 24: ~/.vim/plugged/vim-airline/autoload/airline/init.vim
 25: ~/.vim/plugged/vim-airline/autoload/airline/formatter/short_path.vim
 26: ~/.vim/plugged/vim-matchit/plugin/matchit.vim
 27: ~/.vim/plugged/vim-airline/plugin/airline.vim
 28: ~/.vim/plugged/vim-airline/autoload/airline/util.vim
 29: ~/.vim/plugged/vim-projectionist/plugin/projectionist.vim
 30: ~/.vim/plugged/vim-sensible/plugin/sensible.vim
 31: /Applications/MacVim.app/Contents/Resources/vim/runtime/ftplugin/man.vim
 32: ~/.vim/plugged/vim-surround/plugin/surround.vim
 33: ~/.vim/plugged/vim-fugitive/plugin/fugitive.vim
 34: ~/.vim/plugged/vim-rhubarb/plugin/rhubarb.vim
 35: ~/.vim/plugged/vim-rails/plugin/rails.vim
 36: ~/.vim/plugged/vim-bundler/plugin/bundler.vim
 37: ~/.vim/plugged/vim-rake/plugin/rake.vim
 38: ~/.vim/plugged/ale/plugin/ale.vim
 39: ~/.vim/plugged/ale/autoload/ale/balloon.vim
 40: ~/.vim/plugged/ale/autoload/ale/code_action.vim
 41: ~/.vim/plugged/ale/autoload/ale/events.vim
 42: ~/.vim/plugged/nerdtree/plugin/NERD_tree.vim
 43: ~/.vim/plugged/nerdtree/autoload/nerdtree.vim
 44: ~/.vim/plugged/nerdtree/lib/nerdtree/path.vim
 45: ~/.vim/plugged/nerdtree/lib/nerdtree/menu_controller.vim
 46: ~/.vim/plugged/nerdtree/lib/nerdtree/menu_item.vim
 47: ~/.vim/plugged/nerdtree/lib/nerdtree/key_map.vim
 48: ~/.vim/plugged/nerdtree/lib/nerdtree/bookmark.vim
 49: ~/.vim/plugged/nerdtree/lib/nerdtree/tree_file_node.vim
 50: ~/.vim/plugged/nerdtree/lib/nerdtree/tree_dir_node.vim
 51: ~/.vim/plugged/nerdtree/lib/nerdtree/opener.vim
 52: ~/.vim/plugged/nerdtree/lib/nerdtree/creator.vim
 53: ~/.vim/plugged/nerdtree/lib/nerdtree/flag_set.vim
 54: ~/.vim/plugged/nerdtree/lib/nerdtree/nerdtree.vim
 55: ~/.vim/plugged/nerdtree/lib/nerdtree/ui.vim
 56: ~/.vim/plugged/nerdtree/lib/nerdtree/event.vim
 57: ~/.vim/plugged/nerdtree/lib/nerdtree/notifier.vim
 58: ~/.vim/plugged/nerdtree/autoload/nerdtree/ui_glue.vim
 59: ~/.vim/plugged/nerdtree/nerdtree_plugin/exec_menuitem.vim
 60: ~/.vim/plugged/nerdtree/nerdtree_plugin/fs_menu.vim
 61: ~/.vim/plugged/nerdtree/nerdtree_plugin/vcs.vim
 62: ~/.vim/plugged/vim-devicons/nerdtree_plugin/webdevicons.vim
 63: ~/.vim/plugged/fzf.vim/plugin/fzf.vim
 64: ~/.vim/plugged/ag.vim/plugin/ag.vim
 65: ~/.vim/plugged/vim-gitgutter/plugin/gitgutter.vim
 66: ~/.vim/plugged/vim-gitgutter/autoload/gitgutter/utility.vim
 67: ~/.vim/plugged/vim-gitgutter/autoload/gitgutter/highlight.vim
 68: ~/.vim/plugged/vim-multiple-cursors/plugin/multiple_cursors.vim
 69: ~/.vim/plugged/supertab/plugin/supertab.vim
 70: ~/.vim/plugged/vim-sneak/plugin/sneak.vim
 71: ~/.vim/plugged/vim-test/plugin/test.vim
 72: ~/.vim/plugged/vim-test/autoload/test.vim
 73: ~/.vim/plugged/copilot.vim/plugin/copilot.vim
 74: ~/.vim/plugged/copilot.vim/autoload/copilot.vim
 75: ~/.vim/plugged/vim-devicons/plugin/webdevicons.vim
 76: ~/.vim/plugged/vim-airline/autoload/airline.vim
 77: ~/.vim/plugged/vim-which-key/plugin/which_key.vim
 78: /Applications/MacVim.app/Contents/Resources/vim/runtime/plugin/getscriptPlugin.vim
 79: /Applications/MacVim.app/Contents/Resources/vim/runtime/plugin/gzip.vim
 80: /Applications/MacVim.app/Contents/Resources/vim/runtime/plugin/logiPat.vim
 81: /Applications/MacVim.app/Contents/Resources/vim/runtime/plugin/manpager.vim
 82: /Applications/MacVim.app/Contents/Resources/vim/runtime/plugin/matchparen.vim
 83: /Applications/MacVim.app/Contents/Resources/vim/runtime/plugin/netrwPlugin.vim
 84: /Applications/MacVim.app/Contents/Resources/vim/runtime/plugin/rrhelper.vim
 85: /Applications/MacVim.app/Contents/Resources/vim/runtime/plugin/spellfile.vim
 86: /Applications/MacVim.app/Contents/Resources/vim/runtime/plugin/tarPlugin.vim
 87: /Applications/MacVim.app/Contents/Resources/vim/runtime/plugin/tohtml.vim
 88: /Applications/MacVim.app/Contents/Resources/vim/runtime/plugin/vimballPlugin.vim
 89: /Applications/MacVim.app/Contents/Resources/vim/runtime/plugin/zipPlugin.vim
 90: /Applications/MacVim.app/Contents/Resources/vim/gvimrc
 91: /Applications/MacVim.app/Contents/Resources/vim/runtime/colors/lists/default.vim
 92: /Applications/MacVim.app/Contents/Resources/vim/runtime/colors/macvim.vim
 93: ~/.vim/plugged/vim-airline/autoload/airline/extensions.vim
 94: ~/.vim/plugged/vim-airline/autoload/airline/extensions/quickfix.vim
 95: ~/.vim/plugged/vim-airline/autoload/airline/extensions/netrw.vim
 96: ~/.vim/plugged/vim-airline/autoload/airline/extensions/term.vim
 97: ~/.vim/plugged/vim-airline/autoload/airline/extensions/hunks.vim
 98: ~/.vim/plugged/vim-airline/autoload/airline/extensions/branch.vim
 99: ~/.vim/plugged/vim-airline/autoload/airline/extensions/fugitiveline.vim
100: ~/.vim/plugged/vim-airline/autoload/airline/extensions/ale.vim
101: ~/.vim/plugged/vim-airline/autoload/airline/extensions/whitespace.vim
102: ~/.vim/plugged/vim-airline/autoload/airline/extensions/po.vim
103: ~/.vim/plugged/vim-airline/autoload/airline/extensions/wordcount.vim
104: ~/.vim/plugged/vim-airline/autoload/airline/extensions/keymap.vim
105: ~/.vim/plugged/vim-airline/autoload/airline/extensions/searchcount.vim
106: ~/.vim/plugged/vim-airline/autoload/airline/highlighter.vim
107: ~/.vim/plugged/vim-airline/autoload/airline/themes/dark.vim
108: ~/.vim/plugged/vim-airline/autoload/airline/themes.vim
109: ~/.vim/plugged/vim-airline/autoload/airline/builder.vim
110: ~/.vim/plugged/vim-airline/autoload/airline/extensions/default.vim
111: ~/.gvimrc
112: ~/.gvimrc.after
113: ~/.vim/plugged/copilot.vim/autoload/copilot/agent.vim
114: ~/.vim/plugged/copilot.vim/autoload/copilot/job.vim
115: /Applications/MacVim.app/Contents/Resources/vim/runtime/ftplugin/ruby.vim
116: ~/.vim/plugged/vim-rails/after/ftplugin/ruby/rails.vim
117: ~/.vim/plugged/vim-rails/autoload/rails.vim
118: /Applications/MacVim.app/Contents/Resources/vim/runtime/indent/ruby.vim
119: /Applications/MacVim.app/Contents/Resources/vim/runtime/syntax/ruby.vim
120: ~/.vim/plugged/vim-rails/after/syntax/ruby/rails.vim
121: ~/.vim/plugged/vim-css-color/after/syntax/ruby.vim
122: ~/.vim/plugged/vim-css-color/autoload/css_color.vim
123: ~/.vim/plugged/vim-fugitive/autoload/fugitive.vim
124: ~/.vim/plugged/vim-projectionist/autoload/projectionist.vim
125: ~/.vim/plugged/vim-rails/compiler/rails.vim
126: /Applications/MacVim.app/Contents/Resources/vim/runtime/compiler/rake.vim
127: ~/.vim/plugged/ale/autoload/ale.vim
128: ~/.vim/plugged/ale/autoload/ale/util.vim
129: ~/.vim/plugged/ale/autoload/ale/linter.vim
130: ~/.vim/plugged/ale/ale_linters/ruby/brakeman.vim
131: ~/.vim/plugged/ale/ale_linters/ruby/cspell.vim
132: ~/.vim/plugged/ale/autoload/ale/handlers/cspell.vim
133: ~/.vim/plugged/ale/ale_linters/ruby/debride.vim
134: ~/.vim/plugged/ale/ale_linters/ruby/packwerk.vim
135: ~/.vim/plugged/ale/ale_linters/ruby/rails_best_practices.vim
136: ~/.vim/plugged/ale/ale_linters/ruby/reek.vim
137: ~/.vim/plugged/ale/ale_linters/ruby/rubocop.vim
138: ~/.vim/plugged/ale/ale_linters/ruby/ruby.vim
139: ~/.vim/plugged/ale/ale_linters/ruby/solargraph.vim
140: ~/.vim/plugged/ale/ale_linters/ruby/sorbet.vim
141: ~/.vim/plugged/ale/ale_linters/ruby/standardrb.vim
142: ~/.vim/plugged/ale/autoload/ale/engine.vim
143: ~/.vim/plugged/ale/autoload/ale/command.vim
144: ~/.vim/plugged/ale/autoload/ale/history.vim
145: ~/.vim/plugged/ale/autoload/ale/ruby.vim
146: ~/.vim/plugged/ale/autoload/ale/job.vim
147: ~/.vim/plugged/ale/autoload/ale/lsp_linter.vim
148: ~/.vim/plugged/ale/autoload/ale/path.vim
149: ~/.vim/plugged/ale/autoload/ale/lsp.vim
150: ~/.vim/plugged/ale/autoload/ale/lsp/message.vim
151: ~/.vim/plugged/ale/autoload/ale/uri.vim
152: ~/.vim/plugged/vim-gitgutter/autoload/gitgutter.vim
153: /Applications/MacVim.app/Contents/Resources/vim/runtime/autoload/syntaxcomplete.vim
154: ~/.vim/plugged/ale/autoload/ale/cursor.vim
155: ~/.vim/plugged/vim-gitgutter/autoload/gitgutter/hunk.vim
156: ~/.vim/plugged/vim-airline/autoload/airline/async.vim
157: ~/.vim/plugged/vim-gitgutter/autoload/gitgutter/async.vim
158: ~/.vim/plugged/vim-gitgutter/autoload/gitgutter/debug.vim
159: ~/.vim/plugged/copilot.vim/autoload/copilot/logger.vim
160: ~/.vim/plugged/vim-gitgutter/autoload/gitgutter/diff.vim
161: ~/.vim/plugged/vim-gitgutter/autoload/gitgutter/sign.vim
162: ~/.vim/plugged/ale/autoload/ale/sign.vim
163: ~/.vim/plugged/ale/autoload/ale/list.vim
164: ~/.vim/plugged/ale/autoload/ale/highlight.vim
165: ~/.vim/plugged/ale/autoload/ale/virtualtext.vim
166: ~/.vim/plugged/ale/autoload/ale/statusline.vim
167: ~/.vim/plugged/ale/autoload/ale/hover.vim
168: ~/.vim/plugged/copilot.vim/autoload/copilot/doc.vim
169: /Applications/MacVim.app/Contents/Resources/vim/runtime/scripts.vim
170: /Applications/MacVim.app/Contents/Resources/vim/runtime/autoload/dist/script.vim
171: ~/.vim/plugged/nerdtree/syntax/nerdtree.vim
172: /Applications/MacVim.app/Contents/Resources/vim/runtime/ftplugin/conf.vim
173: /Applications/MacVim.app/Contents/Resources/vim/runtime/syntax/conf.vim
174: ~/.vim/plugged/vim-css-color/after/syntax/conf.vim
175: ~/.vim/plugged/vim-css-color/syntax/colornames/basic.vim
176: /Applications/MacVim.app/Contents/Resources/vim/runtime/ftplugin/vim.vim
177: /Applications/MacVim.app/Contents/Resources/vim/runtime/indent/vim.vim
178: /Applications/MacVim.app/Contents/Resources/vim/runtime/autoload/dist/vimindent.vim
179: /Applications/MacVim.app/Contents/Resources/vim/runtime/syntax/vim.vim
180: /Applications/MacVim.app/Contents/Resources/vim/runtime/syntax/perl.vim
181: /Applications/MacVim.app/Contents/Resources/vim/runtime/syntax/pod.vim
182: /Applications/MacVim.app/Contents/Resources/vim/runtime/syntax/python.vim
183: ~/.vim/plugged/vim-css-color/after/syntax/vim.vim
184: ~/.vim/plugged/ale/ale_linters/vim/ale_custom_linting_rules.vim
185: ~/.vim/plugged/ale/ale_linters/vim/vimls.vim
186: ~/.vim/plugged/ale/ale_linters/vim/vint.vim

The conflict seems to be related to rails.vim

  0.419312000 : ERROR: Error detected while processing BufRead Autocommands for "*"..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>18_SynSet[25]..script /Users/riffraff/.vim/plugged/vim-css-color/after/syntax/conf.vim[1]..function css_color#init[10]..css_color#enable[15]..modelines[2]..Syntax Autocommands for "*"..function <SNR>18_SynSet[25]..script /Users/riffraff/.vim/plugged/vim-rails/after/syntax/ruby/rails.vim[24]../Users/riffraff/.vim/plugged/vim-rails/autoload/rails.vim:

if I disable the vim-css-color plugin the error disappears.