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

import JSON fails with utf16_is_surrogate undefined #110

Closed
rajathshashidhara opened this issue Jul 1, 2015 · 9 comments
Closed

import JSON fails with utf16_is_surrogate undefined #110

rajathshashidhara opened this issue Jul 1, 2015 · 9 comments

Comments

@rajathshashidhara
Copy link

Fails at Line 141 in Parser.jl
on using JSON

@rajathshashidhara rajathshashidhara changed the title import JSON fails with utf16 import JSON fails with utf16_is_surrogate undefined Jul 1, 2015
@swt30
Copy link

swt30 commented Jul 1, 2015

Introduced by JuliaLang/julia#11551, specifically JuliaLang/julia@a286ce0 which appears to have removed utf16_is_surrogate. In at least one place it's replaced by is_surrogate_codeunit (JuliaLang/julia@a286ce0#diff-c77c77957abcbf5ff43edad984ad701dR48)

@IainNZ
Copy link
Contributor

IainNZ commented Jul 1, 2015

@ScottPJones your expertise needed here

@ScottPJones
Copy link
Contributor

I'm adding something to deprecate.
The problem is that the JSON package is using an undocumented, unexported function,
and when I first wrote the UTF checking/conversion code, I wasn't aware that that was being done
(I now have all of the registered packages downloaded, and grep to make sure anything I change is tested/deprecated if it is used anywhere in the packages).

@IainNZ
Copy link
Contributor

IainNZ commented Jul 1, 2015

Best solution might be to fix JSON.jl to use only documented functions, if at all possible, rather than adding a deprecation to Base.

@IainNZ
Copy link
Contributor

IainNZ commented Jul 1, 2015

Normally PkgEval could identify all the breakages but the one thing it needs to work is JSON

quinnj referenced this issue in JuliaLang/julia Jul 1, 2015
@ScottPJones
Copy link
Contributor

Should I just submit a PR to the JSON package instead?

@IainNZ
Copy link
Contributor

IainNZ commented Jul 1, 2015

Ideally yes. Although, it seems like here:
https://github.com/JuliaLang/JSON.jl/blob/e583641c540dcdafbbe4f748cd12cba544ce12c5/src/Parser.jl#L137-L143
It might sufficient just to back to the pre-0.3.0 definitions? Ideally though we'd use the code from Base though in some sensible way. We can drop the pre-0.3 stuff too.

@ScottPJones
Copy link
Contributor

They should use their own, at least until functions that are made to be public are placed in Base.

@ScottPJones
Copy link
Contributor

Fixed in #111

ScottPJones added a commit to ScottPJones/JSON.jl that referenced this issue Jul 1, 2015
@IainNZ IainNZ closed this as completed in 9f1ac5c Jul 1, 2015
IainNZ added a commit that referenced this issue Jul 1, 2015
Eliminate use of undocumented Base.utf16_* functions (Fix #110)
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

4 participants