packer.nvim icon indicating copy to clipboard operation
packer.nvim copied to clipboard

Update fails with strange error

Open augustebaum opened this issue 3 years ago • 8 comments

  • nvim --version: 0.6.0
  • git --version: 2.34.1
  • Operating system/version: MacOS 12.1 (Monterey)
  • Terminal name/version: kitty 0.23.1

Steps to reproduce

Run :PackerUpdate.

Actual behaviour

Error executing vim.schedule lua callback: ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:256: Expected 4 arguments                                                                                                                
stack traceback:                                                                                                                                                                                                                                
        [C]: in function 'get_extmark_by_id'                                                                                                                                                                                                    
        ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:256: in function 'cb'                                                                                                                                                       
        vim.lua:285: in function <vim.lua:285>                                                                                                                                                                                                  
Press ENTER or type command to continue                                                                                                                                                                                                         
Error executing vim.schedule lua callback: ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:256: Expected 4 arguments                                                                                                                
stack traceback:                                                                                                                                                                                                                                
        [C]: in function 'get_extmark_by_id'                                                                                                                                                                                                    
        ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:256: in function 'cb'                                                                                                                                                       
        vim.lua:285: in function <vim.lua:285>                                                                                                                                                                                                  
Press ENTER or type command to continue                                                                                                                                                                                                         
[packer.nvim] [ERROR 10:33:42] display.lua:32: Failed to get extmark: Expected lua number                                                                                                                                                       
Press ENTER or type command to continue                                                                                                                                                                                                         
[packer.nvim] [ERROR 10:33:47] display.lua:32: Failed to get extmark: Expected lua number                                                                                                                                                       
Press ENTER or type command to continue 

then the pop-up appears with nothing special in it (apart from "failure to update" messages).

Expected behaviour

Update works with no errors.

packer files

Plugin specification file(s)
-- Plugins
vim.cmd("filetype plugin on")

vim.cmd[[
  augroup packer_user_config
    autocmd!
    autocmd BufWritePost plugins.lua source <afile> | PackerCompile
  augroup end
]]

