sainnhe / gruvbox-material

Gruvbox with Material Palette
MIT License
1.83k stars 164 forks source link

Key not present in Dictionary: "bg_blue" #207

Closed AGou-ops closed 1 month ago

AGou-ops commented 1 month ago

I have done the following steps before reporting this issue:

Operating system/version

macOS 14.4.1 (23E224)

Terminal emulator/version

iterm2 3.5.0

$TERM environment variable

xterm-256color

Tmux version

tmux 3.4

Feature matrix

============================================================================== conform: require("conform.health").check()

conform.nvim report ~

============================================================================== dap: require("dap.health").check()

dap: Adapters ~

dap: Sessions ~

============================================================================== diffview: require("diffview.health").check()

Checking plugin dependencies ~

Checking VCS tools ~

============================================================================== lazy: require("lazy.health").check()

lazy.nvim ~

============================================================================== lspsaga: require("lspsaga.health").check()

Lspsaga.nvim report ~

============================================================================== luasnip: require("luasnip.health").check()

luasnip ~

============================================================================== mason: require("mason.health").check()

mason.nvim ~

mason.nvim [Registries] ~

mason.nvim [Core utils] ~

mason.nvim [Languages] ~

mason.nvim [GitHub] ~

============================================================================== nvim: require("nvim.health").check()

Configuration ~

Runtime ~

Performance ~

Remote Plugins ~

terminal ~

tmux ~

External Tools ~

============================================================================== nvim-treesitter: require("nvim-treesitter.health").check()

Installation ~

OS Info: { machine = "arm64", release = "23.4.0", sysname = "Darwin", version = "Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000" } ~

Parser/Features H L F I J

============================================================================== provider: health#provider#check

Clipboard (optional) ~

Python 3 provider (optional) ~

Python virtualenv ~

Ruby provider (optional) ~

Node.js provider (optional) ~

Perl provider (optional) ~

============================================================================== provider.clipboard: require("provider.clipboard.health").check()

Clipboard (optional) ~

============================================================================== provider.node: require("provider.node.health").check()

Node.js provider (optional) ~

============================================================================== provider.perl: require("provider.perl.health").check()

Perl provider (optional) ~

============================================================================== provider.python: require("provider.python.health").check()

Python 3 provider (optional) ~

Python virtualenv ~

============================================================================== provider.ruby: require("provider.ruby.health").check()

Ruby provider (optional) ~

============================================================================== rainbow-delimiters: require("rainbow-delimiters.health").check()

Custom strategies ~

Custom queries ~

Custom highlight groups ~

============================================================================== telescope: require("telescope.health").check()

Checking for required plugins ~

Checking external dependencies ~

===== Installed extensions ===== ~

Telescope Extension: bookmarks ~

Telescope Extension: dap ~

Telescope Extension: fzf ~

Telescope Extension: projects ~

============================================================================== vim.lsp: require("vim.lsp.health").check()

vim.lsp: Active Clients ~

vim.lsp: File watcher ~

============================================================================== vim.treesitter: require("vim.treesitter.health").check()

============================================================================== which-key: require("which-key.health").check()

WhichKey: checking conflicting keymaps ~

Minimal vimrc that can reproduce this bug.

    { ---- colorscheme.
        'sainnhe/gruvbox-material',
        lazy = false, -- make sure we load this during startup if it is your main colorscheme
        priority = 1000, -- make sure to load this before all the other start plugins
        config = function()
            vim.cmd([[
            " https://github.com/sainnhe/gruvbox-material/blob/master/doc/gruvbox-material.txt
            " Important!!
            " For dark version.
            set background=dark
            " Set contrast.
            " This configuration option should be placed before `colorscheme gruvbox-material`.
            " Available values: 'hard', 'medium'(default), 'soft'
            let g:gruvbox_material_background = 'hard'

            let g:gruvbox_material_diagnostic_text_highlight = 1
            " let g:gruvbox_material_diagnostic_line_highlight = 1

            colorscheme gruvbox-material
            ]])
        end,
    },

Steps to reproduce this bug using minimal vimrc

  1. update gruvbox-material to latest commit 9169cec4
  2. set gruvbox_material_diagnostic_text_highlight to 1
  3. launch neovim.

Expected behavior

No error.

Actual behavior

Failed to run `config` for gruvbox-material

vim/_editor.lua:0: /Users/mingday/.config/nvim/init.lua..nvim_exec2() called at /Users/mingday/.config/nvim/init.lua:0../Users/mingday/.local/share/nvim/lazy/gruvbox-material/colors/gruvbox-material.vim,
line 287: Vim(call):E716: Key not present in Dictionary: "bg_blue"

# stacktrace:
  - vim/_editor.lua:0 _in_ **cmd**
  - lua/plugins/init.lua:7 _in_ **config**
  - lua/config/lazy.lua:17
  - lua/config/init.lua:2
  - init.lua:1
antoineco commented 1 month ago

Apologies, I broke it with this commit: https://github.com/sainnhe/gruvbox-material/commit/8ca1c0c6d7b8282a01c3404a50c89cb0c0be6fb3 Fixing now. Thanks for reporting!