Spacevim: Unable to load SpaceVim due to Vim 8 syntax errors

Created on 1 May 2018  路  5Comments  路  Source: SpaceVim/SpaceVim

Executing latest Vim 8 (8.0.1783) version with the most recent SpaceVim commit this error appears:

Error detected while processing $HOME/.SpaceVim/config/main.vim:
line   10:
E116: Invalid arguments for function fnamemodify(expand('<sfile>'),
E15: Invalid expression: fnamemodify(expand('<sfile>'),
line   11:
E10: \ should be followed by /, ? or &
line   12:
E10: \ should be followed by /, ? or &
line   18:
E121: Undefined variable: g:_spacevim_root_dir
E116: Invalid arguments for function fnamemodify(g:_spacevim_root_dir, ':p:h:h')
E15: Invalid expression: 'set rtp +=' . fnamemodify(g:_spacevim_root_dir, ':p:h:h')
Error detected while processing /users/tiamarin/.SpaceVim/vimrc:
line   11:
E171: Missing :endif

Expected behavior, English is required

SpaceVim should load without issues.

The reproduce ways from Vim starting (Required!)

Install Vim in Ubuntu from Jonathon PPA:

sudo add-apt-repository ppa:jonathonf/vim
sudo apt-get update

Debug info

Please press SPC h I, debug info will be put into clipboard, then paste all content below.

Unable to post the debug info because SpaceVim is not loaded.

Most helpful comment

It should be fixed, please update spacevim.

All 5 comments

I traced back Vim versions and 8.0.1737 works fine. So, a temporal fix in Ubuntu is to hold the packages to that version. But, I am afraid later someone else will find this issue as well.

It should be fixed, please update spacevim.

same issue in vim 8.0.1802

@wsdjeg: the issue is back with vim 8.0.1802, as @fanchunke1991 mentioned it.

The new error:

Error detected while processing /users/tiamarin/.SpaceVim/config/main.vim:
line   16:
E116: Invalid arguments for function fnamemodify(expand('<sfile>'),
E15: Invalid expression: fnamemodify(expand('<sfile>'),
line   17:
E10: \ should be followed by /, ? or &
line   18:
E10: \ should be followed by /, ? or &
line   24:
E121: Undefined variable: g:_spacevim_root_dir
E116: Invalid arguments for function fnamemodify(g:_spacevim_root_dir, ':p:h:h')
E15: Invalid expression: 'set rtp +=' . fnamemodify(g:_spacevim_root_dir, ':p:h:h')
Error detected while processing /users/tiamarin/.SpaceVim/vimrc:
line   11:
E171: Missing :endif

A workaround is set nocompatible in line 15 of config/main.vim file.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wsdjeg picture wsdjeg  路  4Comments

Lobosque picture Lobosque  路  3Comments

linwaytin picture linwaytin  路  4Comments

zeroasterisk picture zeroasterisk  路  4Comments

shabegom picture shabegom  路  3Comments