kndndrj / nvim-dbee

Interactive database client for neovim
GNU General Public License v3.0
606 stars 39 forks source link

Registering resource fails when running the Dbee command from go installation #117

Open Dodilanne opened 1 month ago

Dodilanne commented 1 month ago

Thank you for this awesome plugin!

When building the dbee executable with require("dbee").install("go"), I get the following error whenever I run the Dbee command from inside neovim:

Preview:

image

Raw:

[core]: failed registering source: .env.dbee.json function 
DbeeCreateConnection[1]..remote#define#request, line 2: Vim(let):Error 
invoking '0:function:DbeeCreateConnection' on channel 5:
Invalid channel: 5

At first I was trying to build the executable from the source code to make a contribution and was getting the same error.

However, if I build the dbee executable with the curl strategy (require("dbee").install("curl")), everything works fine.

Any ideas as to what could be causing this error?

Environment

OS:
macOS Sonoma 14.5

golang:
go version go1.21.10 darwin/arm64

nvim:
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1703358377

nvim-dbee:
commit 85622c8
andradei commented 4 days ago

Same on arch linux.