DerekStride / tree-sitter-sql

SQL grammar for tree-sitter
http://derek.stride.host/tree-sitter-sql/
MIT License
149 stars 47 forks source link

Generated WASM file not working #268

Open Vokturz opened 1 month ago

Vokturz commented 1 month ago

Hi, I'm trying to use the generated wasm file with web-tree-sitter and the following error appears when trying to parse code:

RuntimeError: null function or function signature mismatch
    at tree-sitter.wasm:0x7960
    at tree-sitter.wasm:0x2a996
    at Parser.parse (web-tree-sitter.js?v=a1488891:676:29)

To make the wasm I'm doing:

  1. npm install --save-dev tree-sitter-cli @derekstride/tree-sitter-sql
  2. 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.

matthias-Q commented 1 month ago

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.

matthias-Q commented 1 month ago

Can you check again. We had some releases in between, which might have solved this issue.