Failing to connect to denops server

See original GitHub issue

Recently 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:open
  • Created a year ago
  • Reactions:2
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
stevematneycommented, Nov 30, 2022

I think the port is used or blocked by other applications.

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:

  1. Restarting Vim
  2. Changing networks
  3. Turning network/wifi on and off again
  4. Running :call denops#server#restart() — This fails every time on different ports
  5. Manually running the denops server and using :call denops#server#connect Same issue:
    [denops] Failed to connect `127.0.0.1:32123`: Failed to connect `127.0.0.1:32123`
    
  6. Manually running ch_open and then ch_status on 127.0.0.1:32123 while the server runs. ch_status returns fail.

I’ll continue investigating what’s blocking this connection.

2reactions
lukelbdcommented, Jun 1, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to connect denops server with Deno 1.15.0 #151 - GitHub
After a recent system update (Arch Linux) I see the following error when starting nvim with dein (sorry, I'm not sure if this...
Read more >
TF31002-Unable to connect - Azure DevOps & TFS
When you try to connect to an on-premises Azure DevOps Server from your client computer ; The TFS configuration has changed. If the...
Read more >
Fail to connect DevOps Server via VSTS agent config.cmd
I'm trying to connect two DevOps Servers of Germany site from China site via VSTS agent config.cmd, but got the error info below....
Read more >
TF31002 Unable to connect | Azure DevOps Server
You may receive this error when you try to connect to Azure DevOps Server. This error mainly occurs to due to any of...
Read more >
unable to connect to Azure DevOps Server from VS 2019
2 Answers 2 · 1.Close all VS instances and then clean VS cache( %LocalAppData%\Microsoft\VisualStudio\16. · 2.Go to Control Panel -> User Accounts ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found