vim-denops/denops.vim

Failed to connect denops server with Deno 1.15.0

ryan0270 opened this issue · 3 comments

After a recent system update (Arch Linux) I see the following error when starting nvim with dein (sorry, I'm not sure if this error is on the denops or dein side)

[denops] error: Uncaught ReferenceError: charset is not defined
[denops] [charset.QUOTATION_MARK]: charset.QUOTATION_MARK,
[denops] ^
[denops] at https://deno.land/x/streamparser_json@v0.0.5/utils/utf-8.ts:105:4
[denops] Failed to connect denops server: Vim(let):connection failed: tcp address must be host:port

Here are relevant versions that I can think of

$ nvim -ver
NVIM v0.5.1
Build type: Release
LuaJIT 2.0.5

$ deno --version
deno 1.15.0 (release, x86_64-unknown-linux-gnu)
v8 9.5.172.19
typescript 4.4.2

And here is a minimal init.vim. When I completely clear out my dein cache and then start nvim with this file, it will install denops and after a few seconds give the above error

" .#vimrc

" Required:
set runtimepath+=/home/ryantr/.cache/dein/repos/github.com/Shougo/dein.vim
call dein#begin('/home/ryantr/.cache/dein')
call dein#add('/home/ryantr/cache/dein/repos/github.com/Shougo/dein.vim')
call dein#add('vim-denops/denops.vim')
call dein#end()

if dein#check_install()
  call dein#install()
endif

Deno 1.15.0 has a bug for handling --no-check thus denops.vim won't work on it.
Use Deno 1.15.1 instead and see if that helps.

I encountered the same problem, but solved it by upgrading deno. Thank you very much!

Closed. It is fixed in deno 1.15.1