Closed vitallium closed 1 month ago
I get a different error when targeting WASM. On a fresh clone, at 6648ac1c0cdadaec8ee8bcf9a4ca6ace5102cf21, building for WASM outputs
This external scanner uses a symbol that isn't available to wasm parsers.
Missing symbols:
fiprintf
fwrite
fputc
exit
stderr
Available symbols:
calloc
free
iswalnum
iswalpha
iswblank
iswdigit
iswlower
iswspace
iswupper
iswxdigit
malloc
memchr
memcmp
memcpy
memmove
memset
realloc
strcmp
strlen
strncat
strncmp
strncpy
towlower
towupper
@tommy's fix f676df8 does not help :/
Specs: Apple M1 Pro on macOS 14.4.1. tree-sitter 0.23.0 emcc 3.1.67-git
I think this should be fixed by https://github.com/IndianBoy42/tree-sitter-just/pull/178, feel free to reopen if that isn't the case.
Hey! First of all, thanks for creating this grammar for Justfiles. I have a small issue when I tried to compile the grammar for the WASM target via WASI SDK:
According to WASI SDK outputting to stdio/stderr is not supported. To avoid that error one can use preprocessor macro to disable printing if the target is WASM:
0001-Disable-debugging-statements-for-the-WASM-target.patch
I think you can replicate that by using the WASI SDK Docker image like this:
And then instantiating the WASM module.
I wonder if you could provide WASM support for the Justfile grammar? That would be really appreciated. Thanks!