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

Error on :Dbee start #145

Open
MikeLemo1 opened this issue Aug 25, 2024 · 1 comment
Open

Error on :Dbee start #145

MikeLemo1 opened this issue Aug 25, 2024 · 1 comment

Comments

@MikeLemo1
Copy link

config:

  "kndndrj/nvim-dbee",
  event = {"BufEnter"},
  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,
}

When I start DBee in lazy nvim config I always get the folowing error:

DbeeCreateConnection table: 0x7a603deb5520 Vim:E475: Invalid value for argument cmd: 'dbee' is not executable
stack traceback:
^I[C]: at 0x5ab1cdc35824
^I[C]: in function 'DbeeCreateConnection'
^I...ocal/share/nvim/lazy/nvim-dbee/lua/dbee/handler/init.lua:82: in function 'source_reload'
^I...ocal/share/nvim/lazy/nvim-dbee/lua/dbee/handler/init.lua:47: in function <...ocal/share/nvim/lazy/nvim-dbee/lua/dbee/handler/init.lua:41>
^I[C]: in function 'pcall'
^I...ocal/share/nvim/lazy/nvim-dbee/lua/dbee/handler/init.lua:24: in function 'new'
^I.../.local/share/nvim/lazy/nvim-dbee/lua/dbee/api/state.lua:42: in function 'setup_handler'
^I.../.local/share/nvim/lazy/nvim-dbee/lua/dbee/api/state.lua:58: in function 'setup_ui'
^I.../.local/share/nvim/lazy/nvim-dbee/lua/dbee/api/state.lua:100: in function 'editor'
^I...ong/.local/share/nvim/lazy/nvim-dbee/lua/dbee/api/ui.lua:115: in function 'editor_show'
^I...ocal/share/nvim/lazy/nvim-dbee/lua/dbee/layouts/init.lua:140: in function 'open'
^I/home/pong/.local/share/nvim/lazy/nvim-dbee/lua/dbee.lua:46: in function 'open'
^I/home/pong/.local/share/nvim/lazy/nvim-dbee/lua/dbee.lua:37: in function 'toggle'
^I/home/pong/.local/share/nvim/lazy/nvim-dbee/plugin/dbee.lua:53: in function </home/pong/.local/share/nvim/lazy/nvim-dbee/plugin/dbee.lua:32>

What does it mean?

also I'm trying to connect to a docker sql server made from the project inventree and I'm not sure about the default credentials there like user pass and db name and ip if there's someone here that's connected to such server and has a solution would come handy.

@zivkovicn
Copy link

try running:
lua require("dbee").install()

in cmd, that solved the issue for me - in order to run the plugin, for me the build function was not executed.

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

2 participants