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

Method Error for length() in Julia v0.5 #48

Closed
paulstey opened this issue Jun 27, 2016 · 2 comments
Closed

Method Error for length() in Julia v0.5 #48

paulstey opened this issue Jun 27, 2016 · 2 comments

Comments

@paulstey
Copy link

I'm not sure if this is a known issue, but I didn't see it already raised.

When using Julia v0.5 I'm getting a MethodError when calling collect(child_elements(xroot)). This fails giving the following message:

ERROR: MethodError: no method matching length(::LightXML.XMLElementIter)
 in _similar_for at ./array.jl:209 [inlined]
 in _collect at ./array.jl:229 [inlined]
 in collect(::LightXML.XMLElementIter) at ./array.jl:225
 in eval(::Module, ::Any) at ./boot.jl:231
 in macro expansion at ./REPL.jl:92 [inlined]
 in (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:46

Incidentally, this error is also returned by running Pkg.test("LightXML").

Again, this only seems to be an issue with Julia v0.5; there is no problem with Julia 0.4.5.

Is this a known issue? Is there an existing fix?

@tkelman
Copy link
Contributor

tkelman commented Jun 27, 2016

#47 may have fixed this on master, I'd have to double-check. Just haven't tagged for some time.

@paulstey
Copy link
Author

Thanks for the quick response. You're exactly right, this is fixed on master. Thank you!

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