alaviss / nim.nvim

Nim plugin for NeoVim
ISC License
200 stars 24 forks source link

nimsuggest - E730: using List as a String #42

Closed hoijui closed 3 months ago

hoijui commented 3 years ago

I just installed your plugin, and when saving a nim file, I get this error message:

nim.nvim: nimsuggest (nimsuggest) cannot be executed: Vim(let):E730: using List as a String

Any ideas?

alaviss commented 3 years ago

Can you tell me what version of neovim are you using?

optik-aper commented 2 years ago

I'm experiencing this issue on regular old vim. Is it unsupported on this version?

VIM - Vi IMproved 9.0 (2022 Jun 28, compiled May 10 2022 08:40:37)
Included patches: 1-105
Modified by team+vim@tracker.debian.org
Compiled by team+vim@tracker.debian.org
Huge version with GTK3 GUI.  Features included (+) or not (-):
+acl               +clipboard         +dnd               +gettext           +listcmds          -mouse_sysmouse    +postscript        +sound             +termresponse      +visualextra
+arabic            +cmdline_compl     -ebcdic            -hangul_input      +localmap          +mouse_urxvt       +printer           +spell             +textobjects       +vreplace
+autocmd           +cmdline_hist      +emacs_tags        +iconv             +lua               +mouse_xterm       +profile           +startuptime       +textprop          +wildignore
+autochdir         +cmdline_info      +eval              +insert_expand     +menu              +multi_byte        -python            +statusline        +timers            +wildmenu
-autoservername    +comments          +ex_extra          +ipv6              +mksession         +multi_lang        +python3           -sun_workshop      +title             +windows
+balloon_eval      +conceal           +extra_search      +job               +modify_fname      -mzscheme          +quickfix          +syntax            +toolbar           +writebackup
+balloon_eval_term +cryptv            -farsi             +jumplist          +mouse             +netbeans_intg     +reltime           +tag_binary        +user_commands     +X11
+browse            +cscope            +file_in_path      +keymap            +mouseshape        +num64             +rightleft         -tag_old_static    +vartabs           -xfontset
++builtin_terms    +cursorbind        +find_in_path      +lambda            +mouse_dec         +packages          +ruby              -tag_any_white     +vertsplit         +xim
+byte_offset       +cursorshape       +float             +langmap           +mouse_gpm         +path_extra        +scrollbind        +tcl               +vim9script        +xpm
+channel           +dialog_con_gui    +folding           +libcall           -mouse_jsbterm     +perl              +signs             +termguicolors     +viminfo           +xsmp_interact
+cindent           +diff              -footer            +linebreak         +mouse_netterm     +persistent_undo   +smartindent       +terminal          +virtualedit       +xterm_clipboard
+clientserver      +digraphs          +fork()            +lispindent        +mouse_sgr         +popupwin          +sodium            +terminfo          +visual            -xterm_save
   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: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x8
6_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/includ
e/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/incl
ude/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wdate-time -g -O2 -fdebug-prefix-map=/build/vim-FszxFd/vim-9.0.0105=. -fstack-protector-strong -Wformat -Werr
or=format-security -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-nee
ded -o vim -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXpm -lXt -lX11 -lXdmcp
-lSM -lICE -lm -ltinfo -lselinux -lcanberra -lsodium -lrt -lacl -lattr -lgpm -ldl -L/usr/lib -llua5.2 -Wl,-E -fstack-protector-strong -L/usr/local/lib -L/usr/lib/x86_64-linux-gnu/perl/5.30/
CORE -lperl -ldl -lm -lpthread -lcrypt -L/usr/lib/python3.8/config-3.8-x86_64-linux-gnu -lpython3.8 -lcrypt -lpthread -ldl -lutil -lm -lm -L/usr/lib/x86_64-linux-gnu -ltcl8.6 -ldl -lz -lpth
read -lm -lruby-2.7 -lm -L/usr/lib
optik-aper commented 2 years ago

I see in #47 that this plugin isn't meant for vim, so that answers that. Sorry for the noise.

lf-araujo commented 1 year ago

Sorry for necrobumping, but I am getting this on neovim now:

image

NVIM v0.8.2
Build type: RelWithDebInfo
LuaJIT 2.0.5
Compilation: /usr/bin/x86_64-solus-linux-gcc -mtune=generic -march=x86-64 -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -fno-plt -Wall -Wno-error -Wp,-D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/build/YPKG/root/neovim/build/neovim-0.8.2/solusBuildDir/cmake.config -I/home/build/YPKG/root/neovim/build/neovim-0.8.2/src -I/usr/include -I/home/build/YPKG/root/neovim/build/neovim-0.8.2/solusBuildDir/src/nvim/auto -I/home/build/YPKG/root/neovim/build/neovim-0.8.2/solusBuildDir/include
Compiled by build@paddedroom

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info
luis@solus ~ $ nimsuggest -v
Nim Compiler Version 1.6.10 [Linux: amd64]
Compiled at 2022-11-21
Copyright (c) 2006-2021 by Andreas Rumpf

git hash: f1519259f85cbdf2d5ff617c6a5534fcd2ff6942
active boot switches: -d:release -d:danger --gc:markAndSweep
alaviss commented 1 year ago

Hi, yours is a different bug, please open an another issue.

And it'd be great if you can show what happens if you try :echo system(['nimsuggest', '-v']) in neovim.

aenlemmea commented 3 months ago

Hi, yours is a different bug, please open an another issue.

And it'd be great if you can show what happens if you try :echo system(['nimsuggest', '-v']) in neovim.

Running it on regular old vim gives:

E730: Using a List as a String
E282: Cannot read from "/tmp/vsYbd6T/2"

Sorry for the necro but posted this since this issue is still open. Probably will have to switch on nvim by the looks of it.

alaviss commented 3 months ago

Probably will have to switch on nvim by the looks of it.

Yep, this plugin does not support regular vim.

Since the original poster is nowhere to be found, I'll just close this issue as not having enough data.