Skip to content

obsolete version of dependent function being called #19770

@stevengj

Description

@stevengj

I just noticed what seems to have been a resurgence of #265 or a similar problem in 0.6 master, in a context where it didn't appear before (hence a regression).

In IJulia, it calls show(io, "text/plain", x) to get the text representation of the execution result, so if a package or notebook overrides the 3-argument show it should display as such. However, this doesn't seem to be happening anymore. If I make a notebook with

type Foo; end
Base.show(io::IO, ::MIME"text/plain", x::Foo) = print(io, "got a Foo()")
Foo()

Then it displays simply as Foo(), corresponding to the default show for composite types.

The reason that I think this is a related to #265 (or its resolution) is that I was able to work around it by calling eval (JuliaLang/IJulia.jl@3ed9573), using the same workaround as in #7884.

Metadata

Metadata

Assignees

Labels

regressionRegression in behavior compared to a previous version

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions