LunarVim icon indicating copy to clipboard operation
LunarVim copied to clipboard

nvim-treesitter crashes lvim

Open xidiot opened this issue 3 weeks ago • 0 comments

Problem description

  1. Open a *.tf file
  2. Make a visual select on a incorrect block of code, e.g. lifecycle { ignore_changes = [tags["created_date", "created_by"]] }

Just for reference the correct code is: lifecycle { ignore_changes = [tags["created_date"], tags["created_by"]] } 3. Try to paste it in a different file *tf

  1. The following error appears and lvim crashes: Assertion failed: (length <= TREE_SITTER_SERIALIZATION_BUFFER_SIZE), function ts_parser__external_scanner_serialize, file parser.c, line 404

This has been discussed/reported and fixed (it seems) in https://github.com/tree-sitter-grammars/tree-sitter-hcl/issues/46, however when I upgrade nvim-treesitter to the latest main, as suggested in the link above (actually I'm not sure what branch is being used after the pinning is disabled) using LVIM_DEV_MODE=1 lvim ; :Lazy update nvim-treesitter, it seems that there are some breaking changes, which prevents nvim-treesitter from starting. I know that I some details are missing, but I forgot to save them (breaking changes according to Lazy after nvim-treesitter update), and now I'm afraid to do the whole thing again, to not break my lvim.

LunarVim version

master-85ccca9-dirty

Neovim version (>= 0.9.1)

NVIM v0.10.0 Build type: Release LuaJIT 2.1.1716656478

Terminal name

iTerm2

Operating system/version

macOS 14.5

Steps to reproduce

No response

Screenshots

No response

xidiot avatar Jun 24 '24 15:06 xidiot