elm-lang / elm-repl

A REPL for Elm
BSD 3-Clause "New" or "Revised" License
170 stars 34 forks source link

Duplicated error messages #156

Closed hbobenicio closed 7 years ago

hbobenicio commented 7 years ago

Just opened elm-repl 0.18.0 and typed foo 1 2 = 42

Elm-repl gave me 2 duplicated error messages on the output:

---- elm-repl 0.18.0 -----------------------------------------------------------
 :help for help, :exit to exit, more at <https://github.com/elm-lang/elm-repl>
--------------------------------------------------------------------------------
> foo 1 2 = 42
==================================== ERRORS ====================================

-- PARTIAL PATTERN ------------------------------------------- repl-temp-000.elm

This pattern does not cover all possible inputs.

4| foo 1 2 = 42
       ^
You need to account for the following values:

    <values besides 1>

Switch to a `case` expression to handle all possible patterns.

If you are seeing this error for the first time, check out these hints:
<https://github.com/elm-lang/elm-compiler/blob/0.18.0/hints/missing-patterns.md>
The recommendations about wildcard patterns and `Debug.crash` are important!

-- PARTIAL PATTERN ------------------------------------------- repl-temp-000.elm

This pattern does not cover all possible inputs.

4| foo 1 2 = 42
         ^
You need to account for the following values:

    <values besides 2>

Switch to a `case` expression to handle all possible patterns.

If you are seeing this error for the first time, check out these hints:
<https://github.com/elm-lang/elm-compiler/blob/0.18.0/hints/missing-patterns.md>
The recommendations about wildcard patterns and `Debug.crash` are important!

I'm on linux x64 (Kubuntu). Any more info I could provide, just let me know.

process-bot commented 7 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.

hbobenicio commented 7 years ago

I just saw that it happens with compiled source too. So, this is not an Issue with the interpreter. It may concern elm-compiler instead. Closing this issue.