Skip to content

Error message because of wrong string encoding strategy #106

@mipastgt

Description

@mipastgt

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.

  1. 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.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions