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

Types wrongly redefined in early 0.5.0-dev #6

Closed
damiendr opened this issue Sep 16, 2016 · 4 comments
Closed

Types wrongly redefined in early 0.5.0-dev #6

damiendr opened this issue Sep 16, 2016 · 4 comments

Comments

@damiendr
Copy link

damiendr commented Sep 16, 2016

I am stuck at a particular version of Julia (0.5.0-dev+2349) where UTF-16 and UTF-32 types are still defined in Base (that's pre PR #16590). This creates problems because LegacyString then redefines these types.

I used the following fix in LegacyStrings.jl, line 45:

+    if !isdefined(Base, :UTF16String)
-    if VERSION >= v"0.5.0-"

I guess this is a fairly rare case but it might be worth relying more on isdefined than on version checks?

PS. I can prepare a pull request if you agree on that kind of change.

@tkelman
Copy link
Collaborator

tkelman commented Sep 16, 2016

Yes. Submit a PR? There are also some annoying "cannot import lastidx" warnings I've seen due to this package on some Julia versions.

@damiendr
Copy link
Author

OK, I'll submit a PR for the issue with redefined types! I don't know about the "cannot import lastidx" problem though.

@tkelman
Copy link
Collaborator

tkelman commented Sep 16, 2016

No worries, anything where you know a good solution, a PR is much appreciated. I'll try to remember to dig into where the lastidx thing comes from next time I see it happen.

@stevengj
Copy link
Member

stevengj commented May 3, 2023

No longer relevant.

@stevengj stevengj closed this as completed May 3, 2023
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

3 participants