Skip to content

Output to STDOUT blocks reporting to STDERR #388

Description

@Jwashton

Given a Gren file with a known compilation issue like so:

module Broken exposing (..)

main =
    Html.text "Hello"

If I compile this module with output to a file, compilation errors are reported to STDERR:

$ gren make Broken --output=broken.js --report=json 2> errors.json
$ cat errors.json | jq
{
  "type": "compile-errors",
  "errors": [
    {
      "path":
# etc...

But if I redirect the output to STDOUT, reporting on STDERR disappears.

$ gren make Broken --output=/dev/stdout --report=json 2> errors.json
$ cat errors.json
# file is empty

Gren version 0.6.6 on Linux.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions