kndndrj / nvim-dbee

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

[Help wanted] "dbee" command not found #73

Closed TroySigX closed 2 months ago

TroySigX commented 6 months ago

When I try to open the UI, an error occurs:

DbeeGetCurrentConnection Vim:E475: Invalid value for argument cmd: 'dbee' is not executable
stack traceback:
^I[C]: at 0x562fee0b0130
^I[C]: in function 'pcall'
^I...ocal/share/nvim/lazy/nvim-dbee/lua/dbee/handler/init.lua:160: in function 'get_current_connection'
^I...al/share/nvim/lazy/nvim-dbee/lua/dbee/ui/drawer/init.lua:62: in function 'new'
^I....local/share/nvim/lazy/nvim-dbee/lua/dbee/entry/init.lua:93: in function 'setup_ui'
^I....local/share/nvim/lazy/nvim-dbee/lua/dbee/entry/init.lua:135: in function 'open_ui'
^I....local/share/nvim/lazy/nvim-dbee/lua/dbee/entry/init.lua:130: in function 'toggle_ui'
^I...e/troysigx/.local/share/nvim/lazy/nvim-dbee/lua/dbee.lua:24: in function 'toggle'
^I[string ":lua"]:1: in main chunk

Here is my config using lazy.nvim:

{
    '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(--[[optional config]])
    end,
  }
kndndrj commented 6 months ago

can you paste the output of :checkhealth dbee

TroySigX commented 6 months ago

Here's the output:

==============================================================================
dbee: require("dbee.health").check()

DBee report ~
- ERROR Binary not executable: /home/troysigx/.local/share/nvim/dbee/bin/dbee.

And my kernel is: 6.6.10-arch1-1

kndndrj commented 6 months ago

try running require"dbee".install() and don't close vim until you see the success message (it's a ~25mb download).

TroySigX commented 6 months ago

It seems that because of this issue #72, lazy doesn't run the build command when I first install the plugin

JustBarnt commented 4 months ago

Hello, I am having the same issue, I manually ran the install via `require("dbee").install("go").

It almost seems like the file go builds doesn't get a proper extensions as checkhealth seems to print bin.dbee. like it is missing an extension

Update: Correcting the file in the bin to have a .exe extensions corrects the chechhealth call to have an ok status for the binary. But the error mentioned this initial bug report still persists

checkhealth dbee prints:

dbee: require("dbee.health").check()

- WARNING vim.health.report_start() is deprecated, use vim.health.start() instead. :help |deprecated|
  This feature will be removed in Nvim version 0.11

DBee report ~
- WARNING vim.health.report_error() is deprecated, use vim.health.error() instead. :help |deprecated|
  This feature will be removed in Nvim version 0.11
- ERROR Binary not executable: C:\Users\bwilliams\AppData\Local\nvim-data/dbee/bin/dbee.
kndndrj commented 2 months ago

Fixed with #98