elm-lang / elm-make

A build tool for Elm projects
BSD 3-Clause "New" or "Revised" License
175 stars 45 forks source link

The 2nd time you run elm-make on a file that has warnings, the warnings will not be returned anymore.. unless the module is named `Main` #114

Closed halohalospecial closed 7 years ago

halohalospecial commented 8 years ago

Note: Using elm-make 0.17.1 and Ubuntu 16.04.1 LTS.

Steps to reproduce:

  1. Create a Test.elm file with the following contents:

    module Test exposing (..)
    x = 1
  2. Run the following: elm-make Test.elm --report=json --output=/dev/null --yes --warn

    The output will be something like this:

    [{"tag":"missing type annotation","overview":"Top-level value `x` does not have a type annotation.","details":"I inferred the type annotation so you can copy it into your code:\n\nx : number","region":{"start":{"line":2,"column":1},"end":{"line":2,"column":2}},"type":"warning","file":"Test.elm"}]
    Successfully generated /dev/null
  3. Run it again: elm-make Test.elm --report=json --output=/dev/null --yes --warn

    The output will just be: Successfully generated /dev/null

  4. Change the module name from Test to Main.
  5. Run this: elm-make Test.elm --report=json --output=/dev/null --yes --warn

    The output will be the same as in Step 2.

  6. Run it again: elm-make Test.elm --report=json --output=/dev/null --yes --warn

    The output will still be the same as in Step 2.

process-bot commented 8 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

evancz commented 7 years ago

Already reported in #27 and tracked in #98