Error when generating the html output: commitAndReleaseBuffer: invalid argument (invalid character) #40
I am trying to compile a simple program and I am getting an error when generating the html output.
I am using elm 0.15.1 on Windows.
I have installed from source.
The HTML is generated but the browser shows a blank page with no content.
The error is not shown when generating JS.
This might be relevant
I also get this error doing a straight copy/paste of the HTTP Tasks part of the Reactivity tutorial: http://elm-lang.org/guide/reactivity
Using elm-make to compile to elm.js works fine; it only exhibits the error when compiling to HTML.
Specifically, the HTML generation stops shortly after the third real usage of the "smartypants" field. Comparing to the full elm.js, it looks like it's halting on these characters:
The HTML output simply ends with this:
(I'm in the US, if that helps with tracking down the necessary encodings.)
Edit: I just wrote up a blog post for working around this until the bug is resolved. A simple trick is to generate the elm.js file and just import it into an HTML page, as the error seems to only affect the HTML generation, not the JS generation.