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

Top level error for simple binding #256

Open
nojaf opened this issue Jan 9, 2025 · 2 comments
Open

Top level error for simple binding #256

nojaf opened this issue Jan 9, 2025 · 2 comments

Comments

@nojaf
Copy link

nojaf commented Jan 9, 2025

When running tree-sitter parse A.res with let a = () => 5 I got:

(source_file [0, 0] - [0, 15]
  (ERROR [0, 0] - [0, 15]
    (let_binding [0, 4] - [0, 15]
      pattern: (value_identifier [0, 4] - [0, 5])
      body: (function [0, 8] - [0, 15]
        parameters: (formal_parameters [0, 8] - [0, 10])
        body: (number [0, 14] - [0, 15])))))
A.res      0.93 ms          16 bytes/ms (ERROR [0, 0] - [0, 15])

Is that first error node a bug?

@WhyThat
Copy link
Contributor

WhyThat commented Jan 22, 2025

It works on my side, did you use the tree-sitter binary from node_modules ?

@nojaf
Copy link
Author

nojaf commented Jan 22, 2025

Ah, no I did a a global install of the latest tree-sitter. Could that be it?

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

No branches or pull requests

2 participants