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

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

Open
IanButterworth opened this issue Mar 12, 2025 · 0 comments
Open
Labels
regression 1.11 Regression in the 1.11 release REPL Julia's REPL (Read Eval Print Loop)
Milestone

Comments

@IanButterworth
Copy link
Member

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression 1.11 Regression in the 1.11 release REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

No branches or pull requests

1 participant