JunoLab / Juno.jl

MIT License
145 stars 23 forks source link

[Bug] Error when searching `__module__` in the documentatoin #468

Closed aminya closed 4 years ago

aminya commented 4 years ago
MethodError: no method matching show(::Base.GenericIOBuffer{Array{UInt8,1}}, ::MIME{Symbol("text/html")}, ::Symbol)
Closest candidates are:
  show(::IO, !Matched::MIME{Symbol("text/plain")}, ::Any) at multimedia.jl:47
  show(::IO, ::MIME{Symbol("text/html")}, !Matched::Method; kwtype) at methodshow.jl:329
  show(::IO, ::MIME{Symbol("text/html")}, !Matched::Base.MethodList) at methodshow.jl:387
  ...
__binrepr(::MIME{Symbol("text/html")}, ::Symbol, ::Nothing) at multimedia.jl:157
_textrepr(::MIME{Symbol("text/html")}, ::Symbol, ::Nothing) at multimedia.jl:149
#stringmime#6(::Nothing, ::typeof(Base64.stringmime), ::MIME{Symbol("text/html")}, ::Symbol) at Base64.jl:43
stringmime(::MIME{Symbol("text/html")}, ::Symbol) at Base64.jl:43
view(::Symbol) at utils.jl:30
iterate at generator.jl:47 [inlined]
collect_to!(::Array{Any,1}, ::Base.Generator{Array{Any,1},typeof(Juno.view)}, ::Int64, ::Int64) at array.jl:667
collect_to!(::Array{String,1}, ::Base.Generator{Array{Any,1},typeof(Juno.view)}, ::Int64, ::Int64) at array.jl:675
collect_to_with_first!(::Array{String,1}, ::String, ::Base.Generator{Array{Any,1},typeof(Juno.view)}, ::Int64) at array.jl:646
_collect(::Array{Any,1}, ::Base.Generator{Array{Any,1},typeof(Juno.view)}, ::Base.EltypeUnknown, ::Base.HasShape{1}) at array.jl:640
collect_similar at array.jl:564 [inlined]
map at abstractarray.jl:2073 [inlined]
view(::Hiccup.Node{:p}) at view.jl:6
iterate at generator.jl:47 [inlined]
collect_to!(::Array{Dict{Any,Any},1}, ::Base.Generator{Array{Any,1},typeof(Juno.view)}, ::Int64, ::Int64) at array.jl:667
collect_to_with_first!(::Array{Dict{Any,Any},1}, ::Dict{Any,Any}, ::Base.Generator{Array{Any,1},typeof(Juno.view)}, ::Int64) at array.jl:646
_collect(::Array{Any,1}, ::Base.Generator{Array{Any,1},typeof(Juno.view)}, ::Base.EltypeUnknown, ::Base.HasShape{1}) at array.jl:640
collect_similar at array.jl:564 [inlined]
map at abstractarray.jl:2073 [inlined]
view(::Hiccup.Node{:div}) at view.jl:6
renderitem(::DocSeeker.DocObj) at docs.jl:31
#181 at none:0 [inlined]
iterate at generator.jl:47 [inlined]
collect_to!(::Array{Dict{Symbol,Any},1}, ::Base.Generator{Array{Tuple{Float64,DocSeeker.DocObj},1},Atom.var"#181#184"}, ::Int64, ::Int64) at array.jl:667
collect_to_with_first!(::Array{Dict{Symbol,Any},1}, ::Dict{Symbol,Any}, ::Base.Generator{Array{Tuple{Float64,DocSeeker.DocObj},1},Atom.var"#181#184"}, ::Int64) at array.jl:646
collect(::Base.Generator{Array{Tuple{Float64,DocSeeker.DocObj},1},Atom.var"#181#184"}) at array.jl:627
(::Atom.var"#180#183")(::Dict{String,Any}) at docs.jl:22
handlemsg(::Dict{String,Any}, ::Dict{String,Any}) at comm.jl:164
(::Atom.var"#19#21"{Array{Any,1}})() at task.jl:333

image

pfitzseb commented 4 years ago

Can't repro this, so might've gotten fixed accidentally.

aminya commented 4 years ago

It still happens on [c52e3926] Atom v0.11.3.

Also, __module__ doesn't show up in the autocomplete.

aviatesk commented 4 years ago

What the version of your Julia ? I guess that is affected by the change in Julia itself.

aminya commented 4 years ago

What the version of your Julia ? I guess that is affected by the change in Julia itself.

Happens both on Julia 1.3.1 and 1.5