Closed ogaken-1 closed 2 years ago
Reduced minimal init.vim that doesn't require gitsigns:
const s:vimdir = fnamemodify(expand('<sfile>'), ':h')
const s:deinpath = s:vimdir . '/dein.vim'
const s:deincache = s:vimdir . '/cache'
if !isdirectory(s:deinpath)
execute '!git clone https://github.com/Shougo/dein.vim.git ' . s:deinpath
endif
execute 'set runtimepath^=' . s:deinpath
" ----------------- dein install start -----------------
call dein#begin(s:deincache)
call dein#end()
lua << EOF
local timer = vim.loop.new_timer()
timer:start(0, 0, function()
timer:stop()
timer:close()
require('vim.lsp')
end)
EOF
Problem is here: https://github.com/Shougo/dein.vim/blob/fe4ba1b8916a4d64373a9bd28e0489df3fdeaef2/autoload/dein/min.vim#L50-L57
Don't call vim.fn
in a package loader. This prevents require
from being used in a fast event.
OK. It is bug of dein.vim. It is hard to fix though...
Fixed.
Warning: I will close the bug issue without the minimal init.vim and the reproduce ways.
Problems summary
When opening a file under git management with gitsigns.nvim running, an error message is output and gitsigns.nvim does not work.
This did not occur when gitsigns.nvim was installed by several ways other than dein.vim.
Expected
When a file under git control is opened, no error message should be output and the git status should be displayed in signcolumn.
Environment Information (Required!)
dein.vim version(SHA1): fe4ba1b8916a4d64373a9bd28e0489df3fdeaef2
OS: Ubuntu20.04 on WSL2
Vim/neovim version:
NVIM v0.7.0-dev Build type: RelWithDebInfo LuaJIT 2.1.0-beta3 Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-hRSI9h/neovim-0.7.0~ubuntu1+git202204091504-8055f9857-dd05b3569=. -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -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 -Wsuggest-attribute=pure -Wsuggest-attribute=const -Wsuggest-attribute=malloc -Wsuggest-attribute=cold -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/build/neovim-hRSI9h/neovim-0.7.0~ubuntu1+git202204091504-8055f9857-dd05b3569/build/config -I/build/neovim-hRSI9h/neovim-0.7.0~ubuntu1+git202204091504-8055f9857-dd05b3569/src -I/build/neovim-hRSI9h/neovim-0.7.0~ubuntu1+git202204091504-8055f9857-dd05b3569/.deps/usr/include -I/usr/include -I/build/neovim-hRSI9h/neovim-0.7.0~ubuntu1+git202204091504-8055f9857-dd05b3569/build/src/nvim/auto -I/build/neovim-hRSI9h/neovim-0.7.0~ubuntu1+git202204091504-8055f9857-dd05b3569/build/include Compiled by buildd@ubuntu
Features: +acl +iconv +tui See ":help feature-compile"
Run :checkhealth for more info
The reproduce ways from Vim starting (Required!)
git init
nvim -Nu init.vim init.vim
Screen shot (if possible)
Upload the log messages by
:redir
and:message
(if errored):mes