Skip to content

Commit Failing : Server Address Not Found #476

@thecontinium

Description

@thecontinium

Description

Committing files is failing with the Neogit console error:

> git --no-pager -c color.ui=always --no-optional-locks commit
hint: Waiting for your editor to close the file... Error detected while processing command line:
E5108: Error executing lua ...thew/.local/share/nvim/lazy/neogit/lua/neogit/client.lua:43: NVIM server address not set
stack traceback:
        [C]: in function 'error'
        ...thew/.local/share/nvim/lazy/neogit/lua/neogit/client.lua:43: in function 'client'
Command "git --no-pager -c color.ui=always --no-optional-locks commit" running for more than: 2.0 seconds

Neovim version

NVIM v0.9.0-dev-2445+g320cb344c-dirty
Build type: Release
LuaJIT 2.1.0-beta3

same error on latest release 0.8.3.

Operating system and version

macOS 13.2.1

Steps to reproduce

  1. nvim -nu /tmp/minimal.lua
  2. Neogit
  3. c
  4. c

Expected behavior

Files committed

Actual behavior

No files committed.

Neogit console:

> git --no-pager -c color.ui=always --no-optional-locks commit
hint: Waiting for your editor to close the file... Error detected while processing command line:
E5108: Error executing lua ...thew/.local/share/nvim/lazy/neogit/lua/neogit/client.lua:43: NVIM server address not set
stack traceback:
        [C]: in function 'error'
        ...thew/.local/share/nvim/lazy/neogit/lua/neogit/client.lua:43: in function 'client'
Command "git --no-pager -c color.ui=always --no-optional-locks commit" running for more than: 2.0 seconds

Minimal config

vim.cmd([[set runtimepath=$VIMRUNTIME]])
vim.cmd([[set packpath=/tmp/nvim/site]])
local package_root = "/tmp/nvim/site/pack"
local install_path = package_root .. "/packer/start/packer.nvim"
local function load_plugins()
  require("packer").startup({
    {
      "wbthomason/packer.nvim",
      {
        "TimUntersberger/neogit",
        requires = {
          { "nvim-lua/plenary.nvim" },
          { "sindrets/diffview.nvim" },
        },
        config = function()
          print("loaded neogit")
          require("neogit").setup()
        end,
      },
    },
    config = {
      package_root = package_root,
      compile_path = install_path .. "/plugin/packer_compiled.lua",
      display = { non_interactive = true },
    },
  })
end
if vim.fn.isdirectory(install_path) == 0 then
  print("Installing neogit and dependencies.")
  vim.fn.system({ "git", "clone", "--depth=1", "https://github.com/wbthomason/packer.nvim", install_path })
end
load_plugins()
require("packer").sync()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions