lewis6991 / impatient.nvim

Improve startup time for Neovim
MIT License
1.19k stars 28 forks source link

trailing data in msgpack string #9

Closed gegoune closed 3 years ago

gegoune commented 3 years ago

Installed this plugin with packer with mpack luarock and added require('impatient') to the top of my init.lua file, getting following error on each nvim start now:

Error detected while processing /Users/<me>/<…>/nvim/init.lua:
E5113: Error while calling lua chunk: .../site/pack/packer/start/impatient.nvim/lua/impatient.lua:121: trailing data in
 msgpack string
Press ENTER or type command to continue

How could I debug it?

lewis6991 commented 3 years ago

Maybe reduce down the plugin list and make sure to delete the cache each time.

gegoune commented 3 years ago

Just removing luacache file gotten rid of error message and quite a few ms from startup time! Great thanks!

shadmansaleh commented 3 years ago

@lewis6991 there will probably always be cases where cache got corrupted or fails to load . I think it'll be best if you use pcall on the load calls and just mark the cache dirty when they fails.

https://github.com/lewis6991/impatient.nvim/blob/c21babb3bbb5f7730143b4346784227436bb7b8b/lua/impatient.lua#L120-L121