after updating vim to 8.3.3132, getting seven error messages (E1208)

47 views
Skip to first unread message

Charles Campbell

unread,
Aug 3, 2021, 7:42:31 PM8/3/21
to vim...@googlegroups.com
Hello:

Error detected while processing /home/cec/.vim/plugin/AsNeededPlugin.vim:
line   61: E1208: -complete used without -nargsline

I certainly didn't get these before, nor do I know what -nargsline is.
The relevant line:

com! -nargs=0 -complete=command MakeANtags    call AsNeeded#MakeANtags()

OK, so what's -nargsline ?  :he nargsline shows nothing. Doing a grep
nargsline  over the entire .vim/doc directory's *.txt files shows: nothing.

Chip Campbell

Bram Moolenaar

unread,
Aug 4, 2021, 10:06:20 AM8/4/21
to vim...@googlegroups.com, Charles Campbell
The error message is "E1208: -complete used without -nargs".
Not sure why "line" got appended there.

This was a change where we knew that some badly written plugins would
get this error message. While otherwise users are pointed out that
their "-complete" argument won't work because there is nothing to
complete. This only happens in Vim9 scripts.

Perhaps the error message is confusing, because there is a -nargs
argument, but it's zero? We could mention "arguments" instead of
"-nargs".

I suggest you remove that "-complete" argument and perhaps let the
author of the plugin know about it.



--
** Hello and Welcome to the Psychiatric Hotline **
If you are obsessive-compulsive, please press 1 repeatedly.
If you are co-dependent, please ask someone to press 2.
If you have multiple personalities, please press 3, 4, 5 and 6.
If you are paranoid-delusional, we know who you are and what you want
- just stay on the line so we can trace the call.
If you are schizophrenic, listen carefully and a little voice will
tell you which number to press next.
If you are manic-depressive, it doesn't matter which number you press
- no one will answer.
If you suffer from panic attacks, push every button you can find.
If you are sane, please hold on - we have the rest of humanity on the
other line and they desparately want to ask you a few questions.

/// Bram Moolenaar -- Br...@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 ///

Dominique Pellé

unread,
Aug 4, 2021, 10:25:51 AM8/4/21
to vim_dev
Bram Moolenaar <Br...@moolenaar.net> wrote:

> Charles Campbell wrote:
>
> > Error detected while processing /home/cec/.vim/plugin/AsNeededPlugin.vim:
> > line 61: E1208: -complete used without -nargsline
> >
> > I certainly didn't get these before, nor do I know what -nargsline is.
> > The relevant line:
> >
> > com! -nargs=0 -complete=command MakeANtags call AsNeeded#MakeANtags()
> >
> > OK, so what's -nargsline ? :he nargsline shows nothing. Doing a grep
> > nargsline over the entire .vim/doc directory's *.txt files shows: nothing.
>
> The error message is "E1208: -complete used without -nargs".
> Not sure why "line" got appended there.
>
> This was a change where we knew that some badly written plugins would
> get this error message. While otherwise users are pointed out that
> their "-complete" argument won't work because there is nothing to
> complete. This only happens in Vim9 scripts.
>
> Perhaps the error message is confusing, because there is a -nargs
> argument, but it's zero? We could mention "arguments" instead of
> "-nargs".
>
> I suggest you remove that "-complete" argument and perhaps let the
> author of the plugin know about it.

I suppose that it's this plugin
https://www.vim.org/scripts/script.php?script_id=915
which is created by Charles Campbell.

Regards
Dominique
Reply all
Reply to author
Forward
0 new messages