Closed ThomasGysemans closed 7 months ago
I can't reproduce the issue. However, this sounds very similar to an issue I have already fixed in commit https://github.com/virchau13/tree-sitter-astro/commit/1da287da32e6a433e952793e4b91786165257e94.
Maybe your nvim-treesitter
plugin is out of date? Try running :PackerUpdate
and then run :TSUpdate
.
Well strangely enough I've just tried on an other computer and I cannot reproduce the issue either. I guess I must have messed up somewhere in the configuration of my previous computer. If someday I get the problem again I will tell you so but as of now I fear there is nothing more to be said on this subject. I'm sorry for the inconvenience.
No problem. Fixing bugs by doing nothing is always nice :)
Describe the Bug
Basically, I'm using Neovim to write Astro and when writing an opening curly brace at a very specific position in the file, then Neovim freezes and I have no other choice but to force quit.
Here is an example of when the freeze happens in a file named "SomeComponent.astro":
I disabled the astro_language_server (the LSP) from Mason and it didn't change anything. My assumption is that the problem is caused by the Tree sitter specifically in an
.astro
file. Probably an infinite loop in the parsing process. Unfortunately I do not know how to give you more information.Steps to Reproduce
.astro
and go to the first line after the---
part:Try writing an opening curly brace where it is said "Here" in the above example, without the comment. For me, it freezes neovim.
Notes:
:TSUpdate
and it says I'm using the latest versionsAlt (
.astro
files, nowhere else.Here is some of my Neovim plugins that may be relevant (with Packer):