This is for the users of the vim plugin for M2.
After the recent upgrade from Debian 11 to Debian 12 (bookworm), I began getting an error saying something like
Error detected while processing BufNewFile Autocommands for "*.m2"..FileType Autocommands for "*"..function <SNR>10_LoadFTPlugin[18]..script /home/mkummini/.vim
/ftplugin/Macaulay2.vim
After this upgrade vim version is 9.0.1499.
After exploring further using the ":messages" command in vim, I got lines like:
line 22:
E1208: -complete used without allowing arguments
The way to get around this is to delete the phrase "-complete=shellcmd" in the definitions of M2Start, etc.; specifically, for which "-nargs=0" is specified. That E1208 would be raised is mentioned in the help page of "-complete" (i.e., if one does :h -complete) for this version of vim (but not an earlier version of vim that I have access to). As far as I could see, everything seems to work properly after deleting the "-complete" phrase.
Manoj.