folke / lazy.nvim

💤 A modern plugin manager for Neovim
https://lazy.folke.io/
Apache License 2.0
14.32k stars 344 forks source link

bug: git.lua:35: bad argument #1 to 'assert' (value expected) #301

Closed surmish closed 1 year ago

surmish commented 1 year ago

Did you check docs and existing issues?

Neovim version (nvim -v)

nightly

Operating system/version

linux

Describe the bug

Failed (11)
    ○ LazyVim
        ...l/share/nvim/lazy/lazy.nvim/lua/lazy/manage/task/git.lua:35: bad argument #1 to 'assert' (value expected)
    ○ drop.nvim  VeryLazy
        ...l/share/nvim/lazy/lazy.nvim/lua/lazy/manage/task/git.lua:35: bad argument #1 to 'assert' (value expected)
    ○ neodev.nvim
        ...l/share/nvim/lazy/lazy.nvim/lua/lazy/manage/task/git.lua:35: bad argument #1 to 'assert' (value expected)
    ○ noice.nvim  VeryLazy
        ...l/share/nvim/lazy/lazy.nvim/lua/lazy/manage/task/git.lua:35: bad argument #1 to 'assert' (value expected)
    ○ persistence.nvim  BufReadPre
        ...l/share/nvim/lazy/lazy.nvim/lua/lazy/manage/task/git.lua:35: bad argument #1 to 'assert' (value expected)
    ● styler.nvim 0.18ms  VeryLazy
        ...l/share/nvim/lazy/lazy.nvim/lua/lazy/manage/task/git.lua:35: bad argument #1 to 'assert' (value expected)
    ○ todo-comments.nvim   TodoTelescope  BufReadPost   [t
        ...l/share/nvim/lazy/lazy.nvim/lua/lazy/manage/task/git.lua:35: bad argument #1 to 'assert' (value expected)
    ● tokyonight.nvim 6.41ms  start
        ...l/share/nvim/lazy/lazy.nvim/lua/lazy/manage/task/git.lua:35: bad argument #1 to 'assert' (value expected)
    ○ trouble.nvim   Trouble
        ...l/share/nvim/lazy/lazy.nvim/lua/lazy/manage/task/git.lua:35: bad argument #1 to 'assert' (value expected)
    ○ twilight.nvim
        ...l/share/nvim/lazy/lazy.nvim/lua/lazy/manage/task/git.lua:35: bad argument #1 to 'assert' (value expected)
    ○ zen-mode.nvim   ZenMode
        ...l/share/nvim/lazy/lazy.nvim/lua/lazy/manage/task/git.lua:35: bad argument #1 to 'assert' (value expected)

Steps To Reproduce

I'm trying out folke's repo (folke/dot/config/nvim)

On bringing up neovim, the error appears in the lazy pop-up window.

Expected Behavior

No errors.

folke commented 1 year ago

If I understand correctly you cloned my dots and tried using that?

I'm making some big adjustments, so it's very likely that what I have on Github right now is broken. I just pushed all my dots and LazyVim though, but haven't ran a lot of tests. Works for me though :)

surmish commented 1 year ago

Hi Folke,

I see it being reported elsewhere too

https://old.reddit.com/r/neovim/comments/zvog2d/lazynvim_is_amazing/j1vg00k/

folke commented 1 year ago

did you set config.dev.patterns = {"folke"}? You should not do that, that's my dev env :)

Meaning that all folke plugins, will be loaded from my ~/projects folder. Don't set that in your config

surmish commented 1 year ago

That was it! Thanks! Also had to set use_dev and dev to false in lazy.lua.