Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest commit broke with attempt to call field 'system' (a nil value) #1295

Closed
andradei opened this issue May 16, 2024 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@andradei
Copy link

andradei commented May 16, 2024

Description

The commit 16ee9ae broke. Trying to run Neogit results in:

Error executing Lua callback: .../share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:48: Vim:Error executing Lua callback:
 ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:616: attempt to call field 'system' (a nil value)
stack traceback:
        ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:616: in function 'git_root'
        /home/me/.local/share/nvim/lazy/neogit/lua/neogit.lua:86: in function 'construct_opts'
        /home/me/.local/share/nvim/lazy/neogit/lua/neogit.lua:164: in function 'open'
        ...me/.local/share/nvim/lazy/neogit/plugin/neogit.lua:5: in function <...me/.local/share/nvim/lazy/neogit/p
lugin/neogit.lua:3>
        [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/cor
e/handler/cmd.lua:16>
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/cor
e/handler/cmd.lua:16>

:lua vim.system results in nil for me (see version below)

Neovim version

NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1713773202

Operating system and version

Arch (EndeavourOS)

Steps to reproduce

  1. Run :Neogit

Expected behavior

Neogit opens

Actual behavior

Crash with the error on description.

Minimal config

Install via Lazy


{
    "NeogitOrg/neogit",
    cmd = "Neogit",
    dependencies = {
      "nvim-lua/plenary.nvim", -- required
      "sindrets/diffview.nvim", -- optional - Diff integration
      "nvim-telescope/telescope.nvim",
    },
    opts =  {},
}
@andradei andradei added the bug Something isn't working label May 16, 2024
@arnawldo
Copy link

I have the same issue.

NVIM v0.95
Neogit 9040f6f

@milanglacier
Copy link
Contributor

This is because neogit merges nightly branch and support 0.10+ only.

I suggest create a stable branch for 0.9.5 users so that the user does not need to manully pin at a specific commit.

@desdic
Copy link

desdic commented May 17, 2024

This is because neogit merges nightly branch and support 0.10+ only.

I suggest create a stable branch for 0.9.5 users so that the user does not need to manully pin at a specific commit.

The README states that its compatible with stable to

The master branch will always be compatible with the latest stable release of Neovim, and usually with the latest nightly build as well.

@CKolkey
Copy link
Member

CKolkey commented May 17, 2024

I made a tag for nvim 0.9 users: https://github.com/NeogitOrg/neogit/releases/tag/v0.0.1

HEAD follows the latest stable version of neovim, which is now 0.10 https://github.com/neovim/neovim/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants