janus icon indicating copy to clipboard operation
janus copied to clipboard

NeoVim errors

Open slbug opened this issue 4 years ago • 5 comments

Error detected while processing ~/.vim/janus/vim/tools/tlib/plugin/02tlib.vim:
line   77:
E1208: -complete used without -nargs
NVIM v0.6.0-dev+454-gee342d3ce
Build type: Release
LuaJIT 2.1.0-beta3
Features: +acl +iconv +tui

slbug avatar Oct 25 '21 20:10 slbug

Confirm, i fix it with

diff --git a/plugin/02tlib.vim b/plugin/02tlib.vim
index 9e7a4d6..6afbeed 100755
--- a/plugin/02tlib.vim
+++ b/plugin/02tlib.vim
@@ -74,7 +74,7 @@ command! -nargs=1 -complete=command TBrowseOutput call tlib#cmd#BrowseOutput(<q-
 "
 " EXAMPLES: >
 "   TBrowseScriptnames 
-command! -nargs=0 -complete=command TBrowseScriptnames call tlib#cmd#TBrowseScriptnames()
+command! -nargs=? -complete=command TBrowseScriptnames call tlib#cmd#TBrowseScriptnames()
 
 
 " :display: :Tlibtrace GUARD, VAR1, VAR2...

I think it's related to this change https://github.com/vim/vim/issues/8541

HugoPoi avatar Dec 11 '21 14:12 HugoPoi

hi, when I start vim I get this error:

Error detected while processing /Users/t/.vim/janus/vim/tools/tlib/plugin/02tlib.vim:
line   77: E1208: -complete used without allowing argumentsPress ENTER or type command to continue

I tried to update vim by cd ~/.vim && rake but didn't help

if I try what HugoPoi sugest in comment above https://github.com/carlhuda/janus/issues/711#issuecomment-991671932 I get error:


Error detected while processing /Users/t/.vim/janus/vim/tools/tlib/plugin/02tlib.vim:
line   77:
E488: Trailing characters: command! -nargs=0 -complete=command TBrowseScriptnames call tlib#cmd#TBrowseScriptnames(): #command! -nargs=0 -complete=command TBrowseScriptnames call tlib#cmd#TBrowseScriptnames()
Press ENTER or type command to continue

equivalent avatar Feb 24 '22 14:02 equivalent

Confirm, i fix it with

diff --git a/plugin/02tlib.vim b/plugin/02tlib.vim
index 9e7a4d6..6afbeed 100755
--- a/plugin/02tlib.vim
+++ b/plugin/02tlib.vim
@@ -74,7 +74,7 @@ command! -nargs=1 -complete=command TBrowseOutput call tlib#cmd#BrowseOutput(<q-
 "
 " EXAMPLES: >
 "   TBrowseScriptnames 
-command! -nargs=0 -complete=command TBrowseScriptnames call tlib#cmd#TBrowseScriptnames()
+command! -nargs=? -complete=command TBrowseScriptnames call tlib#cmd#TBrowseScriptnames()
 
 
 " :display: :Tlibtrace GUARD, VAR1, VAR2...

I think it's related to this change vim/vim#8541

This worked for me on OpenSUSE Tumbleweed 20220306, Vim 8.2 (2019 Dec 12, Compiled by 'http://www.opensuse.org/')

engineervix avatar Mar 08 '22 05:03 engineervix

Confirm, i fix it with

diff --git a/plugin/02tlib.vim b/plugin/02tlib.vim
index 9e7a4d6..6afbeed 100755
--- a/plugin/02tlib.vim
+++ b/plugin/02tlib.vim
@@ -74,7 +74,7 @@ command! -nargs=1 -complete=command TBrowseOutput call tlib#cmd#BrowseOutput(<q-
 "
 " EXAMPLES: >
 "   TBrowseScriptnames 
-command! -nargs=0 -complete=command TBrowseScriptnames call tlib#cmd#TBrowseScriptnames()
+command! -nargs=? -complete=command TBrowseScriptnames call tlib#cmd#TBrowseScriptnames()
 
 
 " :display: :Tlibtrace GUARD, VAR1, VAR2...

I think it's related to this change vim/vim#8541

I was getting this error on my Mac and the above fixed it for me.

Error detected while processing ~/.vim/janus/vim/tools/tlib/plugin/02tlib.vim:
line  109: E1208: -complete used without allowing argumentsPress ENTER or type command to continue

trevor-viljoen avatar Mar 08 '22 15:03 trevor-viljoen

Got this error too. The fix also worked for me. Any chance we can get it checked in?

willfaught avatar Aug 23 '22 04:08 willfaught