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

json::serialization: fix reading attributes from non-objects #2295

Merged
merged 1 commit into from
Aug 26, 2016

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Aug 26, 2016

This error could arise when parsing invalid JSON strings (or non-object JSON values) and skipping the call to deserialize.

See @privat comment in #2291.

@privat
Copy link
Member

privat commented Aug 26, 2016

tests!

@xymus
Copy link
Contributor Author

xymus commented Aug 26, 2016

@privat I'll write tests if you fix nitunit so I can use it in lib/json/serialization.nit and the others.

@privat
Copy link
Member

privat commented Aug 26, 2016

@Morriar fixed nitunit+serial in #2283, DAYS ago!

@xymus
Copy link
Contributor Author

xymus commented Aug 26, 2016

I still get the same error:

Error: conflicting module files for `serialization`: `lib/json/serialization.nit`, `/home/xymus/projects/nit/lib/serialization/serialization.nit`

@privat
Copy link
Member

privat commented Aug 26, 2016

This is a different error. Some path confusion for the inability of nitunit to explain the loader how to find the tested module. Can you copy-paste into a distinct issue so we can merge the PR?

@privat
Copy link
Member

privat commented Aug 26, 2016

+1 by the way :)

@lbajolet
Copy link
Contributor

+1

1 similar comment
@jcbrinfo
Copy link
Contributor

+1

@xymus
Copy link
Contributor Author

xymus commented Aug 26, 2016

See issue #2296.

privat added a commit that referenced this pull request Aug 26, 2016
This error could arise when parsing invalid JSON strings (or non-object JSON values) and skipping the call to `deserialize`.

See @privat comment in #2291.

Pull-Request: #2295
Reviewed-by: Jean Privat <[email protected]>
Reviewed-by: Lucas Bajolet <[email protected]>
@privat privat merged commit 2b1af32 into nitlang:master Aug 26, 2016
@xymus xymus deleted the json branch November 16, 2016 15:23
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.

4 participants