Closed keroami closed 7 years ago
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
Couple of things: (1) despite elm-make listing as its first task , to "compile to JS", it is not the compiler, as that is elm-compiler. How am I supposed to know? Naturally there are bug reports over there, e.g. https://github.com/elm-lang/elm-compiler/issues/1560 (2) It's widely known: https://blog.ilias.xyz/help-my-recursive-decoder-caused-a-runtime-exception-453d46a99e1e and according to this same person (on slack) fixed in 0.19. But not released. For a language that prides itself on having no run-time errors, I do not understand that, (3) If you read this issue in the past 19 days, thanks for not responding with at least (1). (4) I'll close this now.
When I run the attached elm file, the browser console tells me it cannot find
tag
indecoder
. When I inlinelazyRamblingsDecoder
Elm works fine (as expected, the JSON cannot be parsed) Then, when I use theoneOf
construction (where the comments are, i.e. code becomes), same error When I then inline
boxedDecoder
, Elm works fine (and the JSON is parsed and rendered)DecodeRambling.elm.txt
Elm 0.18.0 installed with Npm on Ubuntu.