[vim/vim] Test is failing after loading user's packages even with `-u NONE` set. (Issue #15662)

7 views
Skip to first unread message

John M Devin

unread,
Sep 10, 2024, 3:14:35 PM9/10/24
to vim/vim, Subscribed

Steps to reproduce

Summary

For some reason, vim is loading (or at least parsing) my packages and throwing an error during testing. The test that fails is Test_write_in_vimrc in test_startup.vim. It's reproducible both by doing make test and by running only that individual test, as detailed below.

Reproduce

  1. Do mkdir -p $HOME/.config/vim/pack/testbug/start/testbug/plugin
  2. Do echo 'let g:please_fail = {' > $HOME/.config/vim/pack/testbug/start/testbug/plugin
  3. Make vim
  4. From the vim directory, do cd src/testdir
  5. Do ../vim -u NONE -S runtest.vim test_startup.vim Test_write_in_vimrc (taken from src/testdir/README.txt)
  6. See the output:
Error detected while processing /home/username/.config/vim/pack/testbug/start/testbug/plugin/fail.vim:
line    1:
E723: Missing end of Dictionary '}':
Press ENTER or type command to continue
  1. See that test.log contains the following:
From test_startup.vim:
Found errors in Test_write_in_vimrc():
command line..script /home/username/programs/vim/src/testdir/runtest.vim[607]..function RunTheTest[57]..Test_write_in_vimrc line 8: Expected [] but got ['command line..script /home/username/programs/vim/src/testdir/Xafter.vim line 1: Pattern ''E32: '' does not match ''E723: Missing end of Dictionary ''''}'''': ''']

Additional Information

After #15639, I'm wondering whether using $HOME/.config/vim instead of $HOME/.vim has something to do with this?

Expected behaviour

Vim does not load, parse, or interact with the user's vim configuration while doing make test. Test succeeds.

Version of Vim

9.1.0724

Environment

Ubuntu 24.04.1

Logs and stack traces

No response


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/15662@github.com>

Reply all
Reply to author
Forward
0 new messages