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

fix deprecation of IOContext after #24795 #24918

Merged
merged 1 commit into from
Dec 5, 2017

Conversation

fredrikekre
Copy link
Member

julia> IOContext(IOBuffer(), limit=true)
WARNING: IOContext(io, k=v, ...) is deprecated, use IOContext(io, :k => v, ...) instead.
Stacktrace:
 [1] depwarn at ./deprecated.jl:68 [inlined]
 [2] #IOContext#855 at ./deprecated.jl:1562 [inlined]
 [3] (::getfield(Core, Symbol("#kw#Type")))(::NamedTuple{(:limit,),Tuple{Bool}}, ::Type{IOContext}, ::Base.GenericIOBuffer{Array{UInt8,1}}) at ./<missing>:0
 [4] top-level scope
 [5] eval(::Module, ::Expr) at ./repl/REPL.jl:3
 [6] eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./repl/REPL.jl:69
 [7] macro expansion at ./repl/REPL.jl:100 [inlined]
 [8] (::getfield(Base.REPL, Symbol("##1#2")){Base.REPL.REPLBackend})() at ./event.jl:95
in expression starting at no file:0
ERROR: BoundsError: attempt to access true
  at index [2]
Stacktrace:
 [1] indexed_next at ./tuple.jl:60 [inlined]
 [2] #856 at ./<missing>:0 [inlined]
 [3] next(::Base.Generator{NamedTuple{(:limit,),Tuple{Bool}},getfield(Base, Symbol("##856#857"))}, ::Int64) at ./generator.jl:47
 [4] append_any(::Tuple{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Vararg{Any,N} where N) at ./essentials.jl:377
 [5] (::getfield(Core, Symbol("#kw#Type")))(::NamedTuple{(:limit,),Tuple{Bool}}, ::Type{IOContext}, ::Base.GenericIOBuffer{Array{UInt8,1}}) at ./<missing>:0
 [6] top-level scope

@fredrikekre fredrikekre added the deprecation This change introduces or involves a deprecation label Dec 4, 2017
@StefanKarpinski StefanKarpinski merged commit bfe6752 into JuliaLang:master Dec 5, 2017
@fredrikekre fredrikekre deleted the fe/ioc branch December 5, 2017 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation This change introduces or involves a deprecation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants