nvim-dbee
nvim-dbee copied to clipboard
[MongoDB] Failed to List Databases
Steps to reproduce:
- Add a MongoDB data source
- Place the cursor over the source
- Perform the
toggle (o)action - Get the error
E5108: Error executing lua: function DbeeConnectionListDatabases[1]..remote#define#request, line 2: Vim(let):Error invoking '0:function:DbeeConnectionListDatabases' on channel 5:
c.ListDatabases: switcher.ListDatabases: failed to retrieve database names: (AtlasError) Unallowed argument in listDatabases command: filter
stack traceback:
[C]: in function 'DbeeConnectionListDatabases'
/mnt/f/Projects/nvim-dbee/lua/dbee/handler/init.lua:256: in function 'connection_list_databases'
/mnt/f/Projects/nvim-dbee/lua/dbee/ui/drawer/convert.lua:95: in function 'lazy_children'
/mnt/f/Projects/nvim-dbee/lua/dbee/ui/drawer/init.lua:208: in function 'expand_node'
/mnt/f/Projects/nvim-dbee/lua/dbee/ui/drawer/init.lua:293: in function </mnt/f/Projects/nvim-dbee/lua/dbee/ui/drawer/init.lua:285>
Same error here
I got a similar error, but not the exact same
E5108: Error executing lua: function DbeeConnectionListDatabases[1]..remote#define#request, line 2: Vim(let):Error invoking '0:function:DbeeConnectionListDatabases' on channel 5:
c.ListDatabases: switcher.ListDatabases: failed to retrieve database names: (AtlasError) Expected user provided "name" field in filter to be regex or string was primitive.D instead
stack traceback:
[C]: in function 'DbeeConnectionListDatabases'
...ocal/share/nvim/lazy/nvim-dbee/lua/dbee/handler/init.lua:256: in function 'connection_list_databases'
...share/nvim/lazy/nvim-dbee/lua/dbee/ui/drawer/convert.lua:95: in function 'lazy_children'
...al/share/nvim/lazy/nvim-dbee/lua/dbee/ui/drawer/init.lua:208: in function 'expand_node'
...al/share/nvim/lazy/nvim-dbee/lua/dbee/ui/drawer/init.lua:293: in function <...al/share/nvim/lazy/nvim-dbee/lua/dbee/ui/drawer/init.lua:285>
It looks like the command to filter the database list is malformed. Funny enough, comparing the code with the documentation, it looks fine.
I have no experience with Go, but I'm down to fixing this, since MongoDB probably isn't priority for the maintainers, and I want something nice to migrate out of Mongo Compass.