rhysd / reply.vim

REPLs play nicely with :terminal on Vim and Neovim
MIT License
186 stars 7 forks source link

ReplList command fails #2

Closed rainerborene closed 5 years ago

rainerborene commented 5 years ago

Here's the output when I try to run :ReplList.

cling_c (c) [NOT INSTALLED]
clojure (clojure) [NOT INSTALLED]
cling (cpp) [NOT INSTALLED]
icr (crystal) [NOT INSTALLED]
csi (csharp) [NOT INSTALLED]
iex (elixir) [NOT INSTALLED]
elm_repl (elm) [NOT INSTALLED]
erl (erlang) [NOT INSTALLED]
fsi (fsharp) [NOT INSTALLED]
go_pry (go) [NOT INSTALLED]
groovysh (groovy) [NOT INSTALLED]
ghci (haskell) [NOT INSTALLED]
jshell (java) [NOT INSTALLED]
node (javascript)
d8 (javascript) [NOT INSTALLED]
Error detected while processing function reply#command#list[9]..48[1]..49[5]..reply#node#find_npm_executable:
line    5:
E121: Undefined variable: s:path_sep
E116: Invalid arguments for function printf
E15: Invalid expression: printf('%s%s.bin%s%s', fnamemodify(node_modules, ':p'), s:path_sep, s:path_sep, a:bin)
Press ENTER or type command to continue
aiya000 commented 5 years ago

Hi :D I got the same problem.

Simply I did

  1. $ cd npm_project_root
  2. $ vim app/foo/Foo.ts
  3. :pwd => npm_project_root/app/foo (This is by my .vimrc)
  4. :ReplList
    • :point_down:
Error detected while processing function dein#autoload#_on_cmd[13]..reply#command#list[9]..64[1]..65[5]..reply#node#find_npm_executable:
line    5:
E121: Undefined variable: s:path_sep
E116: Invalid arguments for function printf('%s%s.bin%s%s', fnamemodify(node_modules, ':p'), s:path_sep, s:path_sep, a:bin)

My g:reply_repls is here.

let g:reply_repls = #{
  \ typescript: ['tsun'],
\ }

Next I ran :Repl on Foo.ts, I got a message reply.vim: No REPL is available for filetype 'typescript'. Candidates are ['tsun'].

Thanks!

aiya000 commented 5 years ago

P.S. I ran :Repl tsun and got reply.vim: REPL 'tsun' is not defined or not installed. Please check :ReplList. But :!which tsun returns /usr/local/bin/tsun.