Comments (11)
Not sure if that might be important. But my Windows system is in Polish. Could that introduce an invalid character somewhere?
from elm-make.
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.
I get this trying to compile on Windows with Unicode characters c.f. Hakyll FAQ.
from elm-make.
This might be relevant
https://www.reddit.com/r/haskell/comments/37y0cz/little_bug_hunting_help_stdout/
from elm-make.
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.
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.
Any news on this?
from elm-make.
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.
Encountered this error on the reactivity guide at the HTTP Tasks part.
from elm-make.
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.
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)
- Unhelpful error if elm-stuff exists but elm-package.json doesn't HOT 3
- modified source files are not reliably detected due to filesystem timestamp resolution HOT 1
- Feature request: --warn-ignore flag for ignoring certain files when using --warn HOT 2
- String literal containing closing script tag makes generated HTML blow up HOT 2
- elm-make get stuck during compile HOT 3
- Stop unnecessary compilation when interface is not changed HOT 7
- Feature Proposoal: Format Flag for JS vs HTML output HOT 2
- Eating all CPU and memory HOT 2
- --warn about unused variables HOT 2
- Elm run-time error: decoder not found HOT 2
- Illegal instruction: 4 HOT 3
- [feature suggestion] elm-make auto insert type annotation HOT 5
- Output of "elm-make" fails to pass the Closure compiler HOT 2
- elm-make crash on unicode escapes in range \xdc00..\xdfff HOT 4
- generates invalid javascript for unicode characters in range \xd800..\xdbff HOT 3
- Recursive anonymous functions in List fold consume all CPU HOT 2
- Elm make generates broken build if repo name contains dots HOT 1
- probably infinite type causing loop HOT 1
- `elm-package.json` should pick up the correct source directory.
- Support for importing generated code through ES6 imports HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elm-make.