NTBBloodbath / galaxyline.nvim

neovim statusline plugin written in lua
MIT License
164 stars 16 forks source link

Plugin crashes when using diagnostics provider #25

Closed richin13 closed 2 years ago

richin13 commented 2 years ago

Commit 3b9d3f0b4592168baefa5838d943963336bc6a40 introduced an error when trying to use the DiagnosticError, DiagnosticWarn, DiagnosticHint & DiagnosticInfo sections.

It crashes with a

.../galaxyline.nvim/lua/galaxyline/pro...dex local 'diag_type' (a number value)
stack traceback:
^I.../galaxyline.nvim/lua/galaxyline/p...c.lua:34: in function 'get_diagnostic'
^I.../galaxyline.nvim/lua/galaxyline/p...s/diagnostic.lua:43: in function 'cmd'
^I...m/pack/packager/start/galaxyline....galaxyline.nvim/lua/galaxyline.lua:24>
E15: Invalid expression: luaeval('require("galaxyline").component_decorator')("DiagnosticError")

I'm running the latest nightly:

NVIM v0.7.0-dev+719-gbdfea9d9a
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc-11 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/runner/work/neovim/neovim/build/config -I/home/runner/work/neovim/neovim/src -I/home/runner/work/neovim/neovim/.deps/usr/include -I/usr/include -I/home/runner/work/neovim/neovim/build/src/nvim/auto -I/home/runner/work/neovim/neovim/build/include
Compiled by runner@fv-az50-393

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/share/nvim"

Run :checkhealth for more info

And the latest coc.nvim

NTBBloodbath commented 2 years ago

Hey, thanks for reporting this. I think this bug should be solved after merging #24.

My apologies for that error! 😅