Thursday, July 6, 2023

Re: Error detected while processing /var/lib/vim/addons/plugin/02tlib.vim line 77: E1208: -complete used without allowing arguments

Guy Ka wrote:

> I had GVim 8.2 installed on a Ubuntu 20.04 machine (WSL2) and everything
> was working fine. After updating to Ubuntu 22.04,
> I am getting the following error when I start gvim
> Error detected while processing /var/lib/vim/addons/plugin/02tlib.vim line
> 77: E1208: -complete used without allowing arguments
> I have no clue on how to start debugging this issue.

Please quote the contents of plugin/02tlib.vim around line 77.

Error 1208 is quite clear: I expect there to be a ":command" command
that defines a user command, with a "-complete" argument but not
allowing for arguments. There is more info if you look for help on the
error number
:help E1208

> Here is the version info
> :version
> VIM - Vi IMproved 8.2 (2019 Dec 12, compiled May 24 2023 14:27:53)
> Included patches: 1-3995, 4563, 4646, 4774, 4895, 4899, 4901, 4919
> Modified by team+vim@tracker.debian.org
> Compiled by team+vim@tracker.debian.org
> Huge version with GTK3 GUI. Features included (+) or not (-):
> +acl +dnd +listcmds +postscript

[...]

> +byte_offset +float +mouse_gpm +scrollbind
> +vim9script

Some more checks were added for Vim 9 script. They may also affect
legacy script commands. That is unlikely though. This is best fixed in
the script. Then it is also fixed for other users of the script. Can
you contact the author or maintainer?

I don't think we can fix this in Vim. The error is valid, if we skip it
then mistakes will go unnoticed. With Vim 9 script we want to find more
errors, not less. So long as they are valid errors.


--
Women are probably the main cause of free software starvation.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20230706103326.053261C0460%40moolenaar.net.

No comments:

Post a Comment