Closed wszgrcy closed 8 months ago
I git clone this repo and build wasm and run with same error. Is it necessary to provide test cases for the wasm version?
your example worked just fine for me, did you build the wasm file from HEAD? or what version? (hopefully post C++ scanner rewrite into C)
npx tree-sitter build-wasm ./node_modules/tree-sitter-html
I use commit 5760f521fac79263de4ca71a590ef516594c9f37(The latest code at the time of reply),But there is still an error my pc environment: Linux pc-MS-7C94 6.5.0-18-generic #18~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 7 11:40:03 UTC 2 x86_64 x86_64 x86_64 GNU/Linux gcc --version g++ --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Can you provide your build environment so that I can use Docker to build it
Or I need to provide those key information to help troubleshoot
your example worked just fine for me, did you build the wasm file from HEAD? or what version? (hopefully post C++ scanner rewrite into C)
I fork this repo and add github action,Still failing repo https://github.com/wszgrcy/tree-sitter-html action https://github.com/wszgrcy/tree-sitter-html/actions/runs/7991036597/job/21821254491
ah okay, npm is on 0.20.8 which is too old, we will have a release today that should fix this. the issue is we reworked what symbols in scanners are allowed in wasm, but this hasn't been updated in the npm release yet (i was using a build of tree-sitter.js from master, sorry). There is a pre-release of 0.21.0
on npm anyways that could work as well fyi
Thanks for providing debug info! made my life easier
ah okay, npm is on 0.20.8 which is too old, we will have a release today that should fix this. the issue is we reworked what symbols in scanners are allowed in wasm, but this hasn't been updated in the npm release yet (i was using a build of tree-sitter.js from master, sorry). There is a pre-release of
0.21.0
on npm anyways that could work as well fyiThanks for providing debug info! made my life easier
Thank you very much for your help
0.21.0 is now released, that should work for you
npm i tree-sitter-html
(0.20.0)npm i web-tree-sitter
(0.20.8) build commandnpx tree-sitter build-wasm ./node_modules/tree-sitter-html
build with tree-sitter-cli(0.20.8) and generate html.wasm(18kb) then I run withthrow err
if I run with
1234
then It will worked logger