Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Formatting.jl is broken on v0.6 #27

Closed
ScottPJones opened this issue Jan 26, 2017 · 1 comment
Closed

Formatting.jl is broken on v0.6 #27

ScottPJones opened this issue Jan 26, 2017 · 1 comment

Comments

@ScottPJones
Copy link
Collaborator

It looks like this is caused by JuliaLang/julia#17057.
The relevant code is in cformat.jl (the generate_formatter function), where it creates a function that wraps a call to @sprintf with quote, and then uses eval and stores the function into a Dict to memoize it based on the format string.
This worked previous to 17057 on master, but now it gets the following error:

ERROR: LoadError: LoadError: MethodError: no method matching (::##1#2)(::Float64)
The applicable method may be too new: running in world age 21340, while current world is 21341.
Closest candidates are:
  #1(::Any) at /j/Formatting.jl/test/cformat.jl:10 (method too new to be called from this world context.)
Stacktrace:
 [1] test_equality() at /j/Formatting.jl/test/cformat.jl:15
@ScottPJones
Copy link
Collaborator Author

ScottPJones commented Jan 28, 2017

Fixed by #29

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant