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.
mkdir -p $HOME/.config/vim/pack/testbug/start/testbug/pluginecho 'let g:please_fail = {' > $HOME/.config/vim/pack/testbug/start/testbug/plugincd src/testdir../vim -u NONE -S runtest.vim test_startup.vim Test_write_in_vimrc (taken from src/testdir/README.txt)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
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 ''''}'''': ''']
After #15639, I'm wondering whether using $HOME/.config/vim instead of $HOME/.vim has something to do with this?
Vim does not load, parse, or interact with the user's vim configuration while doing make test. Test succeeds.
9.1.0724
Ubuntu 24.04.1
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()