Error Occurs in catppuccin
When Used with feline
and no Cache File Exists
#616
Labels
bug
Something isn't working
Description
I encountered a bug that was challenging to isolate into a minimal configuration. The steps to reproduce may seem trivial, but they are the simplest way to manifest the issue.
When running
catppuccin
alongsidefeline
, and no cache file exists (important only in the absence of a cache file), an unusual error occurs when theWinScrolled
autocmd is triggered:My suspicion is that this error is related to catppuccin's bytecode compiler, as it only appears when catppuccin compiles the
custom_highlights
section of the user config. Strangely, once a cache file exists, the error disappears.It's noteworthy that this bug requires the presence of feline for reproduction. I speculate that when the
CursorMoved
autocmd is triggered, feline renders the statusline, accessing something related to catppuccin. However, the error message is truncated and not displayed on the command line.Neovim version
Terminal and multiplexer
kitty 0.29.2 with tmux 3.3a
Catppuccin version / branch / rev
v1.5.0
Steps to reproduce
nvim --clean -u repro.lua
:qa
rm .repro/cache/nvim/catppuccin/cached
nvim --clean -u repro.lua
:doautocmd CursorMoved
--> Error is printed on the screen
Expected behavior
No error
Actual behavior
Error
Repro
The text was updated successfully, but these errors were encountered: