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

unable to parse schemata/ #328

Open
JianmingXia opened this issue Jul 30, 2017 · 3 comments
Open

unable to parse schemata/ #328

JianmingXia opened this issue Jul 30, 2017 · 3 comments

Comments

@JianmingXia
Copy link

I use command line in Usage, but combine into a single schema error.
who can help me?

  • unable to parse schemata/app.json (#<JSON::ParserError: 822: unexpected token at '��{'>)
  • unable to parse schemata/user.json (#<JSON::ParserError: 822: unexpected token at '��{'>)
  • Somes files have failed to parse. If you wish to continue without them,please enable faulty_load using --faulty-load
@geemus
Copy link
Member

geemus commented Jul 31, 2017

Hmm. I'm not sure from that info. Could you share the contents of one of the files so we can reproduce? Thanks!

@JianmingXia
Copy link
Author

Now i'm using my work computer, init prmd as https://github.com/interagent/prmd README.md.And this time "Combine into a single schema" success, but the last fail, like this:

error img

The demo pro

@geemus
Copy link
Member

geemus commented Aug 10, 2017

Sorry for the delay, unfortunately I've always found encoding issues to be pretty hard to duplicate/debug. It looks like it might be an issue of mis-interpreting how files should be read due to the setting on the system. For instance, I found a similar error message coming from a different project here: imathis/octopress#1391. From that I suspect that on your system, it is trying to interpret the files as GBK instead of utf-8, which may be leading to the problem. It may be that we need to add similar casts to utf-8 in our File.read. Does that make sense? Would you be willing to give that a try and see if it helps? Thanks!

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