Compiler: elm make --warn --yes flags absent in 0.19

Created on 22 Aug 2018  路  4Comments  路  Source: elm/compiler

For elm 0.18, emacs was running elm-make --yes --warn --output=temp-file-output --report=json temp-file-source to read & fill out type annotations.
When I try to adapt these commands to elm 0.19, I notice flags --yes --warn are no longer accepted.

$ elm make --yes --warn --output=/dev/null --report=json $file
I do not recognize this flag:

    --yes

$ elm make --warn --output=/dev/null --report=json $file
I do not recognize this flag:

    --warn

Is there a replacement for this functionality or a better way to get type annotations?

Most helpful comment

Those flags did not get into 0.19. We will bring warnings back at some point in some form, but with the compiler rewrites, it was quite difficult and I did not want to block the release any longer.

For editor plugins that relied on flags for unintended uses, I do not have good recommendations. We would like to support things explicitly with actual APIs at some point, but we have not had support for that so far.

All 4 comments

Those flags did not get into 0.19. We will bring warnings back at some point in some form, but with the compiler rewrites, it was quite difficult and I did not want to block the release any longer.

For editor plugins that relied on flags for unintended uses, I do not have good recommendations. We would like to support things explicitly with actual APIs at some point, but we have not had support for that so far.

What about the --yes flag , it missing just broke our CI?

What about using yes as an interim solution?

yes | elm make --output=temp_file_output --report=json temp-file-source

@bruchmann we're using vsts as our CI and putting yes | in front seems to cause that task to run indefinitely.

UPDATE: ... just ran it normally without the yes | and it downloaded packages and compiled fine on our CI... so a classic 'fixing a problem that we didn't have' scenario

Was this page helpful?
0 / 5 - 0 ratings