[vim/vim] 'make test_spell' fails if there is a personal .spl file (Issue #20765)

2 views
Skip to first unread message

Jun-ichi TAKIMOTO

unread,
Jul 14, 2026, 8:51:51 AM (23 hours ago) Jul 14
to vim/vim, Subscribed
Jun-T created an issue (vim/vim#20765)

Steps to reproduce

  1. Create a personal .spl file in ~/.vim/spell/. For example, in vim, while spell-checking, use the 'zg' command to add a word. This will create ~/.vim/spell/LL.EEE.add.spl (depending on LANGAGE/ENCODING you are using).
  2. Checkout git master, and build vim.
  3. In the directory vim/src, run 'make test_spell'. then the test will fail as:
Found errors in Test_spellinfo():
command line..script /Users/takimoto/dev/src/vim/vim/src/testdir/runtest.vim[636]..function RunTheTest[63]..Test_spellinfo line 11: Pattern '^\nfile: ../../runtime/spell/en.utf-8.spl\n$' does not match '\nfile: /Users/takimoto/.vim/spell/en.utf-8.add.spl\nfile: ../../runtime/spell/en.utf-8.spl\n'

As can be seen, ~/.vim/spell/LL.EEE.add.spl is also listed by the 'spellinfo' command.
I think the problem is in the following line:
https://github.com/vim/vim/blob/834b8d218f1db92e587ecd449e5ce88b41fbe256/src/testdir/test_spell.vim#L1609
It seems 'set runtimepath&' adds ~/.vim/ to runtimepath .
Save/restore runtimepth in Test_spelldump_prefixtree_overflow() should work, or any easier fix?

Expected behaviour

Test succeeds.

Version of Vim

9.2.0662 or newer

Environment

macOS (I believe version doesn't matter)
Apple's Terminal.app
xterm-256color
zsh

Logs and stack traces


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20765@github.com>

Reply all
Reply to author
Forward
0 new messages