You are not logged in.

#1 2016-10-24 17:12:21

xtian
Member
Registered: 2013-08-25
Posts: 179

[solved] Experiencing Spell file errors after routine Vim updates?

I'm a longtime user of vim on Archlinux. I've been away from this system for a few months, so I can't be sure when this started (but I've made updates during this time, too).
Every time I open the app, I get an error about the spelling file. (oddly, looking in extras I see the last update on file is from April. Hard to believe it could be that long. And also odd. There is a new update, but my system says I'm uptodate with an earlier version).

$ vim
Warning: Cannot find word list "en.utf-8.spl" or "en.ascii.spl"
Warning: Cannot find word list "en.utf-8.spl" or "en.ascii.spl"
Warning: Cannot find word list "en.utf-8.spl" or "en.ascii.spl"
Press ENTER or type command to continue

$ vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Sep 15 2016 10:11:05)
Included patches: 1-5
Compiled by Arch Linux

$ sudo pacman -Ss vim | grep installed
extra/vim 8.0.0005-1 [installed]
extra/vim-runtime 8.0.0005-1 [installed]
community/ranger 1.7.2-1 [installed]

I reinstalled the app, but the problem persists.
The problem is for all users.

//EDIT: Sorry. Lost the error somehow.

Last edited by xtian (2016-10-31 19:24:02)

Offline

#2 2016-10-24 17:25:45

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] Experiencing Spell file errors after routine Vim updates?

...and the error is? https://bbs.archlinux.org/viewtopic.php?id=57855


Moving to NC.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-10-24 18:26:57

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [solved] Experiencing Spell file errors after routine Vim updates?

And also odd. There is a new update, but my system says I'm uptodate with an earlier version.

You might want to elaborate on and/or further investigate (and ultimately solve) this first.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#4 2016-10-24 22:58:23

xtian
Member
Registered: 2013-08-25
Posts: 179

Re: [solved] Experiencing Spell file errors after routine Vim updates?

alphaniner wrote:

And also odd. There is a new update, but my system says I'm uptodate with an earlier version.

You might want to elaborate on and/or further investigate (and ultimately solve) this first.

I posted a related question. After reordering the mirrors, I was able to update to the newest vim package on archlinux (updated yesterday interestingly enough). Unfortunately, this didn't fix the problem.

Offline

#5 2016-10-27 07:30:51

bryan.paradis
Member
Registered: 2016-10-22
Posts: 43

Re: [solved] Experiencing Spell file errors after routine Vim updates?

Had a quick look on mine. Vim doesn't load any spl files for me unless I set the following in my .vimrc file.


[bryan@bp-mbp-arch ~]$ vim ~/.vimrc
:set spell
:set spelllang=en_us

I figured this out by looking at the strace output when opening vim and grepping for spl. After I added the conf lines above I was able to get vim to open these files on startup. My vim doesn't give me any warnings and it finds the correct spl file as per strace.

[bryan@bp-mbp-arch ~]$ strace -F -tt -s 255 -o vim.strace vim && grep en.utf-8.spl vim.strace
14657 03:26:37.470983 stat("/home/bryan/.vim/spell/en.utf-8.spl", 0x7ffccf4038d0) = -1 ENOENT (No such file or directory)
14657 03:26:37.471035 stat("/usr/share/vim/vimfiles/spell/en.utf-8.spl", 0x7ffccf4038d0) = -1 ENOENT (No such file or directory)
14657 03:26:37.471087 stat("/usr/share/vim/vim80/spell/en.utf-8.spl", {st_mode=S_IFREG|0644, st_size=621617, ...}) = 0
14657 03:26:37.471134 stat("/usr/share/vim/vim80/spell/en.utf-8.spl", {st_mode=S_IFREG|0644, st_size=621617, ...}) = 0
14657 03:26:37.471199 open("/usr/share/vim/vim80/spell/en.utf-8.spl", O_RDONLY) = 4

Please run the same strace command and check to see what you are getting there. Maybe the file doesn't exist? It is looking in the wrong places or there is a permissions problem. Further more can figure out which package is responsible for putting that file there in the first place.

[bryan@bp-mbp-arch ~]$ pacman -Qo /usr/share/vim/vim80/spell/en.utf-8.spl
/usr/share/vim/vim80/spell/en.utf-8.spl is owned by vim-runtime 8.0.0013-1

or

[bryan@bp-mbp-arch ~]$ pkgfile en.utf-8.spl
extra/vim-runtime
extra/vim-spell-en

This is what I have installed

[bryan@bp-mbp-arch ~]$ vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Sep 26 2016 10:00:18)
Included patches: 1-13
Compiled by Arch Linux
[bryan@bp-mbp-arch ~]$ pacman -Q | grep -i vim
gvim 8.0.0013-1
vim-runtime 8.0.0013-1

Last edited by bryan.paradis (2016-10-27 07:39:13)

Offline

#6 2016-10-30 21:05:07

xtian
Member
Registered: 2013-08-25
Posts: 179

Re: [solved] Experiencing Spell file errors after routine Vim updates?

Ok. That's gett'n me somewhere. On the latter point, you see I have the spell file:

$ sudo pacman -Qo /usr/share/vim/vim80/spell/en.utf-8.spl
/usr/share/vim/vim80/spell/en.utf-8.spl is owned by vim-runtime 8.0.0046-1
$ pwd
/usr/share/vim/vim80/spell
$ ls
check_locales.vim  en.ascii.spl  en.latin1.spl  en.utf-8.spl  fixdup.vim  spell.vim
cleanadd.vim       en.ascii.sug  en.latin1.sug  en.utf-8.sug  he.vim      yi.vim

And as you see in my OP, I have vim-runtime installed.

Now, the first point--strace-- is a little more complex and I'm not sure what all I'm looking at. The first line showing spell:

4701  16:42:15.725413 stat("/home/mastershake/xtian/.vim/bundle/vim-autoclose/after/indent.vim", 0x7ffddae71420) = -1 ENOENT (No such file or directory)
4701  16:42:15.725492 stat("/home/mastershake/xtian/.vim/bundle/vim-noctu/after/indent.vim", 0x7ffddae71420) = -1 ENOENT (No such file or directory)
4701  16:42:15.725572 stat("/home/mastershake/xtian/.vim/bundle/vim-hemisu/after/indent.vim", 0x7ffddae71420) = -1 ENOENT (No such file or directory)
4701  16:42:15.725652 stat("/home/mastershake/xtian/.vim/bundle/seoul256.vim/after/indent.vim", 0x7ffddae71420) = -1 ENOENT (No such file or directory)
4701  16:42:15.725733 stat("/home/mastershake/xtian/.vim/bundle/vim-css3-syntax/after/indent.vim", 0x7ffddae71420) = -1 ENOENT (No such file or directory)
4701  16:42:15.725812 stat("/home/mastershake/xtian/.vim/bundle/jedi/after/indent.vim", 0x7ffddae71420) = -1 ENOENT (No such file or directory)
4701  16:42:15.726000 stat("/home/mastershake/xtian/.vim/spell/en.vim", 0x7ffddae711a0) = -1 ENOENT (No such file or directory)
/** "spell" shows up here at line 470**/
4701  16:42:15.726081 stat("/home/mastershake/xtian/.vim/bundle/Vundle.vim/spell/en.vim", 0x7ffddae711a0) = -1 ENOENT (No such file or directory)
4701  16:42:15.726160 stat("/home/mastershake/xtian/.vim/bundle/tlib_vim/spell/en.vim", 0x7ffddae711a0) = -1 ENOENT (No such file or directory)
4701  16:42:15.726239 stat("/home/mastershake/xtian/.vim/bundle/tskeleton_vim/spell/en.vim", 0x7ffddae711a0) = -1 ENOENT (No such file or directory)
4701  16:42:15.726319 stat("/home/mastershake/xtian/.vim/bundle/tcomment_vim/spell/en.vim", 0x7ffddae711a0) = -1 ENOENT (No such file or directory)
4701  16:42:15.726398 stat("/home/mastershake/xtian/.vim/bundle/vim-matchit/spell/en.vim", 0x7ffddae711a0) = -1 ENOENT (No such file or directory)
4701  16:42:15.726485 stat("/home/mastershake/xtian/.vim/bundle/vim-surround/spell/en.vim", 0x7ffddae711a0) = -1 ENOENT (No such file or directory)
4701  16:42:15.726564 stat("/home/mastershake/xtian/.vim/bundle/nerdtree/spell/en.vim", 0x7ffddae711a0) = -1 ENOENT (No such file or directory)
/** 'spl' shows up at line 518 **/
4701  16:42:15.729843 stat("/home/mastershake/xtian/.vim/spell/en.utf-8.spl", 0x7ffddae6ff80) = -1 ENOENT (No such file or directory)

I can't guess why all of these Vundle plugins are complaining about Spelling files where there shouldn't be one. But, since Vundle (read 'bundle' in strace) is installed outside of pacman management, I should update this first.

UPDATE: Vundle is updated, but there is some other strange error:

The update of every module is looking for a directory in my Documents folder--well outside of the Vim install directory.

[2016-10-31 08:44:59] Plugin gmarik/Vundle.vim
[2016-10-31 08:44:59] $ cd '/home/mastershake/xtian/.vim/bundle/Vundle.vim' && git pull && git submodule update --init --recursive
[2016-10-31 08:44:59] > Already up-to-date.
[2016-10-31 08:44:59] > fatal: /home/mastershake/xtian/Documents.x/Employment.d/Jobs.d: '/home/mastershake/xtian/Documents.x/Employment.d/Jobs.d' is outside repository
[2016-10-31 08:44:59] > 

I tried the `strace` command and grep'd on the `:PluginUpdate` error, but nothing interesting there:

$strace -F -tt -s 255 -o vim.strace vim && grep 'fatal' vim.strace
...
4230  09:20:57.249704 read(3, "Already up-to-date.\nfatal: /home/mastershake/xtian/Documents.x/Employment.d/Jobs.d: '/home/mastershake/xtian/Documents.x/Employment.d/Jobs.d' is outside repository\n", 164) = 164
4331  09:21:04.047962 write(2, "fatal: /home/mastershake/xtian/Documents.x/Employment.d/Jobs.d: '/home/mastershake/xtian/Documents.x/Employment.d/Jobs.d' is outside repository\n", 144) = 144

Last edited by xtian (2016-10-31 13:43:49)

Offline

#7 2016-10-31 18:10:12

xtian
Member
Registered: 2013-08-25
Posts: 179

Re: [solved] Experiencing Spell file errors after routine Vim updates?

Ok. Further investigation and a post on the Vim users Google Groups found the problem. The $VIMRUNTIME variable is incorrectly pointing to VIM 7.

I think this is specific enough to warrant a new post: VIMRUNTIME points to old version

This post was useful for finding the problem with vim (and with the `strace` example, just about any application), so I will mark it solved.

Last edited by xtian (2016-10-31 19:23:27)

Offline

Board footer

Powered by FluxBB