require "packer".startup({function(use)
  -- Packer can manage itself
  use "wbthomason/packer.nvim"

  use "lewis6991/impatient.nvim"

  use {"nvim-treesitter/nvim-treesitter", as="treesitter"}
  use "nvim-treesitter/nvim-treesitter-textobjects"

  use {"neovim/nvim-lspconfig", as="lsp-config"}

  use "hrsh7th/cmp-nvim-lsp"
  use "hrsh7th/cmp-buffer"
  use "hrsh7th/cmp-path"
  use "hrsh7th/cmp-cmdline"
  use "dcampos/cmp-snippy"
  use "hrsh7th/nvim-cmp"

  use "dcampos/nvim-snippy"

  use "machakann/vim-sandwich"

  -- use "preservim/nerdcommenter"
  use {
    "numToStr/comment.nvim",
    as="comment",
    config=function()
      require('Comment').setup{
        padding = true,
        sticky = false,
        ignore = '^$',
        toggler = {
          -- line-comment keymap
          line = 'gcc',
          -- block-comment keymap
          block = 'gbc',
        },
        opleader = {
          -- line-comment keymap
          line = 'gc',
          -- block-comment keymap
          block = 'gb',
        },
        mappings = {
          -- operator-pending mapping
          -- Includes `gcc`, `gbc`, `gc[count]{motion}` and `gb[count]{motion}`
          -- NOTE: These mappings can be changed individually by `opleader` and `toggler` config
          basic = true,
          -- extra mapping
          -- Includes `gco`, `gcO`, `gcA`
          extra = true,
          -- extended mapping
          -- Includes `g>`, `g<`, `g>[count]{motion}` and `g<[count]{motion}`
          extended = true,
        },
      }
    end
  }

  use {
    "alexherbo2/kakoune.vim",
    as="kakoune",
    config=function()
      map('n', '<C-k>', '<Plug>(Kakoune)', noremap)
      map('v', '<C-k>', '<Plug>(Kakoune)', noremap)
    end
  }


  -- fzy-powered menu for everything
  use {'nvim-lua/popup.nvim', as="popup"}
  use {'nvim-lua/plenary.nvim', as="plenary"}

  use {"nvim-telescope/telescope.nvim", as="telescope"}
  use {'nvim-telescope/telescope-fzy-native.nvim', run='git submodule update --init --recursive'}
  use {'nvim-telescope/telescope-project.nvim', run='git submodule update --init --recursive'}

  -- Deal with projects
  use {"ahmedkhalf/project.nvim", as="project", config="require('project_nvim').setup()"}

  -- Discover key bindings
  use {"folke/which-key.nvim", as="which-key", config="require 'which-key'.setup{}"}

  -- Motions
  -- use {"ggandor/lightspeed.nvim", as="lightspeed"}

  -- Move between files
  use "ThePrimeagen/harpoon"

  use {
    "mfussenegger/nvim-lint",
    as = "lint",
    config = function()
      require('lint').linters_by_ft = {
        markdown = {'vale',},
        python = {"pylint"}
      }
    end,
  }

  -- Quickfix list
  use {
    "folke/trouble.nvim",
    as = "trouble",
    requires = "kyazdani42/nvim-web-devicons",
    config = function() require("trouble").setup{} end,
  }

  -- Launch tests from vim
  use {
    "vim-test/vim-test",
    -- cmd = { "TestNearest", "TestFile", "TestSuite", "TestLast", "TestVisit" },
    config = function()
      -- g["test#strategy"] = "harpoon"
      g["test#go#runner"] = "gotest"
    end,
  }

  use {
    "rcarriga/vim-ultest",
    requires = "vim-test/vim-test",
    run = ":UpdateRemotePlugins",
    config = function()
      map('n', 't]', '<Plug>(ultest-next-fail)', noremap)
      map('n', 't[', '<Plug>(ultest-prev-fail)', noremap)
    end
  }

  -- REPL within vim
  use {"hkupty/iron.nvim", as = "iron", opt = true}

  -- IPython from nvim
  use {"bfredl/nvim-ipy", as = "ipy"}

  use "vimwiki/vimwiki"
  -- use "michal-h21/vim-zettel"

  -- Augroups in lua syntax (hopefully integrated in nvim soon)
  use {"delphinus/agrp.nvim", as="agrp"}

  -- Git
  use {'sindrets/diffview.nvim', as="diffview"}
  use 'TimUntersberger/neogit'
  -- use {"tanvirtin/vgit.nvim", as="vgit"}

  -- Aesthetics
  --   Icons
  use {"kyazdani42/nvim-web-devicons",
    as = "devicons",
    config = function() require'nvim-web-devicons'.setup{default = true} end
  }

  --   Status bar
  use {"hoob3rt/lualine.nvim", as="lualine"}

  --   Detect indentwidth
  use "Darazaki/indent-o-matic"

  --   Show indent lines
  use {
    "lukas-reineke/indent-blankline.nvim",
    as="indent-blankline",
    config = function()
      -- Indenting
      local indentwidth = 4
      vim.bo.shiftwidth = indentwidth
      vim.bo.tabstop = indentwidth

      require('indent_blankline').setup{
        char = '▏', -- show_first_indent_level should be false for this
        show_first_indent_level = false,
        -- char_list = {'│', '|'},
        -- char = '│',
        indent_blankline_use_treesitter = true,
        indent_level = indentwidth,
        show_foldtext = false,
        buftype_exclude = {'terminal'}
      }
    end
  }


  --   Highlight color strings
  use {"norcalli/nvim-colorizer.lua", as="colorizer", config="require 'colorizer'.setup()"}

  --   Smooth scrolling
  use {"karb94/neoscroll.nvim", as="neoscroll"}

  use {"davidgranstrom/nvim-markdown-preview", as="markdown-preview"}

  use {
    "ray-x/go.nvim",
    as = "go",
    requires = {
      "nvim-treesitter/nvim-treesitter",
      "nvim-treesitter/nvim-treesitter-textobjects",
    },
    config = function()
      require('go').setup({
        gofmt = "gofumpt",
        max_line_len = 80,
      })
      -- vim.cmd[[
      --   augroup go_on_write
      --     autocmd!
      --     autocmd BufWritePre *.go :silent! lua require('go.format').gofmt()
      --     autocmd BufWritePre *.go :silent! lua require('go.format').goimport()
      --   augroup end
      -- ]]
    end,
  }

  use "lervag/vimtex"
end,
config = {
  compile_path = vim.fn.stdpath('config') .. '/plugin/packer_compiled.lua',
  display = {
    -- Show floating window
    open_fn = require('packer.util').float,
  }
}})
packer log file
[WARN  Sun Nov 21 12:45:26 2021 1.0504731358973e+15] ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:197: Plugin "telescope-fzy-native.nvim" is used twice! (line 141)
[WARN  Sun Nov 21 12:45:32 2021 1.0504798029259e+15] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled!
[ERROR Sun Nov 21 12:45:36 2021 1.0504839407634e+15] .../site/pack/packer/start/packer.nvim/lua/packer/async.lua:20: Error in coroutine: ...ack/packer/start/packer.nvim/lua/packer/plugin_utils.lua:204: Vim(command):E174: Command already exists: add ! to replace it: IndentOMatic execute "lua require('indent-o-matic').detect()"
[WARN  Sun Nov 21 12:56:16 2021 1.0511230668335e+15] .../share/nvim/site/pack/packer/start/packer/lua/packer.lua:197: Plugin "telescope-fzy-native.nvim" is used twice! (line 141)
[WARN  Sun Nov 21 12:57:04 2021 1.0511710380405e+15] .../share/nvim/site/pack/packer/start/packer/lua/packer.lua:197: Plugin "telescope-fzy-native.nvim" is used twice! (line 141)
[WARN  Sun Nov 21 14:01:31 2021 1312588409827] .../nvim/site/pack/packer/start/packer/lua/packer/clean.lua:79: Cleaning cancelled!
[WARN  Sun Nov 21 14:03:30 2021 1432292479053] .../nvim/site/pack/packer/start/packer/lua/packer/clean.lua:79: Cleaning cancelled!
[WARN  Sun Nov 21 14:03:50 2021 1452469940793] .../nvim/site/pack/packer/start/packer/lua/packer/clean.lua:79: Cleaning cancelled!
[WARN  Sun Nov 21 15:12:24 2021 5565861836300] .../nvim/site/pack/packer/start/packer/lua/packer/clean.lua:79: Cleaning cancelled!
[ERROR Mon Nov 22 16:31:59 2021 96719034559850] .../site/pack/packer/start/packer.nvim/lua/packer/async.lua:20: Error in coroutine: ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:713: Vim(source):E5112: Error while creating lua chunk: /Users/Auguste/.config/nvim/plugin/packer_compiled.lua:248: '=' expected near 'completeopt'
[ERROR Mon Nov 22 20:03:08 2021 1.0938734822419e+14] .../site/pack/packer/start/packer.nvim/lua/packer/async.lua:20: Error in coroutine: ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:713: Vim(source):E5112: Error while creating lua chunk: /Users/Auguste/.config/nvim/plugin/packer_compiled.lua:261: '=' expected near '<'
[ERROR Mon Nov 22 20:04:35 2021 1.0947451486843e+14] .../site/pack/packer/start/packer.nvim/lua/packer/async.lua:20: Error in coroutine: ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:713: Vim(source):E5112: Error while creating lua chunk: /Users/Auguste/.config/nvim/plugin/packer_compiled.lua:278: '=' expected near '<'
[ERROR Wed Nov 24 15:08:34 2021 2.644961300549e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Wed Nov 24 23:51:15 2021 2.9585194490617e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[WARN  Wed Nov 24 23:51:25 2021 2.9586183000211e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:552: Potential breaking change in commit 91ffa8a of ThePrimeagen/harpoon
[WARN  Wed Nov 24 23:52:15 2021 2.959118584004e+14] ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:744: You must run PackerCompile with profiling enabled first e.g. PackerCompile profile=true
[ERROR Wed Nov 24 23:54:52 2021 2.9606927191256e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[WARN  Wed Nov 24 23:54:59 2021 2.9607657484499e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:552: Potential breaking change in commit 91ffa8a of ThePrimeagen/harpoon
[ERROR Wed Nov 24 23:56:08 2021 2.9614486690908e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[WARN  Wed Nov 24 23:56:12 2021 2.9614942969455e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:552: Potential breaking change in commit 91ffa8a of ThePrimeagen/harpoon
[ERROR Thu Nov 25 10:05:53 2021 3.327199740335e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Thu Nov 25 12:32:16 2021 3.415021681128e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Thu Nov 25 12:36:21 2021 3.4174780357902e+14] ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:843: Failure running setup function: "/Users/Auguste/.config/nvim/init.lua:141: attempt to call a nil value"
[WARN  Thu Nov 25 12:37:05 2021 3.4179145924347e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:641: No plugin selected!
[WARN  Thu Nov 25 12:37:06 2021 3.4179288255049e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:641: No plugin selected!
[WARN  Thu Nov 25 12:37:09 2021 3.4179542765253e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:641: No plugin selected!
[WARN  Thu Nov 25 12:37:09 2021 3.4179595743852e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:641: No plugin selected!
[WARN  Thu Nov 25 14:16:16 2021 3.4774308382893e+14] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled!
[ERROR Thu Nov 25 14:16:20 2021 3.4774700296136e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[WARN  Thu Nov 25 14:16:36 2021 3.4776283160349e+14] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled!
[ERROR Thu Nov 25 14:16:39 2021 3.4776615746445e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[WARN  Thu Nov 25 14:17:01 2021 3.4778743854228e+14] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled!
[ERROR Thu Nov 25 14:17:04 2021 3.4779080375465e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[WARN  Thu Nov 25 14:17:14 2021 3.4780075801721e+14] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled!
[ERROR Thu Nov 25 14:17:17 2021 3.4780409532378e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[WARN  Thu Nov 25 14:17:37 2021 3.4782416684853e+14] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled!
[WARN  Fri Nov 26 15:53:43 2021 4.3998069791621e+14] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled!
[ERROR Fri Nov 26 15:53:47 2021 4.3998424523615e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[WARN  Thu Dec  2 15:20:54 2021 9.5635511705599e+14] ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:197: Plugin "trouble" is used twice! (line 174)
[WARN  Thu Dec  2 15:23:24 2021 9.5650481341656e+14] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled!
[WARN  Sat Dec 18 12:25:03 2021 2.3281899461141e+15] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled!
[ERROR Sat Dec 18 12:25:08 2021 2.3281956546212e+15] .../site/pack/packer/start/packer.nvim/lua/packer/async.lua:20: Error in coroutine: ...ack/packer/start/packer.nvim/lua/packer/plugin_utils.lua:204: Vim(autocmd):E216: No such group or event: DiagnosticChanged * lua require'trouble'.refresh({auto = true, provider = "diagnostics"})
[ERROR Sat Dec 18 12:25:13 2021 2.3282003848279e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Sat Dec 18 12:25:13 2021 2.3282003868341e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[WARN  Sat Dec 18 12:25:13 2021 2.3282005698041e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:552: Potential breaking change in commit 913b72d of nvim-treesitter/nvim-treesitter
[WARN  Sat Dec 18 12:25:13 2021 2.3282005721587e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:552: Potential breaking change in commit 85bfbb8 of numToStr/comment.nvim
[WARN  Sat Dec 18 12:25:22 2021 2.3282096745173e+15] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled!
[ERROR Sat Dec 18 12:25:28 2021 2.3282151804897e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Sat Dec 18 12:25:28 2021 2.3282151844455e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[WARN  Sat Dec 18 12:25:38 2021 2.328225673834e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:552: Potential breaking change in commit 913b72d of nvim-treesitter/nvim-treesitter
[WARN  Sat Dec 18 12:25:38 2021 2.3282256745302e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:552: Potential breaking change in commit 85bfbb8 of numToStr/comment.nvim
[WARN  Sat Dec 18 12:25:54 2021 2.3282412487154e+15] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled!
[ERROR Sat Dec 18 12:25:58 2021 2.3282454788101e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Sat Dec 18 12:26:01 2021 2.328248654672e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[WARN  Sat Dec 18 12:26:03 2021 2.3282502869632e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:552: Potential breaking change in commit 913b72d of nvim-treesitter/nvim-treesitter
[WARN  Sat Dec 18 12:26:03 2021 2.3282502873114e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:552: Potential breaking change in commit 85bfbb8 of numToStr/comment.nvim
[WARN  Sat Dec 18 12:27:37 2021 2.3283445561758e+15] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled!
[WARN  Sat Dec 18 12:27:57 2021 2.3283640394324e+15] ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:744: You must run PackerCompile with profiling enabled first e.g. PackerCompile profile=true
[WARN  Sat Dec 18 12:28:07 2021 2.3283747168261e+15] ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:744: You must run PackerCompile with profiling enabled first e.g. PackerCompile profile=true
[WARN  Sat Dec 18 12:28:23 2021 2.3283906074592e+15] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled!
[ERROR Sat Dec 18 12:28:28 2021 2.3283947570178e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Sat Dec 18 12:28:28 2021 2.3283947646352e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[WARN  Sat Dec 18 12:28:53 2021 2.328420487427e+15] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled!
[ERROR Sat Dec 18 12:28:57 2021 2.3284245889897e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Sat Dec 18 12:28:57 2021 2.328424594219e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[WARN  Sat Dec 18 12:30:43 2021 2.3285303737024e+15] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled!
[WARN  Sat Dec 18 12:31:26 2021 2.3285735199486e+15] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled!
[WARN  Sat Dec 18 12:31:52 2021 2.3285993746677e+15] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled!
[ERROR Sat Dec 18 12:32:21 2021 2.3286277803355e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Sat Dec 18 12:32:24 2021 2.3286311222477e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Sat Dec 18 12:32:39 2021 2.3286465800373e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Sat Dec 18 12:32:41 2021 2.3286482672267e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Sat Dec 18 12:33:26 2021 2.3286935274534e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Sat Dec 18 12:33:27 2021 2.3286947024773e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Sat Dec 18 12:34:46 2021 2.3287732297302e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Sat Dec 18 12:34:46 2021 2.3287732407397e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Sat Dec 18 12:35:39 2021 2.3288259167357e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Sat Dec 18 12:35:39 2021 2.3288259187932e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Sat Dec 18 12:36:43 2021 2.3288901426361e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Sat Dec 18 12:36:43 2021 2.3288901498255e+15] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Tue Jan 11 10:27:01 2022 49238593284485] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Tue Jan 11 10:27:01 2022 49238924521268] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Tue Jan 11 10:31:36 2022 49513710800348] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Tue Jan 11 10:31:38 2022 49515474413619] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[WARN  Tue Jan 11 10:31:51 2022 49528840428500] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:641: No plugin selected!
[ERROR Tue Jan 11 10:32:03 2022 49540509357781] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Tue Jan 11 10:32:04 2022 49541497240990] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Tue Jan 11 10:32:39 2022 49576687511721] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Tue Jan 11 10:32:40 2022 49577677481249] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Tue Jan 11 10:33:16 2022 49614204460960] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Tue Jan 11 10:33:27 2022 49625213171922] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Tue Jan 11 10:33:41 2022 49638905719508] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Tue Jan 11 10:33:42 2022 49639563070202] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Tue Jan 11 10:37:49 2022 49886550382064] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
[ERROR Tue Jan 11 10:37:49 2022 49887271038229] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:32: Failed to get extmark: Expected lua number
packer compiled file
-- Automatically generated packer.nvim plugin loader code

if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then
  vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"')
  return
end

vim.api.nvim_command('packadd packer.nvim')

local no_errors, error_msg = pcall(function()

  local time
  local profile_info
  local should_profile = false
  if should_profile then
    local hrtime = vim.loop.hrtime
    profile_info = {}
    time = function(chunk, start)
      if start then
        profile_info[chunk] = hrtime()
      else
        profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
      end
    end
  else
    time = function(chunk, start) end
  end
  
local function save_profiles(threshold)
  local sorted_times = {}
  for chunk_name, time_taken in pairs(profile_info) do
    sorted_times[#sorted_times + 1] = {chunk_name, time_taken}
  end
  table.sort(sorted_times, function(a, b) return a[2] > b[2] end)
  local results = {}
  for i, elem in ipairs(sorted_times) do
    if not threshold or threshold and elem[2] > threshold then
      results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
    end
  end

  _G._packer = _G._packer or {}
  _G._packer.profile_output = results
end

time([[Luarocks path setup]], true)
local package_path_str = "/Users/Auguste/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/Users/Auguste/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/Users/Auguste/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/Users/Auguste/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/Users/Auguste/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
if not string.find(package.path, package_path_str, 1, true) then
  package.path = package.path .. ';' .. package_path_str
end

if not string.find(package.cpath, install_cpath_pattern, 1, true) then
  package.cpath = package.cpath .. ';' .. install_cpath_pattern
end

time([[Luarocks path setup]], false)
time([[try_loadstring definition]], true)
local function try_loadstring(s, component, name)
  local success, result = pcall(loadstring(s), name, _G.packer_plugins[name])
  if not success then
    vim.schedule(function()
      vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {})
    end)
  end
  return result
end

time([[try_loadstring definition]], false)
time([[Defining packer_plugins]], true)
_G.packer_plugins = {
  agrp = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/agrp",
    url = "https://github.com/delphinus/agrp.nvim"
  },
  ["cmp-buffer"] = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/cmp-buffer",
    url = "https://github.com/hrsh7th/cmp-buffer"
  },
  ["cmp-cmdline"] = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/cmp-cmdline",
    url = "https://github.com/hrsh7th/cmp-cmdline"
  },
  ["cmp-nvim-lsp"] = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
    url = "https://github.com/hrsh7th/cmp-nvim-lsp"
  },
  ["cmp-path"] = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/cmp-path",
    url = "https://github.com/hrsh7th/cmp-path"
  },
  ["cmp-snippy"] = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/cmp-snippy",
    url = "https://github.com/dcampos/cmp-snippy"
  },
  colorizer = {
    config = { "require 'colorizer'.setup()" },
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/colorizer",
    url = "https://github.com/norcalli/nvim-colorizer.lua"
  },
  comment = {
    config = { "\27LJ\2\nÎ\1\0\0\4\0\n\0\r6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\0025\3\6\0=\3\a\0025\3\b\0=\3\t\2B\0\2\1K\0\1\0\rmappings\1\0\3\nextra\2\nbasic\2\rextended\2\ropleader\1\0\2\nblock\agb\tline\agc\ftoggler\1\0\2\nblock\bgbc\tline\bgcc\1\0\3\vsticky\1\vignore\a^$\fpadding\2\nsetup\fComment\frequire\0" },
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/comment",
    url = "https://github.com/numToStr/comment.nvim"
  },
  devicons = {
    config = { "\27LJ\2\nO\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0B\0\2\1K\0\1\0\1\0\1\fdefault\2\nsetup\22nvim-web-devicons\frequire\0" },
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/devicons",
    url = "https://github.com/kyazdani42/nvim-web-devicons"
  },
  diffview = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/diffview",
    url = "https://github.com/sindrets/diffview.nvim"
  },
  go = {
    config = { "\27LJ\2\nT\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0B\0\2\1K\0\1\0\1\0\2\ngofmt\fgofumpt\17max_line_len\3P\nsetup\ago\frequire\0" },
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/go",
    url = "https://github.com/ray-x/go.nvim"
  },
  harpoon = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/harpoon",
    url = "https://github.com/ThePrimeagen/harpoon"
  },
  ["impatient.nvim"] = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/impatient.nvim",
    url = "https://github.com/lewis6991/impatient.nvim"
  },
  ["indent-blankline"] = {
    config = { "\27LJ\2\nƒ\2\0\0\5\0\v\0\17)\0\4\0006\1\0\0009\1\1\1=\0\2\0016\1\0\0009\1\1\1=\0\3\0016\1\4\0'\3\5\0B\1\2\0029\1\6\0015\3\a\0=\0\b\0035\4\t\0=\4\n\3B\1\2\1K\0\1\0\20buftype_exclude\1\2\0\0\rterminal\17indent_level\1\0\4\18show_foldtext\1\28show_first_indent_level\1\tchar\b▏$indent_blankline_use_treesitter\2\nsetup\21indent_blankline\frequire\ftabstop\15shiftwidth\abo\bvim\0" },
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/indent-blankline",
    url = "https://github.com/lukas-reineke/indent-blankline.nvim"
  },
  ["indent-o-matic"] = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/indent-o-matic",
    url = "https://github.com/Darazaki/indent-o-matic"
  },
  ipy = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/ipy",
    url = "https://github.com/bfredl/nvim-ipy"
  },
  iron = {
    loaded = false,
    needs_bufread = false,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/opt/iron",
    url = "https://github.com/hkupty/iron.nvim"
  },
  kakoune = {
    config = { "\27LJ\2\na\0\0\6\0\6\0\r6\0\0\0'\2\1\0'\3\2\0'\4\3\0006\5\4\0B\0\5\0016\0\0\0'\2\5\0'\3\2\0'\4\3\0006\5\4\0B\0\5\1K\0\1\0\6v\fnoremap\20<Plug>(Kakoune)\n<C-k>\6n\bmap\0" },
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/kakoune",
    url = "https://github.com/alexherbo2/kakoune.vim"
  },
  lint = {
    config = { "\27LJ\2\nq\0\0\3\0\b\0\n6\0\0\0'\2\1\0B\0\2\0025\1\4\0005\2\3\0=\2\5\0015\2\6\0=\2\a\1=\1\2\0K\0\1\0\vpython\1\2\0\0\vpylint\rmarkdown\1\0\0\1\2\0\0\tvale\18linters_by_ft\tlint\frequire\0" },
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/lint",
    url = "https://github.com/mfussenegger/nvim-lint"
  },
  ["lsp-config"] = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/lsp-config",
    url = "https://github.com/neovim/nvim-lspconfig"
  },
  lualine = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/lualine",
    url = "https://github.com/hoob3rt/lualine.nvim"
  },
  ["markdown-preview"] = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/markdown-preview",
    url = "https://github.com/davidgranstrom/nvim-markdown-preview"
  },
  neogit = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/neogit",
    url = "https://github.com/TimUntersberger/neogit"
  },
  neoscroll = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/neoscroll",
    url = "https://github.com/karb94/neoscroll.nvim"
  },
  ["nvim-cmp"] = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/nvim-cmp",
    url = "https://github.com/hrsh7th/nvim-cmp"
  },
  ["nvim-snippy"] = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/nvim-snippy",
    url = "https://github.com/dcampos/nvim-snippy"
  },
  ["nvim-treesitter"] = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
    url = "https://github.com/nvim-treesitter/nvim-treesitter"
  },
  ["nvim-treesitter-textobjects"] = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/nvim-treesitter-textobjects",
    url = "https://github.com/nvim-treesitter/nvim-treesitter-textobjects"
  },
  ["nvim-web-devicons"] = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
    url = "https://github.com/kyazdani42/nvim-web-devicons"
  },
  ["packer.nvim"] = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/packer.nvim",
    url = "https://github.com/wbthomason/packer.nvim"
  },
  plenary = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/plenary",
    url = "https://github.com/nvim-lua/plenary.nvim"
  },
  popup = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/popup",
    url = "https://github.com/nvim-lua/popup.nvim"
  },
  project = {
    config = { "require('project_nvim').setup()" },
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/project",
    url = "https://github.com/ahmedkhalf/project.nvim"
  },
  telescope = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/telescope",
    url = "https://github.com/nvim-telescope/telescope.nvim"
  },
  ["telescope-fzy-native.nvim"] = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/telescope-fzy-native.nvim",
    url = "https://github.com/nvim-telescope/telescope-fzy-native.nvim"
  },
  ["telescope-project.nvim"] = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/telescope-project.nvim",
    url = "https://github.com/nvim-telescope/telescope-project.nvim"
  },
  treesitter = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/treesitter",
    url = "https://github.com/nvim-treesitter/nvim-treesitter"
  },
  trouble = {
    config = { "\27LJ\2\n9\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\ftrouble\frequire\0" },
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/trouble",
    url = "https://github.com/folke/trouble.nvim"
  },
  ["vim-sandwich"] = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/vim-sandwich",
    url = "https://github.com/machakann/vim-sandwich"
  },
  ["vim-test"] = {
    config = { "\27LJ\2\n/\0\0\2\0\3\0\0046\0\0\0'\1\2\0=\1\1\0K\0\1\0\vgotest\19test#go#runner\6g\0" },
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/vim-test",
    url = "https://github.com/vim-test/vim-test"
  },
  ["vim-ultest"] = {
    config = { "\27LJ\2\n\1\0\0\6\0\a\0\r6\0\0\0'\2\1\0'\3\2\0'\4\3\0006\5\4\0B\0\5\0016\0\0\0'\2\1\0'\3\5\0'\4\6\0006\5\4\0B\0\5\1K\0\1\0\29<Plug>(ultest-prev-fail)\at[\fnoremap\29<Plug>(ultest-next-fail)\at]\6n\bmap\0" },
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/vim-ultest",
    url = "https://github.com/rcarriga/vim-ultest"
  },
  vimtex = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/vimtex",
    url = "https://github.com/lervag/vimtex"
  },
  vimwiki = {
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/vimwiki",
    url = "https://github.com/vimwiki/vimwiki"
  },
  ["which-key"] = {
    config = { "require 'which-key'.setup{}" },
    loaded = true,
    path = "/Users/Auguste/.local/share/nvim/site/pack/packer/start/which-key",
    url = "https://github.com/folke/which-key.nvim"
  }
}

