Skip to content

E121: Undefined variable: g:tsuquyomi_javascript_support with syntax on before filetype plugin on #317

@kevinoid

Description

@kevinoid

With Neovim v0.7.2 and tsuquyomi master (8f6e246), if syntax on occurs before filetype plugin on in vimrc/init.vim, an error occurs. To reproduce:

cat >vimrc <<'VIMRC'
let &packpath = expand('<sfile>:p:h')
syntax on
filetype plugin on
VIMRC
mkdir -p pack/foo/start
git -C pack/foo/start clone https://github.com/Quramy/tsuquyomi.git
nvim -u vimrc file.js

Which produces the following errors:

Error detected while processing /tmp/tmp.Tw69eTNqLR/pack/foo/start/tsuquyomi/ftplugin/javascript/tsuquyomi.vim:
line    8:
E121: Undefined variable: g:tsuquyomi_javascript_support
Error detected while processing function vital#of:
line    4:
E605: Exception not caught: vital: version file not found: tsuquyomi
E605: Exception not caught: vital: version file not found: tsuquyomi
Error detected while processing /tmp/tmp.Tw69eTNqLR/pack/foo/start/tsuquyomi/ftplugin/javascript/tsuquyomi.vim:
line   12:
E171: Missing :endif
Error detected while processing function <SNR>1_LoadFTPlugin:
line   17:
E170: Missing :endfor
Error detected while processing /usr/share/nvim/runtime/syntax/syntax.vim:
line   42:
E171: Missing :endif

I bisected the regression to 13efb82 from #80

Thanks,
Kevin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions