GithubHelp home page GithubHelp logo

Comments (11)

grzegorzbalcerek avatar grzegorzbalcerek commented on May 18, 2024

Not sure if that might be important. But my Windows system is in Polish. Could that introduce an invalid character somewhere?

from elm-make.

jvoigtlaender avatar jvoigtlaender commented on May 18, 2024

If it is a character encoding problem caused by your language setting, maybe this is relevant or could even help your situation.

from elm-make.

texastoland avatar texastoland commented on May 18, 2024

I get this trying to compile on Windows with Unicode characters c.f. Hakyll FAQ.

from elm-make.

artgitt avatar artgitt commented on May 18, 2024

This might be relevant
https://www.reddit.com/r/haskell/comments/37y0cz/little_bug_hunting_help_stdout/

from elm-make.

stormont avatar stormont commented on May 18, 2024

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:

  • return text.replace(/--/g,"—").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"â€�").replace(/\.{3}/g,"…")};

The HTML output simply ends with this:

  • return text.replace(/--/g,"

(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.

from elm-make.

deadfoxygrandpa avatar deadfoxygrandpa commented on May 18, 2024

I'm now seeing this error on Windows 7 using Elm 0.16.0. I was able to resolve it by changing the code page to 65001

from elm-make.

adicirstei avatar adicirstei commented on May 18, 2024

Any news on this?

from elm-make.

ianrae avatar ianrae commented on May 18, 2024

Seeing this error on Windows 8 and Elm 0.16. Am working through http://elm-by-example.org/chapter1helloworld.html. HelloWorld1, 2, and 3 work fine. HelloWorld4 (which requires elm-markdown) has the error.

from elm-make.

nmdanny avatar nmdanny commented on May 18, 2024

Encountered this error on the reactivity guide at the HTTP Tasks part.

from elm-make.

philderbeast avatar philderbeast commented on May 18, 2024

As reported by others in this thread and from the Hakyll link, on windows running chcp 65001 fixed this problem for me.

from elm-make.

evancz avatar evancz commented on May 18, 2024

I believe @jvoigtlaender resolved this, and the fix came out with 0.17. We can open again if it persists.

from elm-make.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.