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

Wast2Json fails on the testsuite #2410

Closed
CharlieTap opened this issue Apr 29, 2024 · 8 comments
Closed

Wast2Json fails on the testsuite #2410

CharlieTap opened this issue Apr 29, 2024 · 8 comments

Comments

@CharlieTap
Copy link

Running the latest wast2json (1.0.34) on comments.wast or if.wast fails with the following errors:

comments.wast:104:1: error: unexpected token "(", expected a binary module or a text module.
(assert_return (invoke "f1") (i32.const 2))
^
comments.wast:104:30: error: unexpected token (, expected EOF.
(assert_return (invoke "f1") (i32.const 2))
                             ^
if.wast:533:33: error: unexpected token (, expected ).
    (if (i32.const 1) (i32.eqz) (then) (else))
                                ^
if.wast:537:17: error: unexpected token "invoke", expected an instr.
(assert_return (invoke "empty" (i32.const 0)))
                ^^^^^^
@sbc100
Copy link
Member

sbc100 commented Apr 29, 2024

wast2json is only known to work on the version of the testsuite that wabt itself includes as a submodule. Once that gets updated I assume wast2json will get updated too, but we don't know of any efforts to update currently.

@keithw
Copy link
Member

keithw commented Apr 29, 2024

wast2json (from Git) does work on the latest if.wast (since #2349); we just haven't done a release since then.

We do need to update for the spec change that affected comments.wast (WebAssembly/spec#1684).

@sbc100
Copy link
Member

sbc100 commented May 3, 2024

I'm trying to roll the testsuite now and I'm running into this issue too. Do you have a fix the comments.wast issue @keithw ?

@keithw
Copy link
Member

keithw commented May 3, 2024

Unfortunately I haven't looked at this one yet.

@sbc100
Copy link
Member

sbc100 commented May 4, 2024

FYI I looked into just now and made some progres.... but haven't fully figured it out yet.

@sbc100
Copy link
Member

sbc100 commented May 14, 2024

The comments.wast issue was fixed in #2416

@sbc100 sbc100 closed this as completed May 14, 2024
@CharlieTap
Copy link
Author

Whats the chances we can get a release soon for this? I'd like to update this in the CI for my project but I don't build from source as it takes a while 😅

@sbc100
Copy link
Member

sbc100 commented May 14, 2024

I don't see why we can't do one right now.. I'll see its as simple as just creating a release..

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

3 participants