dove icon indicating copy to clipboard operation
dove copied to clipboard

Dove build not generating binaries upon warnings on 1.6.1

Open villesundell opened this issue 2 years ago • 0 comments

Hello! It seems that binaries are not produced if warnings are encountered (1.6.1-5ac671a).

Consider the following file, let's call it Invalid.move:

/** invalid documentation comment **/

Running dove build will report:

warning[W01004]: invalid documentation comment
  ┌─ ./sources/Invalid.move:1:1
  │
1 │ /** invalid documentation comment **/
  │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Documentation comment cannot be matched to a language item

While most of the warnings are worth fixing, some warnings don't need fixing: for example generics in script functions, which currently report:

warning[W04022]: script function cannot be invoked with this signature (NOTE: this may become an error in the future)

(Ending up not generating binaries.)

The compilation process itself is not aborted, you can see warnings from multiple files. Final binaries are not generated, though.

villesundell avatar Mar 14 '22 16:03 villesundell