In the gradle plugin config I configured a function with a string return value. At build time I got the following error message:
Failed to generate function hello because Function definition defines return type [Number(numberType=I32), Number(numberType=I32)] but actual wasm function returns [Number(numberType=I32)]
This message has two problems.
- It seems that the message was not written to stderr. At least it was not color coded as an error message in the console like all the other error messages and warnings. It appeared as plain text and thus was not easy to spot.
- It would be nice if the message would tell me that I should just add "StringEncodingStrategy.NULL_TERMINATED" because the default strategy does not fit the signature of the Wasm function.
In the gradle plugin config I configured a function with a string return value. At build time I got the following error message:
Failed to generate function hello because Function definition defines return type [Number(numberType=I32), Number(numberType=I32)] but actual wasm function returns [Number(numberType=I32)]This message has two problems.