kndndrj / nvim-dbee

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

Unable to connect to sqlite db `Dbee_register_connection` 'dbee' is not executable #39

Closed kaykhan closed 10 months ago

kaykhan commented 10 months ago

Hi i am trying this plugin for the first time. Attempting to connect to a sqlite db in my current directory.

{
"kndndrj/nvim-dbee",
dependencies = {
    "MunifTanjim/nui.nvim",
},
build = function()
    -- Install tries to automatically detect the install method.
    -- if it fails, try calling it with one of these parameters:
    --    "curl", "wget", "bitsadmin", "go"
    require("dbee").install()
end,
config = function()
    require("dbee").setup({ lazy = true, debug = true })
end,
},

image

:w

image

Despite enabling logs

cat ~/.cache/nvim/dbee/dbee.log                                                                                                                                                                            
cat: /home/kay/.cache/nvim/dbee/dbee.log: No such file or directory
NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3

Full error message:

 Error 08:41:07 notify.error nvim-dbee [handler]: BufWriteCmd Autocommands for ""..FuncUndefined Autocommands for "Dbee_register_connection"..function remote#define#FunctionBootstrap[1]..remote#host#Require[10]..29_Start_dbee, line 1: Vim(return):E475: Invalid value for argument cmd: 'dbee' is not executable

kndndrj commented 10 months ago

Hey, I think the install() hasn't finished yet, so backend is not executable. Can you try running require"dbee".install() and waiting for a while. The download is pretty big. If you don't want to download a precompiled binary, and have go toolchain installed, try running require"dbee".install("cgo") or (if that doesnt workinstall("go")

Let me know if that helped :)

kaykhan commented 10 months ago

Hey, I think the install() hasn't finished yet, so backend is not executable. Can you try running require"dbee".install() and waiting for a while. The download is pretty big. If you don't want to download a precompiled binary, and have go toolchain installed, try running require"dbee".install("cgo") or (if that doesnt workinstall("go")

Let me know if that helped :)

Hi thanks for the response

[dbee install]: installing dbee with: wget chmod [dbee install]: running command: wget [dbee install]: running command: chmod [dbee install]: successfully installed

after that it worked