Closed e-kwsm closed 1 year ago
Sorry. It is not dein.vim
's problem.
In the example, dein.vim
just add nvim-treesitter
to runtimepath.
If it has the race condition, it is in nvim-treesitter
upgrade process.
If you think it is the problem in dein.vim
, please provide what the code is wrong. I will check it later.
I get the reason.
nvim-treesitter
must be filetype plugin indent on
.
But dein.vim
disables it because performance reason. So you need to enable it manually.
filetype plugin indent on
is needed in your init.vim. It is not bug.
I see, thank you.
Warning: I will close the issue without the minimal init.vim and the reproduction instructions.
Problems summary
Race occurs if nvim-treesitter is managed by dein and automatic installation is enabled. An error message would look like:
Expected
No race occurs.
Environment Information (Required!)
:version
output: NVIM v0.9.0-dev-439+gb866d8d2eProvide a minimal init.vim/vimrc without plugin managers (Required!)
How to reproduce the problem from neovim/Vim startup (Required!)
Here python parser is chosen as example:
nvim --headless -u vimrc -c 'TSUninstall python' -c q
nvim --headless -u vimrc -c 'sleep 4' -c q a.py
Race does not occur for the followings:
nvim --headless -u vimrc -c 'TSInstall python' -c 'sleep 4' -c q
nvim --headless -u vimrc -c 'setf python' -c 'sleep 4' -c q
Screen shot (if possible)
Upload the log messages by
:redir
and:message
(if errored)