Vim shows multiple errors when running any command from Vim-CMake. This does not happen in NeoVim.
The errors don't appear to break anything obvious based on some preliminary testing.
To Reproduce
Steps to reproduce the behavior:
make sure there are no active vimrc or plugins
clone/copy/symlink vim-cmake's master branch into ~/.vim/pack/local/start/vim-cmake
The code in question should not produce any errors at this stage.
Behavior with minimal .vimrc
Works without any vimrc
Screenshots
Other info
OS: Arch Linux
Vim/Neovim version:
$ vim --version
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Oct 22 2022 19:58:44)
Included patches: 1-813
Compiled by Arch Linux
Huge version without GUI.
Vim-CMake version (:echo cmake#GetInfo().version): 0.11.1 (current master fcd20af9758a38c98ece6660e5b2780eef93333e)
CMake version (cmake --version): 3.24.2
Additional context
The error from the screenshot as text:
Error detected while processing /home/marwin/Workspace/vim/vim-cmake/autoload/cmake.vim[14]..function cmake#util#PrintNews[1]..<SNR>38_UpdateVersionNumber:
line 15:
E896: Argument of get() must be a List, Dictionary or Blob
Error detected while processing /home/marwin/Workspace/vim/vim-cmake/autoload/cmake.vim[24]..function 29[6]..18:
line 3:
E896: Argument of get() must be a List, Dictionary or Blob
Error detected while processing /home/marwin/Workspace/vim/vim-cmake/autoload/cmake.vim[24]..function 29:
line 6:
E896: Argument of get() must be a List, Dictionary or Blob
Error detected while processing /home/marwin/Workspace/vim/vim-cmake/autoload/cmake.vim[24]..function 29[6]..<SNR>30_SetCurrentConfig[11]..20[4]..18:
line 3:
E896: Argument of get() must be a List, Dictionary or Blob
Press ENTER or type command to continue
While git bisecting this, the issue disappeared and I am no longer able to reproduce it (I did not change anything else). Probably just a broken state file or something.
@cdelledonne
Bug description
Vim shows multiple errors when running any command from Vim-CMake. This does not happen in NeoVim. The errors don't appear to break anything obvious based on some preliminary testing.
To Reproduce
Steps to reproduce the behavior:
:CMakeOpen
As shell commands:
Expected behavior
The code in question should not produce any errors at this stage.
Behavior with minimal
.vimrc
Works without any vimrc
Screenshots
Other info
:echo cmake#GetInfo().version
): 0.11.1 (current master fcd20af9758a38c98ece6660e5b2780eef93333e)cmake --version
):3.24.2
Additional context
The error from the screenshot as text:
Originally reported by @marwing in https://github.com/cdelledonne/vim-cmake/issues/70#issuecomment-1297564153