Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update treesitter to 0.19.2 #46

Closed
wants to merge 1 commit into from
Closed

Conversation

zegervdv
Copy link
Contributor

@zegervdv zegervdv commented Mar 8, 2021

I am trying to update tree-sitter to version 0.19.2 (for nvim-treesitter/nvim-treesitter#1000) and found a new error when generating the code:

Unresolved conflict for symbol sequence:

  '['  _identifier  •  '.'  …

Possible interpretations:

  1:  '['  (_sequence_identifier  _identifier)  •  '.'  …
  2:  '['  (generate_block_identifier  _identifier)  •  '.'  …
  3:  '['  (hierarchical_identifier_repeat1  _identifier  •  '.')  (precedence: 0, associativity: Left)
  4:  '['  (let_expression  _identifier)  •  '.'  …                (precedence: 0, associativity: Left)
  5:  '['  (primary  _identifier  •  select1)                      (precedence: 0, associativity: Left)
  6:  '['  (primary  _identifier)  •  '.'  …                       (precedence: 0, associativity: Left)
  7:  '['  (sequence_instance  _identifier)  •  '.'  …             (precedence: 0, associativity: Left)
  8:  '['  (tf_call  _identifier)  •  '.'  …                       (precedence: 0, associativity: Left)

Possible resolutions:

  1:  Specify a higher precedence in `primary` and `hierarchical_identifier_repeat1` than in the other rules.
  2:  Specify a higher precedence in `sequence_instance` than in the other rules.
  3:  Specify a higher precedence in `let_expression` than in the other rules.
  4:  Specify a higher precedence in `tf_call` than in the other rules.
  5:  Specify a higher precedence in `primary` than in the other rules.
  6:  Specify a higher precedence in `generate_block_identifier` than in the other rules.
  7:  Specify a higher precedence in `_sequence_identifier` than in the other rules.
  8:  Specify a left or right associativity in `sequence_instance` and `let_expression` and `tf_call` and `primary` and `generate_block_identifier` and `_sequence_identifier`
  9:  Add a conflict for these rules: `sequence_instance`, `let_expression`, `tf_call`, `primary`, `generate_block_identifier`, `_sequence_identifier`

I wonder if this is somehow related to #43 ? Do you have an idea how to fix this error?

@drom
Copy link
Collaborator

drom commented Mar 9, 2021

It does look like an issue with grammar. Let me debug it.
#47

@drom
Copy link
Collaborator

drom commented Mar 9, 2021

I fixed it in v0.20.0. Please try

@zegervdv
Copy link
Contributor Author

Yes that seems to work. Thanks!

@zegervdv zegervdv closed this Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants