Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

[Bug]: :Patchr {reset|apply} {plugin} fails #4

@powerman

Description

@powerman

Without {plugin} arg both reset and apply works okay, but with {plugin} arg they both fail:

reset:

Error executing Lua callback: ...ocal/share/nvim/lazy/patchr.nvim/lua/patchr/patching.lua:13: bad ar
gument #1 to 'ipairs' (table expected, got string)                                                  
stack traceback:                                                                                    
        [C]: in function 'ipairs'                                                                   
        ...ocal/share/nvim/lazy/patchr.nvim/lua/patchr/patching.lua:13: in function 'reset_plugin_re
positories'                                                                                         
        ...an/.local/share/nvim/lazy/patchr.nvim/lua/patchr/cmd.lua:10: in function 'reset'         
        ...an/.local/share/nvim/lazy/patchr.nvim/lua/patchr/cmd.lua:38: in function 'handle'        
        ...n/.local/share/nvim/lazy/patchr.nvim/lua/patchr/init.lua:6: in function <...n/.local/shar
e/nvim/lazy/patchr.nvim/lua/patchr/init.lua:5>                                                      

apply:

Error executing Lua callback: ...ocal/share/nvim/lazy/patchr.nvim/lua/patchr/patching.lua:61: bad ar
gument #1 to 'ipairs' (table expected, got string)                                                  
stack traceback:                                                                                    
        [C]: in function 'ipairs'                                                                   
        ...ocal/share/nvim/lazy/patchr.nvim/lua/patchr/patching.lua:61: in function 'apply_patches' 
        ...an/.local/share/nvim/lazy/patchr.nvim/lua/patchr/cmd.lua:18: in function 'apply'         
        ...an/.local/share/nvim/lazy/patchr.nvim/lua/patchr/cmd.lua:40: in function 'handle'        
        ...n/.local/share/nvim/lazy/patchr.nvim/lua/patchr/init.lua:6: in function <...n/.local/shar
e/nvim/lazy/patchr.nvim/lua/patchr/init.lua:5>                                                      

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