Minor race condition in line order of compiler error output
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the issue by repeatedly compiling the reported Gren 0.6.3 example and compare the compiler error output ordering. Trace how the type annotation and “Detected problems” messages are emitted; done means the complete diagnostic remains in the correct order across repeated compilations.
Written by the indexing model from the issue text.
Description
I'm using Gren 0.6.3.
I have some code here that outputs the following error message:
Compiling (3)-- TYPE MISMATCH ---------------------------------------------- src/App/Cmd.gren
Something is off with the body of the `printLine` definition:
20| Stream.write toStream
^^^^^^^^^^^^^^^^^^^^^
This `write` call produces:
Stream.Writable (Stream.Writable Bytes)
-> Task.Task Stream.Error (Stream.Writable (Stream.Writable Bytes))
But the type annotation on `printLine` says it should be:
Cmd Msg
Detected problems in 1 module.
But when I repeatedly attempt the compilation, the message sometimes looks like this:
Compiling (3)-- TYPE MISMATCH ---------------------------------------------- src/App/Cmd.gren
Something is off with the body of the `printLine` definition:
20| Stream.write toStream
^^^^^^^^^^^^^^^^^^^^^
This `write` call produces:
Stream.Writable (Stream.Writable Bytes)
-> Task.Task Stream.Error (Stream.Writable (Stream.Writable Bytes))
Detected problems in 1 module.
the type annotation on `printLine` says it should be:
Cmd Msg
The "Detected problems ..." line is out of place. No big deal, but I thought I'd mention it.
- Dominant language
- Haskell
- Stars
- 503
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from gren-lang/compiler
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
bug good first issue
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 55/100
All issues in gren-lang/compiler
Similar issues
-
time-manager-0.4.0 Openfailure: bounds
Difficulty 1/5 Under an hour Newbie friendliness 72/100
commercialhaskell/stackage#8122 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
simplex-chat/simplex-chat#7547 ·
-
chore
Difficulty 1/5 Under an hour Newbie friendliness 90/100
alunduil/alunduil-chezmoi#775 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
objectionary/phino#1350 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100