Closed nikita-volkov closed 9 years ago
What is your goal?
When someone asks for JSON output, the assumption is that they are a computer. The idea is to provide all the information possible and let the computer work out how to display it.
What is your case?
The SublimeText plugin uses that. But I don't want it to show warnings.
I think this should be an issue on the Sublime Text plugin then. They are showing you info you do not want, so they should provide some way to have settings for this. It is possible this issue will come back to here because I'm thinking of having an elm-warnings.json
file where you can set what you care about, but in the meantime, I think the problem is not in elm-make.
Regardless of resolution it has surprised tooling implementors. A console message about intended usage could fix duplicates of #24. If filtering is easier in Haskell then it might make sense to facilitate tooling implemented in various language/library combinations. I'm passing the torch on Sublime so my opinion is ambivalent too.
Just to tie up the loose ends here, I've filtered it in my Sublime Text plugin.
E.g., in the following you can see me not specifying "--warn" and yet getting the warning messages in the output:
What's even more unfortunate is that there's no way to work around that.