Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
TroySigX opened this issue Jan 14, 2024 · 6 comments
Closed

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

TroySigX opened this issue Jan 14, 2024 · 6 comments

Comments

@TroySigX
Copy link

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
Copy link
Owner

kndndrj commented Jan 14, 2024

can you paste the output of :checkhealth dbee

@TroySigX
Copy link
Author

TroySigX commented Jan 14, 2024

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
Copy link
Owner

kndndrj commented Jan 14, 2024

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

@TroySigX
Copy link
Author

TroySigX commented Jan 14, 2024

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

@JustBarnt
Copy link
Contributor

JustBarnt commented Mar 4, 2024

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 kndndrj mentioned this issue Apr 9, 2024
@kndndrj
Copy link
Owner

kndndrj commented Apr 24, 2024

Fixed with #98

@kndndrj kndndrj closed this as completed Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants