elm / compiler

Compiler for Elm, a functional language for reliable webapps.
https://elm-lang.org/
BSD 3-Clause "New" or "Revised" License
7.54k stars 663 forks source link

Debug usages not failing in optimized compilation if outputting to /dev/null #2163

Open cmditch opened 3 years ago

cmditch commented 3 years ago

Quick Summary: I use the command below in a git prepush. Turns out Debug.todo, Debug.log, etc do not cause a compilation error. elm make src/Main.elm --optimize --output=/dev/null

SSCCE

main = Debug.todo "shouldn't this fail to compile with --optimize --output=/dev/null?"
github-actions[bot] commented 3 years ago

Thanks for reporting this! To set expectations:

Finally, please be patient with the core team. They are trying their best with limited resources.

razzeee commented 3 years ago

Seems to be the output param, works fine without elm make src/Main.elm --optimize