Failing to connect to denops server
See original GitHub issueRecently I keep getting [denops] Failed to connect denops server: Failed to connect 127.0.0.1:port error messages and autocomplete stops working. Here’s the full message after :let g:denops#debug = 1 | call denops#server#restart():
[denops] Server spawned: ['deno', 'run', '-q', '--no-check', '--unstable', '-A', '/Users/ldavis/dotfiles/.vim
/plugged/denops.vim/denops/@denops-private/cli.ts', '--mode=vim']
[denops] DenopsStarted
[denops] Connecting to `127.0.0.1:53944`
[denops] Failed to connect denops server: Failed to connect `127.0.0.1:53944`
[denops] Server stopped: -1
[denops] DenopsStopped
I tried switching from deno 1.17.0 to the latest version 1.22.0 but this did nothing. I’m using macOS 12.4 (Monterey). I’ve also updated to the latest version of denops.vim with :PlugUpdate and the latest version of vim: 8.2.3901.
Anything else I can do to try to debug this? I tried manually running the command deno run -q --no-check --unstable -A /Users/ldavis/dotfiles/.vim/plugged/denops.vim/denops/@denops-private/cli.ts --mode=vim and it seems to work fine… for some reason vim is just unable to connect with ch_open… it’s really strange.
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:16 (9 by maintainers)
Top Related StackOverflow Question
I’m experiencing this as well. I think @Shougo is correct that it’s being blocked. The only thing that has solved it so far is rebooting. Here are the other things I’ve tried:
:call denops#server#restart()— This fails every time on different ports:call denops#server#connectSame issue:ch_openand thench_statuson127.0.0.1:32123while the server runs.ch_statusreturnsfail.I’ll continue investigating what’s blocking this connection.
I didn’t test in neovim but simply restarting my macbook solved the problem. Still not sure why it happened… but hopefully this thread will be useful for someone else.