Skip to content

Error message when opening #465

@TheodorRene

Description

@TheodorRene

Description

Struggling with a weird bug. Things have been working great for some time now, but suddenly this error message pops up when opening Neogit. It does not go away. It happens from time to time, I think the same message has happened before but it vanished somehow. I tried reinstalling Neovim and the Neogit, but no luck.

Neovim version

NVIM v0.9.0-dev-843+g860fea1a3

Operating system and version

Ubuntu 22.04.1 LTS

Steps to reproduce

  1. Open Neogit
    Cannot be reproduced with minimal.lua. I just post this to see if someone recognizes something. Maybe it crashes with some of the other plugins I have:
    Plugins:
    • alpha-nvim
    • bufferline.nvim
    • catppuccin
    • cmp-buffer
    • cmp-nvim-lsp
    • cmp-vsnip
    • conjure (not loaded)
    • copilot.vim
    • diffview.nvim
    • duckytype.nvim
    • feline.nvim
    • fidget.nvim
    • gitsigns.nvim
    • impatient.nvim
    • incline.nvim
    • leap.nvim
    • lspkind-nvim
    • lspsaga.nvim
    • neoformat
    • neogit
    • neorg (not loaded)
    • neoscroll.nvim
    • nvim-cmp
    • nvim-lspconfig
    • nvim-spectre
    • nvim-tree.lua
    • nvim-treesitter
    • nvim-web-devicons
    • packer.nvim
    • playground
    • plenary.nvim
    • rust-tools.nvim
    • skriveleif
    • telescope-file-browser.nvim
    • telescope.nvim
    • tokyonight.nvim
    • trouble.nvim
    • vim-commentary
    • vim-fugitive
    • vim-startuptime
    • vim-surround
    • vim-vsnip
    • vim-vsnip-integ
    • which-key.nvim
    • winshift.nvim

Expected behavior

Neogit opens cleanly

Actual behavior

An error message is shown

Error detected while processing CursorMoved Autocommands for "<buffer=3>":
E5108: Error executing lua .../site/pack/packer/start/neogit/lua/neogit/lib/buffer.lua:270: CursorMoved Autocommands for "<buffer=3>"..script nvim_exec() called at CursorMoved Autocommands for "<buffer=3>":0: Vim
(sign):E155: Unknown sign: NeogitDiffContextHighlight
stack traceback:
        [C]: in function 'cmd'
        .../site/pack/packer/start/neogit/lua/neogit/lib/buffer.lua:270: in function 'place_sign'
        ...nvim/site/pack/packer/start/neogit/lua/neogit/status.lua:1068: in function 'update_highlight'
        [string ":lua"]:1: in main chun

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