LuaSnip icon indicating copy to clipboard operation
LuaSnip copied to clipboard

Neovim crashes when LuaSnip is used

Open pelegs opened this issue 3 years ago • 3 comments

I've installed LuaSnip and Friendly-Snippets (my config can be found here). When choosing a snippet and pressing return, neovim crashes with the following message: luasnip_error_crash

I ran :checkhealth, but there's no issue there regarding LuaSnip. My system is Arch Linux, neovim version is 0.8.0 (LuaJIT 2.1.0-beta3). I will of course provide more info on request.

pelegs avatar Oct 11 '22 19:10 pelegs

After many tests I found out that this has something to do with coq-luasnip, as it doesn't not happen when I disable it.

pelegs avatar Oct 11 '22 22:10 pelegs

Ouh, that might be due to unfortunate timing (coq/luasnip removing the same text seems likely atm).. could you insert a few (~20 should be more than enough) spaces (or any other character) into the buffer in front of the cursor and expand? The culprit is probably this line

L3MON4D3 avatar Oct 11 '22 22:10 L3MON4D3

Maybe, to be honest I have zero experience with lua in general and neovim related programming in particular so this might take a while for me to figure out...

pelegs avatar Oct 12 '22 15:10 pelegs