Skip to content

DBUI fails due to typo in connection adapter #313

@aideet

Description

@aideet

Hey,

i run neovim on macos 15.3.1 and installed vim-dadbod and vim-dadbod-ui via lazy:

    ● vim-dadbod 1.01ms  vim-dadbod-ui
        dir    /Users/daniel.tscherwinka/.local/share/nvim/lazy/vim-dadbod
        url    https://github.com/tpope/vim-dadbod
        branch master
        commit 9f0ca8b
        help   |dadbod.txt|

      ✔ [task] checkout 3.55ms
    ● vim-dadbod-ui 28.8ms  DBUIToggle
        dir    /Users/daniel.tscherwinka/.local/share/nvim/lazy/vim-dadbod-ui
        url    https://github.com/kristijanhusak/vim-dadbod-ui
        branch master
        commit f4d37b7
        readme README.md
        help   |dadbod-ui.txt|
        cmd     DBUIAddConnection  DBUIFindBuffer  DBUI  DBUIToggle 

      ✔ [task] fetch 498.16ms
      ✔ [task] status 17.95ms
      ✔ [task] checkout 0.15ms

I launched the ui (:DBUI) and added a connection with a typo in the adapter ( posgres://user:pass@localhost/db )

Now i cannot re-open the UI because :DBUI fails with:

Error executing Lua callback: .../share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:48: function db_ui#toggle[1]..<SNR>56_init[2]..4[25]..6[10]..7[35]..18[10]..db#adapter#call[1]..<SNR>61_fnname[1]..<SNR>61_prefix, line 20: DB: no ada
pter for posgresql                                                                                                                                                                                                                              
stack traceback:                                                                                                                                                                                                                                
        [C]: in function 'cmd'                                                                                                                                                                                                                  
        .../share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:48: in function <.../share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:16>

How can i delete the connection config? I deleted ~/.local/share/nvim/lazy/vim-dadbod* and ~/.cache/nvim but the issues stays...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions