cdelledonne / vim-cmake

Vim/Neovim plugin for working with CMake projects
MIT License
259 stars 21 forks source link

Error messages in vim on any Vim-CMake command #74

Closed marwing closed 1 year ago

marwing commented 1 year ago

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:

  1. make sure there are no active vimrc or plugins
  2. clone/copy/symlink vim-cmake's master branch into ~/.vim/pack/local/start/vim-cmake
  3. open vim and run :CMakeOpen

As shell commands:

mv ~/.vim{,.bak_gh}; mv ~/.vimrc{,.bak_gh}
mkdir -p ~/.vim/pack/local/start/
git -C ~/.vim/pack/local/start clone https://github.com/cdelledonne/vim-cmake.git
git -C ~/.vim/pack/local/start/vim-cmake checkout fcd20af9758a38c98ece6660e5b2780eef93333e
vim +CMakeOpen

# to reset
rm -rf ~/.vim
mv ~/.vim{.bak_gh,}; mv ~/.vimrc{.bak_gh,}

Expected behavior

The code in question should not produce any errors at this stage.

Behavior with minimal .vimrc

Works without any vimrc

Screenshots

2022-10-31-222107_grim

Other info

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

Originally reported by @marwing in https://github.com/cdelledonne/vim-cmake/issues/70#issuecomment-1297564153

marwing commented 1 year ago

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