{"action":"created","issue":{"url":"https://api.github.com/repos/elm-lang/elm-make/issues/111","repository_url":"https://api.github.com/repos/elm-lang/elm-make","labels_url":"https://api.github.com/repos/elm-lang/elm-make/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/elm-lang/elm-make/issues/111/comments","events_url":"https://api.github.com/repos/elm-lang/elm-make/issues/111/events","html_url":"https://github.com/elm-lang/elm-make/issues/111","id":169161690,"number":111,"title":"Some errors emitted by elm-make do not respect the --report=json flag","user":{"login":"lookyhooky","id":4984576,"avatar_url":"https://avatars.githubusercontent.com/u/4984576?v=3","gravatar_id":"","url":"https://api.github.com/users/lookyhooky","html_url":"https://github.com/lookyhooky","followers_url":"https://api.github.com/users/lookyhooky/followers","following_url":"https://api.github.com/users/lookyhooky/following{/other_user}","gists_url":"https://api.github.com/users/lookyhooky/gists{/gist_id}","starred_url":"https://api.github.com/users/lookyhooky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lookyhooky/subscriptions","organizations_url":"https://api.github.com/users/lookyhooky/orgs","repos_url":"https://api.github.com/users/lookyhooky/repos","events_url":"https://api.github.com/users/lookyhooky/events{/privacy}","received_events_url":"https://api.github.com/users/lookyhooky/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-03T15:31:21Z","updated_at":"2016-08-09T21:05:18Z","closed_at":"2016-08-09T21:05:17Z","body":"I am using Node 6.2.2, Elm 0.17.1\r\n\r\nSome errors in elm-make do not respect the `--report=json` flag. The regular error messages are sent directly to stderr.\r\n\r\nI admit total ignorance in Haskell, though one instance of the issue appears to be in the function printError in the BuildManager module. It must not be the only culprit because the syntax errors below are not included in printError.\r\n\r\nHere are a few of the types of errors that create the issue:\r\n\r\n## This file uses 0.16 syntax\r\n\r\n    -- Main.elm\r\n    module Main where\r\n\r\n    -- Rest of file...\r\n\r\nExecuting `elm-make --report=json Main.elm` returns the message below rather than json.\r\n\r\n     -- SYNTAX PROBLEM ----------------------------------------------------- Main.elm\r\n\r\n    I ran into something unexpected when parsing your code!\r\n\r\n    1| module Main where\r\n                   ^\r\n    I am looking for one of the following things:\r\n\r\n        something like `exposing (..)` which replaced `where` in 0.17\r\n        whitespace\r\n\r\n## This file misspells `exposing` as  `Fexposing`\r\n    \r\n    -- Main.elm\r\n    module Main exposing (..)\r\n\r\n    import Html Fexposing (..)\r\n\r\n    -- Rest of file...\r\n\r\nExecuting `elm-make --report=json Main.elm` returns the message below rather than json.\r\n\r\n    -- SYNTAX PROBLEM ----------------------------------------------------- Main.elm\r\n\r\n    I need a fresh line to start a new declaration. This means a new line that\r\n    starts with stuff, not with spaces or comments.\r\n\r\n    3| import Html Fexposing (..)\r\n                   ^\r\n    I am looking for one of the following things:\r\n\r\n        reserved word `as`\r\n        reserved word `exposing`\r\n        whitespace\r\n\r\n## This file tries to import an uninstalled module\r\n\r\n    -- Main.elm\r\n    module Main exposing (..)\r\n\r\n    import Unknown -- Some uninstalled module\r\n    import Html exposing (..)\r\n\r\n    -- Rest of file...\r\n\r\nExecuting `elm-make --report=json Main.elm` returns the message below rather than json.\r\n\r\n    I cannot find module 'Unknown'.\r\n\r\n    Module 'Main' is trying to import it.\r\n\r\n    Potential problems could be:\r\n      * Misspelled the module name\r\n      * Need to add a source directory or new dependency to elm-package.json"},"comment":{"url":"https://api.github.com/repos/elm-lang/elm-make/issues/comments/238691126","html_url":"https://github.com/elm-lang/elm-make/issues/111#issuecomment-238691126","issue_url":"https://api.github.com/repos/elm-lang/elm-make/issues/111","id":238691126,"user":{"login":"evancz","id":1658058,"avatar_url":"https://avatars.githubusercontent.com/u/1658058?v=3","gravatar_id":"","url":"https://api.github.com/users/evancz","html_url":"https://github.com/evancz","followers_url":"https://api.github.com/users/evancz/followers","following_url":"https://api.github.com/users/evancz/following{/other_user}","gists_url":"https://api.github.com/users/evancz/gists{/gist_id}","starred_url":"https://api.github.com/users/evancz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evancz/subscriptions","organizations_url":"https://api.github.com/users/evancz/orgs","repos_url":"https://api.github.com/users/evancz/repos","events_url":"https://api.github.com/users/evancz/events{/privacy}","received_events_url":"https://api.github.com/users/evancz/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T21:05:17Z","updated_at":"2016-08-09T21:05:17Z","body":"This is covered by https://github.com/elm-lang/elm-make/issues/98"}}
{"actor":{"display_login":"evancz"}}