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

vim throws error "E700: Unknown function: s:get_mediawiki_syntaxlocal" after upgrading vimwiki via Vim-Plug #1363

Open
usonianhorizon opened this issue Aug 9, 2023 · 0 comments

Comments

@usonianhorizon
Copy link

I have just upgraded all my vim plugins on two systems: FreeBSD 13.2 (vim 9.0.1671) and Ubuntu 18.04.6 LTS (vim 8.0.3741)

On both systems, the following error is being thrown upon invoking vim:

Error detected while processing /usr/home/<username>/.vim/plugged/vimwiki/plugin/vimwiki.vim[232]..function vimwiki#vars#init[8]..<SNR>42_populate_wikilocal_options[29]..<SNR>42_normalize_wikilocal_settings[8]..vimwiki#vars#get_syntaxlocal[13]..vimwiki#vars#populate_syntax_vars:
line   21:
E700: Unknown function: s:get_mediawiki_syntaxlocal
E116: Invalid arguments for function extend({}, function('s:get_' . a:syntax . '_syntaxlocal')())
Press ENTER or type command to continue

Here is the output from :VimwikiShowVersion (from FreeBSD 13.2):

Version: 2023.04.04
Os: Linux
Vim: 900
Branch: master
Revision: 71edcf6
Date: 2023-04-04 20:28:34 -0600

I do have one wiki which is set up to use mediawiki syntax:

" If vimwiki is in this list, then VimwikiAll2HTML will generate in local
" directory; else it will be generated in $HOME.
let g:vimwiki_list = [
...
     \{
        \'path': '<path_to_wiki>',
        \'syntax': 'mediawiki'
    \},
\]

If I delete this wiki from the vimwiki_list, the problem goes away. Any help on a mitigation to this issue would be greatly appreciated.

advTHANKSance

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