Comments (17)
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.
from denops.vim.
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:
- Restarting Vim
- Changing networks
- Turning network/wifi on and off again
- Running
:call denops#server#restart()
— This fails every time on different ports - 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`
- Manually running
ch_open
and thench_status
on127.0.0.1:32123
while the server runs.
ch_status
returnsfail
.
I'll continue investigating what's blocking this connection.
from denops.vim.
It seems you accidentally set
let g:denops_server_addr = '127.0.0.1:32123'
? That's for shared server feature so without using shared server, the connection will fail as expected.
I forgot to mention! This was not accidental. I wanted a consistent IP for the denops server for debugging, so I set that IP and ran the server manually. Then I tried running the connect
command with the same results.
So, to be clear, the server was running while I was doing this (and it could receive commands from other processes).
from denops.vim.
@stevematney What is your environment? I think you should test it with other environment.
@Shougo my work machine is a managed Macbook Pro with an Intel processor. I'm fairly certain it has something to do with the firewall that I can't modify or disable, and possibly some of the VPN integration stuff. I know there's not much I can do at the network level to isolate the issue. This is why I'd like to get to the bottom of why other plugins work and denops doesn't. If I can find that, maybe I can figure out how to keep denops running for me.
I also have been using denops and ddc on a personal M1 Macbook Pro, and haven't seen the same issue. It seems pretty clear that it has something to do with the setup on my other machine.
from denops.vim.
I haven't heard related issue recently so close it. Please create a new one if you face similar issue.
from denops.vim.
Colud you try if you can use denops on Neovim instead of Vim? I'd like to clarify that if the problem is Vim's recent change or not.
from denops.vim.
Sorry I only use vim not neovim... not sure how to install denops in neovim?
I tried downgrading to vim 8.2.3582, and I tried commenting out all vim-plug lines except Plug 'vim-denops/denops.vim'
, but these did not work. Maybe there's something else I can restart/reinstall? Could try restarting the laptop.
from denops.vim.
Hm. The port may be blocked by security. Can you check it in another machine or VM?
And deno is running?
from denops.vim.
I have tested ddc.vim with Vim latest version. It works for me.
from denops.vim.
Sorry I only use vim not neovim... not sure how to install denops in neovim?
Please install neovim from source and use denops without extra config.
from denops.vim.
restarting my macbook solved the problem
I had to do this as well after installing deno and plugins
from denops.vim.
I think the port is used or blocked by other applications.
from denops.vim.
[denops] Failed to connect
127.0.0.1:32123
: Failed to connect127.0.0.1:32123
It seems you accidentally set let g:denops_server_addr = '127.0.0.1:32123'
? That's for shared server feature so without using shared server, the connection will fail as expected.
from denops.vim.
One thing to note: other Vim plugins that use connections (like ALE with LSPs running) continue to work. I’ve been doing some investigating to try to derive why these work while denops does not, but I haven’t reached any conclusions yet.
from denops.vim.
@stevematney What is your environment?
I think you should test it with other environment.
from denops.vim.
Oh, OK. So it seems VPN or security soft or the firewall blocks denops connection.
Unfortunately, we cannot fix the problem from denops side.
This is why I'd like to get to the bottom of why other plugins work and denops doesn't. If I can find that, maybe I can figure out how to keep denops running for me.
The other software is popular, but denops is not. So they may block. It is terrible.
You can request denops connection should not be blocked though.
from denops.vim.
It seems more investigation is required so reopen it.
from denops.vim.
Related Issues (20)
- Sometimes connection closed by channel error HOT 5
- denops.vim does not work in Deno1.36.2 HOT 6
- Multiple calls to denops#plugin#wait_async() HOT 2
- What will happen if both client and server starts a rpc-request at the same time ? HOT 1
- There seems to be a memory leak in the denops server HOT 3
- Reassessing Worker usage for optimal performance
- Make plugin start up shared server if it's not already running HOT 2
- Neovim AppImage that includes Deno for easier installation? HOT 2
- DenopsReady does not start HOT 3
- Add a way to interrupt background process running on Deno HOT 1
- Expose a raw channel for denops.vim developers to manage the raw channel HOT 1
- `denops#plugin#is_loaded()` returns 0 at called from DenopsPluginPost event.
- Add tests for Vim script HOT 2
- Difficult to get to API reference for denops_std HOT 2
- Add a way to clean up (teardown) a plugin HOT 16
- Support JSR HOT 1
- Expose types for plugin's main function HOT 4
- `denops#server#close()` throws an error if channel does not exist
- Cloud not start denops process (Neovim: nightly/stable, Deno: 1.43.2, macOS: 14.4.1) HOT 7
- TODO: Update `Entrypoint` in denops-core HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from denops.vim.