arkav / lualine-lsp-progress

LSP Progress lualine componenet
MIT License
227 stars 18 forks source link

Attempt to index a nil value #3

Closed lfdominguez closed 3 years ago

lfdominguez commented 3 years ago

Hi i have this error message on nvim, using rust-tools (rust_analyzer):

Error executing vim.schedule lua callback: ...ine-lsp-progress/lua/lualine/components/lsp_progress.lua:135: attempt to index a nil value

https://github.com/arkav/lualine-lsp-progress/blob/4d7c4e5cc7dc100280d66e240f670f40bdf601c9/lua/lualine/components/lsp_progress.lua#L135

garrickwelsh commented 3 years ago

Thanks @lfdominguez, I have created a pull request with a guard clause, that should prevent this issue (caused by a race condition). Cheers, Garrick.

lfdominguez commented 3 years ago

Great, thanks to you.. I tested the PR and is working great.

arkav commented 3 years ago

Fix merged #4.