E1208 after compiling vim from git

13 views
Skip to first unread message

Thomas Köhler

unread,
Jan 23, 2022, 2:43:47 AM1/23/22
to vim_dev
Hi all,

For the first time in a long time, I wanted to compile vim by
myself for testing a bit. So I ran configure (in order to set a
PREFIX that would allow me to install vim in a temporary
location, not screwing up vim that is installed in the system),
ran make and make install.
While that part went fine, I run into an issue now:

/tmp/vim> ./bin/vim share/vim/vim82/colors/koehler.vim
Error detected while processing /home/thomas/.vimrc:
line 289: E1208: -complete used without allowing argumentsPress ENTER or type command to continue

So I type ENTER and ":help E1208" and get this:
E149: Sorry, no help for E1208

Is there a help tag missing for E1208? It seems like it, as I
can't find E1208 in any of the help files, only in the binary and
some LANG files (probably used for displaying the error above in
the language selected?):
/tmp/vim> grep -r E1208 $PWD
grep: /tmp/vim/share/vim/vim82/lang/ja.euc-jp/LC_MESSAGES/vim.mo: binary file matches
grep: /tmp/vim/share/vim/vim82/lang/de/LC_MESSAGES/vim.mo: binary file matches
grep: /tmp/vim/share/vim/vim82/lang/ja.sjis/LC_MESSAGES/vim.mo: binary file matches
grep: /tmp/vim/share/vim/vim82/lang/tr/LC_MESSAGES/vim.mo: binary file matches
grep: /tmp/vim/share/vim/vim82/lang/ja/LC_MESSAGES/vim.mo: binary file matches
grep: /tmp/vim/share/vim/vim82/lang/eo/LC_MESSAGES/vim.mo: binary file matches
grep: /tmp/vim/share/vim/vim82/lang/it/LC_MESSAGES/vim.mo: binary file matches
grep: /tmp/vim/bin/vim: binary file matches

Apart from that, I fail to see what's wrong with line 289 of my
.vimrc:
/tmp/vim> cat -n ~/.vimrc | grep 289
289 :com! -nargs=0 -complete=command Tmake call Tmake(expand("%"))

Is there any change I'm missing? I didn't see anything relevant
in ":help version-8.2" (but I noticed it only lists patches up to
8.1.1400, even though the version I built obviously has more
patches).

The version I'm currently using is:

/tmp/vim> ./bin/vim --version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jan 23 2022 08:20:37)
Included patches: 1-4186
Compiled by thomas@t500
Huge version with GTK2 GUI. Features included (+) or not (-):
+acl +file_in_path +mouse_urxvt -tag_any_white
+arabic +find_in_path +mouse_xterm -tcl
+autocmd +float +multi_byte +termguicolors
+autochdir +folding +multi_lang +terminal
-autoservername -footer -mzscheme +terminfo
+balloon_eval +fork() +netbeans_intg +termresponse
+balloon_eval_term +gettext +num64 +textobjects
+browse -hangul_input +packages +textprop
++builtin_terms +iconv +path_extra +timers
+byte_offset +insert_expand -perl +title
+channel +ipv6 +persistent_undo +toolbar
+cindent +job +popupwin +user_commands
+clientserver +jumplist +postscript +vartabs
+clipboard +keymap +printer +vertsplit
+cmdline_compl +lambda +profile +vim9script
+cmdline_hist +langmap -python +viminfo
+cmdline_info +libcall -python3 +virtualedit
+comments +linebreak +quickfix +visual
+conceal +lispindent +reltime +visualextra
+cryptv +listcmds +rightleft +vreplace
+cscope +localmap -ruby +wildignore
+cursorbind -lua +scrollbind +wildmenu
+cursorshape +menu +signs +windows
+dialog_con_gui +mksession +smartindent +writebackup
+diff +modify_fname -sodium +X11
+digraphs +mouse -sound -xfontset
+dnd +mouseshape +spell +xim
-ebcdic +mouse_dec +startuptime +xpm
+emacs_tags -mouse_gpm +statusline +xsmp_interact
+eval -mouse_jsbterm -sun_workshop +xterm_clipboard
+ex_extra +mouse_netterm +syntax -xterm_save
+extra_search +mouse_sgr +tag_binary
-farsi -mouse_sysmouse -tag_old_static
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "$VIM/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
defaults file: "$VIMRUNTIME/defaults.vim"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/tmp/vim/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -g -O2 -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L/usr/local/lib -Wl,--as-needed -o vim -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz -lfontconfig -lfreetype -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo -lelf -lselinux -lacl -lattr -ldl

Thanks for any pointers,

Thomas

--
Thomas Köhler Email: jean...@picard.franken.de
<>< WWW: http://gott-gehabt.de
IRC: tkoehler Freenode: thkoehler
PGP public key available from Homepage!

Ingo Karkat

unread,
Jan 23, 2022, 4:20:05 AM1/23/22
to vim...@googlegroups.com
On 23/01/2022 08:43, Thomas Köhler wrote:
> [...]
> So I type ENTER and ":help E1208" and get this:
> E149: Sorry, no help for E1208
> [...]

I had recently experienced the same, with the error in one of my
plugins, after upgrading to the latest Vim.

> Apart from that, I fail to see what's wrong with line 289 of my
> .vimrc:
> /tmp/vim> cat -n ~/.vimrc | grep 289
> 289 :com! -nargs=0 -complete=command Tmake call Tmake(expand("%"))
> [...]

The -nargs=0 states that no arguments will be taken. -complete
configures a completion for arguments. It doesn't do any harm (and
therefore wasn't flagged as a problem in the past), but is somewhat
inconsistent.

According to the code (function ex_command() in src/usercmd.c), this is
supposed to be a warning in legacy Vimscript:

// Some plugins rely on silently ignoring the mistake, only make this
// an error in Vim9 script.
if (in_vim9script())
emsg(_(e_complete_used_without_allowing_arguments));
else
give_warning_with_source(
(char_u *)_(e_complete_used_without_allowing_arguments),
TRUE, TRUE);

However, I also experienced this as an error during Vim startup (and
fixed it by removing that superfluous -complete=...)

-- regards, ingo

Thomas Köhler

unread,
Jan 23, 2022, 4:32:17 AM1/23/22
to vim...@googlegroups.com
Hi,

On Sun, Jan 23, 2022 at 10:19:50AM +0100, Ingo Karkat <sw...@ingo-karkat.de> wrote:
> On 23/01/2022 08:43, Thomas Köhler wrote:
> > [...]
> > So I type ENTER and ":help E1208" and get this:
> > E149: Sorry, no help for E1208
> > [...]
>
> I had recently experienced the same, with the error in one of my
> plugins, after upgrading to the latest Vim.

It would help if ":help E1208" worked :)

> > Apart from that, I fail to see what's wrong with line 289 of my
> > .vimrc:
> > /tmp/vim> cat -n ~/.vimrc | grep 289
> > 289 :com! -nargs=0 -complete=command Tmake call Tmake(expand("%"))
> > [...]
> The -nargs=0 states that no arguments will be taken. -complete
> configures a completion for arguments. It doesn't do any harm (and
> therefore wasn't flagged as a problem in the past), but is somewhat
> inconsistent.

Wow. You're right. That copy&paste error was in my .vimrc for
multiple years :)
Thanks for clarification, I just repaired my .vimrc accordingly
:)

Bye,

Bram Moolenaar

unread,
Jan 23, 2022, 6:20:12 AM1/23/22
to vim...@googlegroups.com, Thomas Köhler

Thomas Kohler wrote:

> For the first time in a long time, I wanted to compile vim by
> myself for testing a bit. So I ran configure (in order to set a
> PREFIX that would allow me to install vim in a temporary
> location, not screwing up vim that is installed in the system),
> ran make and make install.
> While that part went fine, I run into an issue now:
>
> /tmp/vim> ./bin/vim share/vim/vim82/colors/koehler.vim
> Error detected while processing /home/thomas/.vimrc:
> line 289: E1208: -complete used without allowing argumentsPress ENTER or type command to continue

Yes, that was a common mistake, the error should help you avoid that.

> So I type ENTER and ":help E1208" and get this:
> E149: Sorry, no help for E1208
>
> Is there a help tag missing for E1208? It seems like it, as I
> can't find E1208 in any of the help files, only in the binary and
> some LANG files (probably used for displaying the error above in
> the language selected?):

I'm still adding tags in the help for recently added errors. Currently
at E1083 (and the last hundred or so were not committed yet).

> Apart from that, I fail to see what's wrong with line 289 of my
> .vimrc:
> /tmp/vim> cat -n ~/.vimrc | grep 289
> 289 :com! -nargs=0 -complete=command Tmake call Tmake(expand("%"))
>
> Is there any change I'm missing? I didn't see anything relevant
> in ":help version-8.2" (but I noticed it only lists patches up to
> 8.1.1400, even though the version I built obviously has more
> patches).

You specify "command" completeion but "-nargs=0" says there is nothing
to complete.


--
Shaw's Principle: Build a system that even a fool can use, and
only a fool will want to use it.

/// 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 ///

Thomas Köhler

unread,
Jan 23, 2022, 6:47:32 AM1/23/22
to vim...@googlegroups.com
Hi Bram,

On Sun, Jan 23, 2022 at 11:20:08AM +0000, Bram Moolenaar <Br...@moolenaar.net> wrote:
> Thomas Kohler wrote:
[...]
> > So I type ENTER and ":help E1208" and get this:
> > E149: Sorry, no help for E1208
> >
> > Is there a help tag missing for E1208? It seems like it, as I
> > can't find E1208 in any of the help files, only in the binary and
> > some LANG files (probably used for displaying the error above in
> > the language selected?):
>
> I'm still adding tags in the help for recently added errors. Currently
> at E1083 (and the last hundred or so were not committed yet).

Thanks for confirming that you'll add the remaining ones :)

> > Apart from that, I fail to see what's wrong with line 289 of my
> > .vimrc:
> > /tmp/vim> cat -n ~/.vimrc | grep 289
> > 289 :com! -nargs=0 -complete=command Tmake call Tmake(expand("%"))
> >
> > Is there any change I'm missing? I didn't see anything relevant
> > in ":help version-8.2" (but I noticed it only lists patches up to
> > 8.1.1400, even though the version I built obviously has more
> > patches).
>
> You specify "command" completeion but "-nargs=0" says there is nothing
> to complete.

Thanks, already fixed in my .vimrc as you can see in another part
of this thread. Now everything works as expected again.

Bye,
Reply all
Reply to author
Forward
0 new messages