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

Getting a invalid Json error #27

Closed
jouderianjr opened this issue Jan 28, 2020 · 4 comments
Closed

Getting a invalid Json error #27

jouderianjr opened this issue Jan 28, 2020 · 4 comments
Assignees

Comments

@jouderianjr
Copy link

Hello folks, I'm getting an error trying to run the elm-coverage
Received invalid JSON from test interface search: SyntaxError: Unexpected token e in JSON at position 0 I notice that this come from elm-test --compiler /Users/jouderianjr/.npm-global/lib/node_modules/elm-coverage/bin/fake-elm tests/.

The thing is when I run elm-test it works and all the tests pass. does someone know what could be wrong?

P.S it is elm 0.19.1

@ceddlyburge
Copy link

I also see this. It works with Elm 0.19.0

@YauhenPylAurea
Copy link

YauhenPylAurea commented Oct 3, 2020

Hello, I had the same issue. Is there any solution? Thanks. (elm 0.19.1, elm-test 0.19.1, windows 10)

@zwilias zwilias self-assigned this Oct 3, 2020
@marc136
Copy link
Contributor

marc136 commented May 10, 2021

It seems like the issue is related to elmi-to-json (which is used in the outdated [email protected] that is currently hardcoded in elm-coverage). At least the error message looks like the one reported in elm-test rtfeldman/node-test-runner#258 (comment) and there it was solved by removing elmi-to-json.
So I think that PR #31 also fixes this bug.

In my tests, elm-coverage reports were generated on linux and windows when used with the current [email protected].

@zwilias
Copy link
Owner

zwilias commented Jan 8, 2022

Should be fine with latest (>0.4.0) version 🎉

@zwilias zwilias closed this as completed Jan 8, 2022
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

5 participants