Skip to content

REPL: display should only ever be called on the repl backend task #57742

Closed
@IanButterworth

Description

@IanButterworth

During a bracketed paste the display call can be called from another thread, which is a problem for some packages.

The last 2 here are pasted in.

$ julia -t8,0
julia> struct Foo end

julia> Base.display(::Foo) = @show Threads.threadid()

julia> Foo()
Threads.threadid() = 1

julia> Foo()
Threads.threadid() = 1

julia> Foo()
Threads.threadid() = 2

julia> Foo()
Threads.threadid() = 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    REPLJulia's REPL (Read Eval Print Loop)regression 1.11Regression in the 1.11 release

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions