-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug report] Plugin and color schemes broken in Vim after "Rework" #86
Comments
Thanks for creating the issue, no it’s not intentional for this to not work with standard vim. I’ll revert the commit and a new PR can be created to re-add the rework PR with the bug fixes. |
It's been reverted in |
Don't know if it's related, but I get this in vim after the last commit:
|
@jgb after the revert? How are you using tinted-vim in your vim setup? |
After the revert yes. I'm not even using it currently, I just have it installed using vim-plug, and it throws that error as soon as I launch vim or gvim. |
This line contains tinted-vim/plugin/tinted-vim.vim Line 8 in 83e30b2
upd. Okay, sorry, the line itself is okay, but L.25 of the required file contains |
👍 My understanding is those are just helper files, so while they may exist in the repo, it's not required for people to use. When I tested out the rework I simply used my current setup with the new |
The revert did indeed fix the broken theme files, but the plugin itself still ships code that (from my cursory check) will only work in Neovim, but not Vim: The file And that Vimscript file contains the following lines: " Load the Lua code
lua require('tinted-vim') There is no command called if has('nvim')
" Load the Lua code
lua require('tinted-vim')
endif The Neovim-specific Lua module should run and Vim users get no error message. It seems as if the entire rework was not fully tested outside of Neovim and a few select base24 themes and it turn possibly broke all other setups. |
I've added the nvim conditional to the script: #88 Edit: I’ll look at getting vim tests set up so we can more easily catch these types of things in future. |
Sorry for breaking vim, fixing it in #89. |
Happens to the best of us. Which is also why I try to avoid merging stuff on weekends these days. 😅 |
@PatTheMav @omnster @jbg @JamyGolden Could you give the pull request #89 a test run? |
Describe the bug
After updating the plugin to the newest state after the rework was merged leads to errors at startup of Vim:
Furthermore, removing the
tinted-vim
plugin (that seems to require Neovim anyway), leads to the following errors with some of the updated colour schemes (base16-material
in this case):By the looks of it, this updated theme uses
none
andunderline
as theguisp
argument toTinted_Hi
, which expects a supported colour value instead.The updated colour scheme also contains the following comment:
But the actual code only contains a fallback conditional for
base16_colorspace
and notbase16colorspace
, so any users running with the second value will actually experience breakage.And last, but not least, it is an error that the scheme bears the colour name
base24-material
, when it is indeedbase16-material
.I spot-checked some other base16-based color schemes and they all exhibited the same issues.
Expected behavior
System
Vim or Neovim: Vim
Vim or Neovim version: Vim 9.1.0850
Minimal configuration file
This assumes using Vim's built-in plugin support by placing
tinted-vim
in~/pack/plugins/start/tinted-vim
:The text was updated successfully, but these errors were encountered: