Open peter-jerry-ye opened 3 weeks ago
Thanks for the report! This is due to how the text format is supported architecturally throughout subcommands which is that it's immediately converted to binary and then it's as-if only the binary was provided. Supporting mapping binary locations back to the original *.wat
file would require source maps of some kind which aren't supported by the wast
crate right now. It's thoeretically possible to do so but might be a chunk of work.
Hello,
I'm trying to validate a wat file with
wasm-tools validate a.wat
, and I'm getting an error message like this:I know I can figure out the error position by running
wasm-tools parse a.wat | wasm-tools print -p
, but is it possible thatwasm-tools validate
provide the file location directly? For example,wat2wasm
would give mea.wat:592:3: error xxx