time([[Defining packer_plugins]], false)
-- Config for: vim-test
time([[Config for vim-test]], true)
try_loadstring("\27LJ\2\n/\0\0\2\0\3\0\0046\0\0\0'\1\2\0=\1\1\0K\0\1\0\vgotest\19test#go#runner\6g\0", "config", "vim-test")
time([[Config for vim-test]], false)
-- Config for: vim-ultest
time([[Config for vim-ultest]], true)
try_loadstring("\27LJ\2\n\1\0\0\6\0\a\0\r6\0\0\0'\2\1\0'\3\2\0'\4\3\0006\5\4\0B\0\5\0016\0\0\0'\2\1\0'\3\5\0'\4\6\0006\5\4\0B\0\5\1K\0\1\0\29<Plug>(ultest-prev-fail)\at[\fnoremap\29<Plug>(ultest-next-fail)\at]\6n\bmap\0", "config", "vim-ultest")
time([[Config for vim-ultest]], false)
-- Config for: go
time([[Config for go]], true)
try_loadstring("\27LJ\2\nT\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0B\0\2\1K\0\1\0\1\0\2\ngofmt\fgofumpt\17max_line_len\3P\nsetup\ago\frequire\0", "config", "go")
time([[Config for go]], false)
-- Config for: kakoune
time([[Config for kakoune]], true)
try_loadstring("\27LJ\2\na\0\0\6\0\6\0\r6\0\0\0'\2\1\0'\3\2\0'\4\3\0006\5\4\0B\0\5\0016\0\0\0'\2\5\0'\3\2\0'\4\3\0006\5\4\0B\0\5\1K\0\1\0\6v\fnoremap\20<Plug>(Kakoune)\n<C-k>\6n\bmap\0", "config", "kakoune")
time([[Config for kakoune]], false)
-- Config for: comment
time([[Config for comment]], true)
try_loadstring("\27LJ\2\nÎ\1\0\0\4\0\n\0\r6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\0025\3\6\0=\3\a\0025\3\b\0=\3\t\2B\0\2\1K\0\1\0\rmappings\1\0\3\nextra\2\nbasic\2\rextended\2\ropleader\1\0\2\nblock\agb\tline\agc\ftoggler\1\0\2\nblock\bgbc\tline\bgcc\1\0\3\vsticky\1\vignore\a^$\fpadding\2\nsetup\fComment\frequire\0", "config", "comment")
time([[Config for comment]], false)
-- Config for: indent-blankline
time([[Config for indent-blankline]], true)
try_loadstring("\27LJ\2\nƒ\2\0\0\5\0\v\0\17)\0\4\0006\1\0\0009\1\1\1=\0\2\0016\1\0\0009\1\1\1=\0\3\0016\1\4\0'\3\5\0B\1\2\0029\1\6\0015\3\a\0=\0\b\0035\4\t\0=\4\n\3B\1\2\1K\0\1\0\20buftype_exclude\1\2\0\0\rterminal\17indent_level\1\0\4\18show_foldtext\1\28show_first_indent_level\1\tchar\b▏$indent_blankline_use_treesitter\2\nsetup\21indent_blankline\frequire\ftabstop\15shiftwidth\abo\bvim\0", "config", "indent-blankline")
time([[Config for indent-blankline]], false)
-- Config for: colorizer
time([[Config for colorizer]], true)
require 'colorizer'.setup()
time([[Config for colorizer]], false)
-- Config for: devicons
time([[Config for devicons]], true)
try_loadstring("\27LJ\2\nO\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0B\0\2\1K\0\1\0\1\0\1\fdefault\2\nsetup\22nvim-web-devicons\frequire\0", "config", "devicons")
time([[Config for devicons]], false)
-- Config for: which-key
time([[Config for which-key]], true)
require 'which-key'.setup{}
time([[Config for which-key]], false)
-- Config for: project
time([[Config for project]], true)
require('project_nvim').setup()
time([[Config for project]], false)
-- Config for: lint
time([[Config for lint]], true)
try_loadstring("\27LJ\2\nq\0\0\3\0\b\0\n6\0\0\0'\2\1\0B\0\2\0025\1\4\0005\2\3\0=\2\5\0015\2\6\0=\2\a\1=\1\2\0K\0\1\0\vpython\1\2\0\0\vpylint\rmarkdown\1\0\0\1\2\0\0\tvale\18linters_by_ft\tlint\frequire\0", "config", "lint")
time([[Config for lint]], false)
-- Config for: trouble
time([[Config for trouble]], true)
try_loadstring("\27LJ\2\n9\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\ftrouble\frequire\0", "config", "trouble")
time([[Config for trouble]], false)
if should_profile then save_profiles() end

end)

if not no_errors then
  vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
end

augustebaum avatar Jan 11 '22 09:01 augustebaum

Same problem also on Archlinux.

❯ nvim --version      
NVIM v0.7.0-dev+1027-gf02a5a7bda
Build type: RelWithDebInfo
LuaJIT 2.0.5

JanValiska avatar Feb 07 '22 20:02 JanValiska

Thanks for the report...this error usually signifies a too-old Neovim version, but both of yours look recent enough. I also cannot reproduce this on Arch with NVIM v0.7.0-dev+1027-gf02a5a7bda myself...

Did this start suddenly after successful packer use, or are you new to packer?

wbthomason avatar Feb 07 '22 20:02 wbthomason

I used packer for quiet a long time without problems.

Just 5 minutes ago I tried to remove all use's() from packer config and I run PackerSync. I also reinstalled packer itself. Now the PackerSync and PackerUpdate are working without extmark related problems. Too bad I didn't take a more subtle approach to finding the exact culprit of this extmark problem. So for now the workaround is to "clean" all plugins and install back :)

JanValiska avatar Feb 07 '22 21:02 JanValiska

Exact same error for me.

macOS Monterey 12.1

 nvim --version
NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@Monterey
git --version
git version 2.35.1

Terminal: Alacritty 0.10.0


Is the official fix to clear all plugins and install again?

Cyberlane avatar Feb 09 '22 08:02 Cyberlane

I've found the exact same problem, and for me it's reproducible.

System stats

  • nvim --version: 0.7.0
  • git --version: 2.36.1
  • OS: Fedora 36
  • Terminal: Gnome terminal

Steps to reproduce

Run :PackerUpdate

Behavior

Error executing vim.schedule lua callback: ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:261: Expected 4 arguments
stack traceback:
        [C]: in function 'get_extmark_by_id'
        ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:261: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>
Press ENTER or type command to continue
[packer.nvim] [ERROR 00:41:43] display.lua:32: Failed to get extmark: Expected lua number
Press ENTER or type command to continue

After which usual window with results of upgrade shows, right now it's "Everything is already up to date"

Packer file

Plugin specification file

local install_path = vim.fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
    packer_bootstrap = vim.fn.system({
        "git",
        "clone",
        "--depth",
        "1",
        "https://github.com/wbthomason/packer.nvim",
        install_path,
    })
    vim.cmd("packadd packer.nvim")
end

require("packer").startup(function(use)
    -- Self-manage
    use("wbthomason/packer.nvim")

    -- General
    use("tpope/vim-surround")
    use("tpope/vim-repeat")

    -- Visual
    use({
        "norcalli/nvim-colorizer.lua",
        ft = { "css", "html" },
        config = function()
            require("colorizer").setup()
        end,
    })
    use({
        "kyazdani42/nvim-web-devicons",
        as = "devicons",
    })
    use({
        "nvim-lualine/lualine.nvim",
        after = { "devicons" },
        config = function()
            require("eaglesemanation.lualine")
        end,
    })
    use({
        "ishan9299/nvim-solarized-lua",
        config = function()
            local _, _ = pcall(vim.cmd, "colorscheme solarized")
        end,
    })

    -- Git integration
    use("tpope/vim-fugitive")
    use("tpope/vim-git")

    -- Language support
    use({
        "neovim/nvim-lspconfig",
        as = "lspconfig",
        requires = {
            { "jose-elias-alvarez/null-ls.nvim" },
        },
    })
    use({
        "nvim-treesitter/nvim-treesitter",
        config = function()
            require("eaglesemanation.treesitter")
        end,
    })
    use("towolf/vim-helm")

    -- Autocompletion
    use({
        "L3MON4D3/LuaSnip",
        as = "luasnip",
    })
    use({
        "hrsh7th/nvim-cmp",
        requires = {
            { "hrsh7th/cmp-nvim-lsp" },
            { "hrsh7th/cmp-path" },
            { "hrsh7th/cmp-omni" },
            { "onsails/lspkind-nvim" },
            { "saadparwaiz1/cmp_luasnip", after = { "luasnip" } },
        },
        config = function()
            require("eaglesemanation.lsp")
        end,
    })

    -- Diagnostics list
    use({
        "folke/trouble.nvim",
        requires = "kyazdani42/nvim-web-devicons",
        config = function()
            require("trouble").setup({})
        end,
    })

    -- Fuzzy search
    use({
        "nvim-telescope/telescope.nvim",
        requires = {
            { "nvim-lua/plenary.nvim" },
            { "nvim-telescope/telescope-fzf-native.nvim", run = "make" },
            { "nvim-telescope/telescope-ui-select.nvim" },
        },
        config = function()
            require("eaglesemanation.telescope")
        end,
    })

    -- Improved NetRW
    use("tpope/vim-vinegar")

    -- LaTeX integration
    use({
        "lervag/vimtex",
        ft = { "tex" },
        config = function()
            require("eaglesemanation.vimtex")
        end,
    })

    -- Setup on first boot
    if packer_bootstrap then
        require("packer").sync()
    end
end)

Fix that worked for me


--- plugins.lua.old	2022-05-11 00:49:40.061596821 -0400
+++ plugins.lua	2022-05-11 00:48:57.860899437 -0400
@@ -29,11 +29,10 @@
     })
     use({
         "kyazdani42/nvim-web-devicons",
-        as = "devicons",
     })
     use({
         "nvim-lualine/lualine.nvim",
-        after = { "devicons" },
+        after = { "kyazdani42/nvim-web-devicons" },
         config = function()
             require("eaglesemanation.lualine")
         end,

I'm pretty sure it's because I added as = "devicons" to nvim-web-devicons, but then tried to depend on nvim-web-devicons for trouble.nvim.

So for @augustebaum that would be conflict between treesitter alias and nvim-treesitter requirement for go.nvim

eaglesemanation avatar May 11 '22 04:05 eaglesemanation

Same problem here on neovim 0.7.0.

devyhia avatar May 12 '22 08:05 devyhia

Hey, when diving deeper into the issue, it see the following error:

display.lua:34: Failed to get extmark: Expected lua number

It seems that Packer is falling back to the behavior in the following block: https://github.com/wbthomason/packer.nvim/blob/master/lua/packer/display.lua#L27-L36

When the call fails, you fall back to assuming that neovim failed due to the editor being old (and then try to use an older version of the api contract). This other version fails.

After diving deeper into the code, it seems that this code gets called from the task_succeeded callback:

  task_succeeded = vim.schedule_wrap(function(self, plugin, message)
    if not self:valid_display() then
      return
    end
    local line, _ = get_extmark_by_id(self.buf, self.ns, self.marks[plugin])
    self:set_lines(line[1], line[1] + 1, { fmt(' %s %s: %s', config.done_sym, plugin, message) })
    api.nvim_buf_del_extmark(self.buf, self.ns, self.marks[plugin])
    self.marks[plugin] = nil
    self:decrement_headline_count()
  end),

The self.marks[plugin] seems to be returning a nil object. That basically means that, when we have duplicate in the packer configuration file, we end up updating/syncing/intsalling the plugin twice. On the first time, self.marks[plugin] = nil removes the initial instance of the element in the hash map. In the second instance, when the installation/syncing/update succeeds, we try to update the same item in the list and find nil.

Short Term Solution

  1. Inspect your plugins.lua file and ensure that you don't have any duplicate plugins (that fixed my problem).

Long Term Solution (For Contributors)

  1. Please, de-duplicate the list of plugins (I suspect in the manage function: https://github.com/wbthomason/packer.nvim/blob/master/lua/packer.lua#L198-L219).
  2. The issue could be that I am using the plugin once as dependency of another plugin and once as a standalone plugin (that could maybe point in the right spot in the code where you can start).

I would have loved to contribute the fix but it would take me way more time setting up the project and NOT breaking things than just reporting my investigation here to help someone more familiar of packer.nvim carry out the fix.

Thank you so much for creating this amazing package manager! :raised_hands:

devyhia avatar May 21 '22 18:05 devyhia

Hi, Same problem for me with neovim nightly : v0.8.0-dev+538-ga9de89894 it happened when I add a use with required before the dependency use that have an alias.

Example: original config OK :

use { 'lisa/tata.nvim' }
use { 'john/toto.nvim', as = 'toto' }

breaking change KO :

use { 'lisa/tata.nvim' }
use { 'bob/plug.nvim', requires = { 'john/toto.nvim' } }
use { 'john/toto.nvim', as = 'toto' }

fix :

use { 'lisa/tata.nvim' }
use { 'john/toto.nvim', as = 'toto' }
use { 'bob/plug.nvim', requires = { 'toto' } }

Hope this help to resolve. Thank you for packer :)

xavier-balesi avatar Jul 21 '22 23:07 xavier-balesi