Closed SirZenith closed 1 year ago
@SirZenith Been trying out V for the first time and had exactly the same issue with Treesitter on Nvim. Did you find a workaround somehow?
@theoribeiro No, this is a tree-sitter-v problem, and need to be fixed in tree-sitter-v.
The only thing I can do now is :e
every time that ERROR
node shows up.
Sorry for the confusion, is this tree-sitter-v's official repo? https://github.com/nedpals/tree-sitter-v
So you manually sync whenever there are updates or is tree-sitter-v on this repo deprecated?
This kind of is tree-sitter-v's official repo. V team decides to manage tree-sitter-v source code here to make VLS update easier for user.
We make changes to tree-sitter-v here. All necessary changes are then sync to the repo you mentioned.
Try https://blog.vosca.dev/meet-v-analyzer/ instead, now that it is released.
System Information
V doctor
VLS info
Problem Description
During file modification, Tree-sitter gives wrong AST for source code:
Expected Output
Proper Tree-sitter AST should be:
Actual Output
Note: AST output is given by nvim-treesitter/playground plugin of Neovim.
Steps to Reproduce
You only need to modify assignment of
test
on line 4.Open you file and start VLS with:
Type whatever you like into string literal:
Start deleting character you just typee one by one from the end of string literal, until the string is empty:
Now you should see the
ERROR
node in AST.