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

Use json5 to load settings files. #71

Merged
merged 1 commit into from
Jun 28, 2019
Merged

Conversation

ian-r-rose
Copy link
Member

This json5 implementation seems like is works okay -- it is written by someone on the Chromium team. It has all sorts of blinking disclaimers that it is extremely slow, but I don't think we need a particularly high-performance algorithm for this use-case.

@blink1073
Copy link
Contributor

Json5 isn't on conda-forge yet...

@ian-r-rose
Copy link
Member Author

Hrm, I was hoping to avoid re-implementing...

@ian-r-rose
Copy link
Member Author

This came up last week, where the server-side and client-side validators for the settings files gave different answers (particularly around ECMA identifiers-as-keys).

@blink1073
Copy link
Contributor

It is fairly straightforward to get something on conda-forge. It doesn't have any dependencies.

@blink1073
Copy link
Contributor

I'm sick today, but here are the instructions: https://conda-forge.org/#add_recipe

@ian-r-rose
Copy link
Member Author

pyjson5 is now on conda-forge, and using this branch prevents 500 errors when the user tries to save valid JSON5-formatted settings files.

@blink1073 blink1073 merged commit 3e97c72 into jupyterlab:master Jun 28, 2019
@jasongrout
Copy link
Contributor

🎉

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

Successfully merging this pull request may close these issues.

3 participants