vim-denops / denops.vim

🐜 An ecosystem of Vim/Neovim which allows developers to write cross-platform plugins in Deno
https://vim-denops.github.io/denops-documentation/
MIT License
666 stars 33 forks source link

Cloud not start denops process (Neovim: nightly/stable, Deno: 1.43.2, macOS: 14.4.1) #341

Closed peacock0803sz closed 4 months ago

peacock0803sz commented 4 months ago

Description

Deno start denops process (only for macOS?) since deno@1.43.2, but It can do correctly with deno@1.43.1 (previous version).

Environment Info

Expected behavior

Works with deno v1.43.2 (latest) in macOS

Step to reproduce

Starting denops shared server with deno run -A --no-lock path/to/vim-denops/denops.vim/denops/@denops-private/cli.ts --hostname=127.0.0.1 --port=32123, and create init.vim as following.

set nocompatible
set runtimepath+=path/to/vim-denops/denops.vim

let g:denops#debug = v:true
let g:denops#trace = v:true
let g:denops_server_addr = '127.0.0.1:32123'

Then, start Neovim with the init.vim (nvim -U NONE -u init.vim), the deno process will crash with segmentation fault like bellow

$ deno run -A --no-lock ./denops/@denops-private/cli.ts --hostname=127.0.0.1 --port=32123
Listen denops clients on 127.0.0.1:32123
127.0.0.1:60178 is connected
zsh: segmentation fault  deno run -A --no-lock ./denops/@denops-private/cli.ts --hostname=127.0.0.1

The log message in Neovim (with :messages) as is:

[denops] Connecting to channel `127.0.0.1:32123` [1/4]
[denops] Channel connected (127.0.0.1:32123)
[denops] Channel closed (127.0.0.1:32123)
[denops] DenopsClosed
[denops] Channel closed. Reconnecting...
[denops] Connecting to channel `127.0.0.1:32123` [1/4]
[denops] Failed to connect channel `127.0.0.1:32123` [1/4]: Vim(let):ζŽ₯ηΆšγ«ε€±ζ•—γ—γΎγ—γŸ: ζŽ₯碚
γŒζ‹’ε¦γ•γ‚ŒγΎγ—γŸ
[denops] Connecting to channel `127.0.0.1:32123` [2/4]
[denops] Failed to connect channel `127.0.0.1:32123` [2/4]: Vim(let):ζŽ₯ηΆšγ«ε€±ζ•—γ—γΎγ—γŸ: ζŽ₯碚
γŒζ‹’ε¦γ•γ‚ŒγΎγ—γŸ
[denops] Connecting to channel `127.0.0.1:32123` [3/4]
[denops] Failed to connect channel `127.0.0.1:32123` [3/4]: Vim(let):ζŽ₯ηΆšγ«ε€±ζ•—γ—γΎγ—γŸ: ζŽ₯碚
γŒζ‹’ε¦γ•γ‚ŒγΎγ—γŸ
[denops] Failed to connect channel `127.0.0.1:32123`: Vim(let):ζŽ₯ηΆšγ«ε€±ζ•—γ—γΎγ—γŸ: ζŽ₯ηΆšγŒζ‹’ε¦
γ•γ‚ŒγΎγ—γŸ
Shougo commented 4 months ago

Hm... It works for me.

peacock0803sz commented 4 months ago

There was no problem with deno v1.43.1 or Linux, so it might deno problem....?

mopp commented 4 months ago

I might have faced the same issues on my mac os.

It was resolved using the deno by the official installer. https://deno.com/ I'm not sure the reason why.

I used the deno installed by Homebrew. Then, the cause may be Homebrew.

ryota2357 commented 4 months ago

I have not faced this issue and also have not reproduced it with minimal init.vim

I'm using:

peacock0803sz commented 4 months ago

Oh, It does not occur with official binary from denoland, Probably that's homebrew issue πŸ‘€

peacock0803sz commented 4 months ago

Exactly. I found the cause issue at denoland/deno πŸ’― https://github.com/denoland/deno/issues/23766

peacock0803sz commented 4 months ago

It's not denops's problem, I'll close this issue πŸ™‡ Thank you to @mopp @ryota2357 for checking/sharing conditions :)