-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
use newest world callback on_done #21027
Conversation
Is there any way this could be tested? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has the sames issue as #19924 (comment) and since it obviously lasted longer than a month it should be probably quoted similar to the ones in REPL.jl .
Also, when is the REPL mode loaded? It seems that it's better to run a heigher level function in the latest world instead.
So what changes should be made? The REPL modes are all initialized at run_interface. |
@yuyichao, is this want you meant? |
base/LineEdit.jl
Outdated
Expr(:body, | ||
Expr(:return, | ||
Expr(:call, | ||
mode(state(s, s.current_mode)).on_done, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually the callee also needs to be quoted...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check the latest commit.
It seems that appveyor failure is irrelevant. |
I see. Is it good to go? |
I approved this 2 days ago afaict.... |
was never answered |
RCall REPL mode requires a custom
on_done
to work. At the current master branch, it is broken.It occurs after #17057 and has been reported by #19774. @KristofferC has reported a similar bug for custom keybind in REPL mode at #19718 and it was patched at #19924. This solution suggested is to use
eval
to execute the callbacks, it serves as a temp solution before a better solution arrives.