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

tree-sitter-cli compatibility #6

Closed
char0n opened this issue Sep 23, 2020 · 4 comments
Closed

tree-sitter-cli compatibility #6

char0n opened this issue Sep 23, 2020 · 4 comments
Labels
question Further information is requested

Comments

@char0n
Copy link

char0n commented Sep 23, 2020

Hi @Menci,

When we try to use [email protected] to build this YAML grammar everything works great. The moment tree-siter-cli is updated to >=0.16.6 the WASM compile successfully but when you try to run it in browser you'll get:

Couldn't find language function in WASM file. Symbols:
[
  "__post_instantiate",
  "dynCall_X",
  "dynCall_i",
  "dynCall_iii",
  "dynCall_iiii",
  "dynCall_vi",
  "dynCall_vii",
  "dynCall_viii"
]

It will be observable in your playground https://ikatyang.github.io/tree-sitter-yaml/ when you build this YAML grammar against latest [email protected].

@ikatyang
Copy link
Owner

I did not get this error on the current playground, which is compiled using [email protected], did I miss something? or is it a [email protected]-only issue?

@char0n
Copy link
Author

char0n commented Sep 23, 2020

Here the problem might be that I'm using latest [email protected] but you're using [email protected] that you've build your self ?

@ikatyang
Copy link
Owner

@char0n
Copy link
Author

char0n commented Sep 23, 2020

The solution to our problem was to runtree-sitter generate before running tree-sitter build-wasm. Thanks for pointing me out to the right direction.

@char0n char0n closed this as completed Sep 23, 2020
@ikatyang ikatyang added question Further information is requested and removed awaiting response labels Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants