-
Notifications
You must be signed in to change notification settings - Fork 58
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
Generated WASM file not working #268
Comments
I cannot reproduce this. I did a fresh clone, using node 22 and I can build the wasm file without errors. Building it with the rust cli also works. |
Can you check again. We had some releases in between, which might have solved this issue. |
maybe function pointer convert problem I build tree-sitter, tree-sitter-sql and rust bindings, one build arg is very is import which may involved with this.
|
Could be the same issue I'm having. I did the same thing I'd done for other grammars:
The tree is not generating, What I get in Chrome dev. console is this:
|
BTW, I tried using -sEMULATE_FUNCTION_POINTER_CASTS=1, and it didn't help. In fact, it broke other grammars, so I reset it back. |
Hi, I'm trying to use the generated wasm file with web-tree-sitter and the following error appears when trying to parse code:
To make the wasm I'm doing:
npm install --save-dev tree-sitter-cli @derekstride/tree-sitter-sql
npx tree-sitter build --wasm node_modules/@derekstride/tree-sitter-sql
Did I skip any steps? I previously tried with
tree-sitter-javascript
and everything works perfectly.The text was updated successfully, but these errors were encountered: