wbthomason / packer.nvim

A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
MIT License
7.72k stars 263 forks source link

Blocking on future failed... when I execute "make test": tests/snapshot_spec.lua:142: Expected objects to be equal #1216

Open stephane-klein opened 1 year ago

stephane-klein commented 1 year ago
$ git rev-parse HEAD
1d0cf98a561f7fd654c970c49f917d74fafe1530
$ make test
...
========================================
Testing:        /home/stephane/git/github.com/wbthomason/packer.nvim/tests/snapshot_spec.lua
Success ||      Packer testing  snapshot.create() create snapshot in '/home/stephane/.cache/nvim/packer.nvim/test'
Success ||      Packer testing  snapshot.create() checking if snapshot content corresponds to plugins'
Success ||      Packer testing  packer.delete() delete 'test' snapshot
Success ||      Packer testing  packer.rollback() restore 'packer' to the commit hash HEAD~5

Success:        4
Failed :        0
Errors :        0
========================================

========================================
Testing:        /home/stephane/git/github.com/wbthomason/packer.nvim/tests/local_plugin_spec.lua

Success:        0
Failed :        0
Errors :        1
========================================
We had an unexpected error:     { {
    descriptions = { "Local plugin -", "installer" },
    msg = "...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:320: Blocking on future failed ...acker/start/plenary.nvim/lua/plenary/async_lib/async.lua:14: The coroutine failed with this message: ...b.com/wbthomason/packer.nvim/tests/local_plugin_spec.lua:15: attempt to call field 'create_git_dir' (a nil value)\nstack traceback:\n\t[C]: in function 'error'\n\t...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:320: in function <...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:318>\n\t[C]: in function 'wait'\n\t...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:325: in function <...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:309>\n\t[C]: in function 'xpcall'\n\t...te/pack/packer/start/plenary.nvim/lua/plenary/busted.lua:74: in function 'call_inner'\n\t...te/pack/packer/start/plenary.nvim/lua/plenary/busted.lua:132: in function 'describe'\n\t...acker/start/plenary.nvim/lua/plenary/async_lib/tests.lua:7: in function 'describe'\n\t...b.com/wbthomason/packer.nvim/tests/local_plugin_spec.lua:8: in function <...b.com/wbthomason/packer.nvim/tests/local_plugin_spec.lua:7>\n\nstack traceback:\n\t...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:325: in function <...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:309>\n"
  } }   {
  errs = { {
      descriptions = { "Local plugin -", "installer" },
      msg = "...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:320: Blocking on future failed ...acker/start/plenary.nvim/lua/plenary/async_lib/async.lua:14: The coroutine failed with this message: ...b.com/wbthomason/packer.nvim/tests/local_plugin_spec.lua:15: attempt to call field 'create_git_dir' (a nil value)\nstack traceback:\n\t[C]: in function 'error'\n\t...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:320: in function <...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:318>\n\t[C]: in function 'wait'\n\t...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:325: in function <...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:309>\n\t[C]: in function 'xpcall'\n\t...te/pack/packer/start/plenary.nvim/lua/plenary/busted.lua:74: in function 'call_inner'\n\t...te/pack/packer/start/plenary.nvim/lua/plenary/busted.lua:132: in function 'describe'\n\t...acker/start/plenary.nvim/lua/plenary/async_lib/tests.lua:7: in function 'describe'\n\t...b.com/wbthomason/packer.nvim/tests/local_plugin_spec.lua:8: in function <...b.com/wbthomason/packer.nvim/tests/local_plugin_spec.lua:7>\n\nstack traceback:\n\t...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:325: in function <...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:309>\n"
    } },
  fail = {},
  pass = {}
}

========================================
Testing:        /home/stephane/git/github.com/wbthomason/packer.nvim/tests/plugin_utils_spec.lua

Success:        0
Failed :        0
Errors :        1
========================================
We had an unexpected error:     { {
    descriptions = { "Plugin utils -", "find_missing_plugins" },
    msg = "...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:320: Blocking on future failed ...acker/start/plenary.nvim/lua/plenary/async_lib/async.lua:14: The coroutine failed with this message: ...b.com/wbthomason/packer.nvim/tests/plugin_utils_spec.lua:17: attempt to call field 'create_git_dir' (a nil value)\nstack traceback:\n\t[C]: in function 'error'\n\t...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:320: in function <...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:318>\n\t[C]: in function 'wait'\n\t...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:325: in function <...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:309>\n\t[C]: in function 'xpcall'\n\t...te/pack/packer/start/plenary.nvim/lua/plenary/busted.lua:74: in function 'call_inner'\n\t...te/pack/packer/start/plenary.nvim/lua/plenary/busted.lua:132: in function 'describe'\n\t...acker/start/plenary.nvim/lua/plenary/async_lib/tests.lua:7: in function 'describe'\n\t...b.com/wbthomason/packer.nvim/tests/plugin_utils_spec.lua:11: in function <...b.com/wbthomason/packer.nvim/tests/plugin_utils_spec.lua:9>\n\nstack traceback:\n\t...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:325: in function <...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:309>\n"
  } }   {
  errs = { {
      descriptions = { "Plugin utils -", "find_missing_plugins" },
      msg = "...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:320: Blocking on future failed ...acker/start/plenary.nvim/lua/plenary/async_lib/async.lua:14: The coroutine failed with this message: ...b.com/wbthomason/packer.nvim/tests/plugin_utils_spec.lua:17: attempt to call field 'create_git_dir' (a nil value)\nstack traceback:\n\t[C]: in function 'error'\n\t...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:320: in function <...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:318>\n\t[C]: in function 'wait'\n\t...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:325: in function <...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:309>\n\t[C]: in function 'xpcall'\n\t...te/pack/packer/start/plenary.nvim/lua/plenary/busted.lua:74: in function 'call_inner'\n\t...te/pack/packer/start/plenary.nvim/lua/plenary/busted.lua:132: in function 'describe'\n\t...acker/start/plenary.nvim/lua/plenary/async_lib/tests.lua:7: in function 'describe'\n\t...b.com/wbthomason/packer.nvim/tests/plugin_utils_spec.lua:11: in function <...b.com/wbthomason/packer.nvim/tests/plugin_utils_spec.lua:9>\n\nstack traceback:\n\t...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:325: in function <...packer/start/plenary.nvim/lua/plenary/async_lib/util.lua:309>\n"
    } },
  fail = {},
  pass = {}
}
make: *** [Makefile:2: test] Error 1

Version details:

$ nvim --version
NVIM v0.8.3
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/builddir/build/BUILD/neovim-0.8.3/redhat-linux-build/cmake.config -I/builddir/build/BUILD/neovim-0.8.3/src -I/usr/include -I/usr/include/luajit-2.1 -I/builddir/build/BUILD/neovim-0.8.3/redhat-linux-build/src/nvim/auto -I/builddir/build/BUILD/neovim-0.8.3/redhat-linux-build/include
Compilé par mockbuild@koji

Features: +acl +iconv +tui
See ":help feature-compile"

         fichier vimrc système : "$VIM/sysinit.vim"
               $VIM par défaut : "/usr/share/nvim"

Run :checkhealth for more info
$ git --version
git version 2.39.2

Fedora 37

$ zsh --version
zsh 5.9 (x86_64-redhat-linux-gnu)
$ cat ~/.cache/nvim/packer.nvim.log
[DEBUG Mon Feb 27 23:39:40 2023 1.1564799331381e+14] ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:344: Processing plugin specs
[DEBUG Mon Feb 27 23:39:40 2023 1.1564799576539e+14] ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:344: Processing plugin specs
[DEBUG Mon Feb 27 23:39:40 2023 1.1564799719254e+14] ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:344: Processing plugin specs
[DEBUG Mon Feb 27 23:39:40 2023 1.1564799751451e+14] ...te/pack/packer/start/packer.nvim/lua/packer/snapshot.lua:202: Deleting /home/stephane/.cache/nvim/packer.nvim/test
[INFO  Mon Feb 27 23:39:40 2023 1.1564799760481e+14] ...te/pack/packer/start/packer.nvim/lua/packer/snapshot.lua:205: Deleted /home/stephane/.cache/nvim/packer.nvim/test
[DEBUG Mon Feb 27 23:39:40 2023 1.1564799784856e+14] ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:344: Processing plugin specs
[ERROR Mon Feb 27 23:39:40 2023 1.1564800516649e+14] .../site/pack/packer/start/packer.nvim/lua/packer/async.lua:20: Error in coroutine: ...ithub.com/wbthomason/packer.nvim/tests/snapshot_spec.lua:142: Expected objects to be equal.
Passed in:
(string) '64ae65f'
Expected:
(string) '1d0cf98'
[DEBUG Mon Feb 27 23:39:40 2023 1.1564800529752e+14] ...te/pack/packer/start/packer.nvim/lua/packer/snapshot.lua:152: Rolling back to /home/stephane/.cache/nvim/packer.nvim/rollback_test
[DEBUG Mon Feb 27 23:44:44 2023 1.1595253593201e+14] ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:344: Processing plugin specs
[DEBUG Mon Feb 27 23:44:44 2023 1.1595253846182e+14] ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:344: Processing plugin specs
[DEBUG Mon Feb 27 23:44:44 2023 1.1595253978783e+14] ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:344: Processing plugin specs
[DEBUG Mon Feb 27 23:44:44 2023 1.1595254015652e+14] ...te/pack/packer/start/packer.nvim/lua/packer/snapshot.lua:202: Deleting /home/stephane/.cache/nvim/packer.nvim/test
[INFO  Mon Feb 27 23:44:44 2023 1.1595254026806e+14] ...te/pack/packer/start/packer.nvim/lua/packer/snapshot.lua:205: Deleted /home/stephane/.cache/nvim/packer.nvim/test
[DEBUG Mon Feb 27 23:44:44 2023 1.1595254055427e+14] ...e/nvim/site/pack/packer/start/packer.nvim/lua/packer.lua:344: Processing plugin specs
[ERROR Mon Feb 27 23:44:44 2023 1.1595254779601e+14] .../site/pack/packer/start/packer.nvim/lua/packer/async.lua:20: Error in coroutine: ...ithub.com/wbthomason/packer.nvim/tests/snapshot_spec.lua:142: Expected objects to be equal.
Passed in:
(string) '64ae65f'
Expected:
(string) '1d0cf98'
[DEBUG Mon Feb 27 23:44:44 2023 1.159525479396e+14] ...te/pack/packer/start/packer.nvim/lua/packer/snapshot.lua:152: Rolling back to /home/stephane/.cache/nvim/packer.nvim/rollback_test