Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to get proper colors in compiler errors? #166

Closed
Herteby opened this issue Feb 14, 2019 · 2 comments
Closed

Possible to get proper colors in compiler errors? #166

Herteby opened this issue Feb 14, 2019 · 2 comments

Comments

@Herteby
Copy link

Herteby commented Feb 14, 2019

When using elm make on it's own, you get color highlighting which really helps you spot the differences in big type signatures. But with Webpack it's all white. I tried setting stats: {colors: true} in the Webpack dev server config, but all that did was change the errors to all red.

image

@Herteby
Copy link
Author

Herteby commented Feb 14, 2019

I did some investigation and it seems like it's node-elm-compiler that would have to change for this to work.
The problem is that when it runs the compiler with stdio : "pipe" then the colors are lost.

I actually got color output working by hacking node-elm-compiler so that if there's an error, then it reruns the compiler with stdio : "inherit" 😄

@robinheghan
Copy link
Contributor

Seems to be a problem with node-elm-compiler rtfeldman/node-elm-compiler#91.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants