intero.nvim icon indicating copy to clipboard operation
intero.nvim copied to clipboard

Channel was closed by the client

Open atondwal opened this issue 9 years ago • 1 comments

I'm not able to get intero.nvim to run... I've installed it, and have it running in my project root, but when I try to use any of the functions from nvim it just gives me a error:

Error detected while processing function intero#uses[1]..intero#ranged[3]..intero#util#get_visual_selection:
line    5:
E684: list index out of range: -1
E15: Invalid expression: lines[-1][:col2 - 2]
line    6:
E684: list index out of range: 0
E15: Invalid expression: lines[0][col1 - 1:]
Error detected while processing function intero#uses[1]..intero#ranged[7]..intero#ensureconn[5]..15:
line    1:
Channel was closed by the client
atondwal@hertz|
± intero --version
Intero 0.1.18

atondwal@hertz|~/research/weimer/liquid/liquid-fixpoint on interp!?
± nvim --version
NVIM 0.1.5
Build type: RelWithDebInfo
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wconversion -O2 -g -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -D_GNU_SOURCE -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.1.5/src -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include
Compiled by builduser

Optional features included (+) or not (-): +acl   +iconv    +jemalloc +tui      
For differences from Vim, see :help vim-differences

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

atondwal avatar Sep 26 '16 23:09 atondwal

The get_visual_selection error is because you don't have anything selected. Yeah, looks like I haven't documented that, the error handling isn't good either... You have to visually select an expression to use the commands.

valpackett avatar Sep 27 '16 09:09 valpackett