Git Product home page Git Product logo

Comments (7)

Dmitrev avatar Dmitrev commented on July 2, 2024

Same issue, uncommenting the dir line did the trick for me, lets me install it atleast:

{
  "kndndrj/nvim-dbee",
  -- dir = require("secrets").get("dbee_path"),
  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,
},

After install the plugin doesn't seem to work:

Running install

:lua require('dbee').install()

[install]: installing dbee with:  wget chmod                                                                                                                                                    
[install]: running command: wget                                                                                                                                                                
Press ENTER or type command to continue

after presssing ENTER:

Error executing luv callback:
vim/_editor.lua:0: E5560: nvim_echo must not be called in a lua loop callback
stack traceback:
        [C]: in function 'nvim_echo'
        vim/_editor.lua: in function 'notify'
        ....local/share/nvim/lazy/nvim-dbee/lua/dbee/utils/init.lua:72: in function 'log'
        ...ocal/share/nvim/lazy/nvim-dbee/lua/dbee/install/init.lua:7: in function 'log_info'
        ...ocal/share/nvim/lazy/nvim-dbee/lua/dbee/install/init.lua:168: in function 'run_jobs'
        ...ocal/share/nvim/lazy/nvim-dbee/lua/dbee/install/init.lua:199: in function <...ocal/share/nvim/lazy/nvim-dbee/lua/dbee/install/init.lua:192>
Press ENTER or type command to continue

Running open

:lua require('dbee').open()

E5108: Error executing lua FuncUndefined Autocommands for "Dbee_set_results_buf"..function remote#define#FunctionBootstrap[1]..remote#host#Require[10]..<SNR>10_Start_dbee, line 1: Vim(return):
E475: Invalid value for argument cmd: 'dbee' is not executable
stack traceback:
        [C]: in function 'Dbee_set_results_buf'
        ...ri/.local/share/nvim/lazy/nvim-dbee/lua/dbee/handler.lua:361: in function 'open'
        /home/dmitri/.local/share/nvim/lazy/nvim-dbee/lua/dbee.lua:110: in function 'open'
        [string ":lua"]:1: in main chunk
Press ENTER or type command to continue

from nvim-dbee.

kndndrj avatar kndndrj commented on July 2, 2024

@cseickel , @Dmitrev
Hi, thanks for showing interest in the plugin!
for the first issue: you already figured out... I'm terribly sorry about that - I just copy-pasted that from my config and didn't catch that - but yeah, "dir" shouldn't be there.

as for issue nr.2 - it seems there are some issues with nvim's built-in notify function. Either way this doesn't mean it's been installed yet:

[install]: installing dbee with:  wget chmod                                                                                                                                                    
[install]: running command: wget                                                                                                                                                                
Press ENTER or type command to continue

please wait untill you see something like sucessfully installed before pressing enter.

Please try this out and let me know if it solved the issue.
meanwhile I need to remove dirfrom the readme and look into the second issue.

from nvim-dbee.

kndndrj avatar kndndrj commented on July 2, 2024

@Dmitrev @cseickel
Update: Edited the readme and addressed the install issue.

from nvim-dbee.

cseickel avatar cseickel commented on July 2, 2024

Thanks @Dmitrev. I managed to get through the install and setup, but it fails on open:

E5108: Error executing lua ...ser/.local/share/nvim/lazy/nvim-dbee/lua/dbee/drawer.lua:133: attempt to index a nil value                                         
stack traceback:                                                                                                                                                 
        ...ser/.local/share/nvim/lazy/nvim-dbee/lua/dbee/drawer.lua:133: in function 'prepare_node'                                                              
        ...er/.local/share/nvim/lazy/nui.nvim/lua/nui/tree/init.lua:388: in function 'prepare'                                                                   
        ...er/.local/share/nvim/lazy/nui.nvim/lua/nui/tree/init.lua:416: in function '_prepare_content'                                                          
        ...er/.local/share/nvim/lazy/nui.nvim/lua/nui/tree/init.lua:431: in function 'render'                                                                    
        ...ser/.local/share/nvim/lazy/nvim-dbee/lua/dbee/drawer.lua:430: in function 'open'                                                                      
        /home/user/.local/share/nvim/lazy/nvim-dbee/lua/dbee.lua:110: in function 'open'                                                                         
        [string ":lua"]:1: in main chunk 

I'm guessing it doesn't work with a brand new install without any connections.

from nvim-dbee.

kndndrj avatar kndndrj commented on July 2, 2024

Oh, you are right... I'll add a log message. Thanks

from nvim-dbee.

kndndrj avatar kndndrj commented on July 2, 2024

@cseickel
Update: fixed

from nvim-dbee.

cseickel avatar cseickel commented on July 2, 2024

That works!

from nvim-dbee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.