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

use newest world callback on_done #21027

Merged
merged 3 commits into from
Mar 18, 2017
Merged

Conversation

randy3k
Copy link
Contributor

@randy3k randy3k commented Mar 14, 2017

RCall REPL mode requires a custom on_done to work. At the current master branch, it is broken.

The applicable method may be too new: running in world age 20392, while current world is 20418.

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.

@StefanKarpinski
Copy link
Member

Is there any way this could be tested?

@StefanKarpinski
Copy link
Member

@yuyichao – since @vtjnash is on vacation, would you mind taking a glance at this?

Copy link
Contributor

@yuyichao yuyichao left a 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.

@randy3k
Copy link
Contributor Author

randy3k commented Mar 16, 2017

So what changes should be made? The REPL modes are all initialized at run_interface.

@randy3k
Copy link
Contributor Author

randy3k commented Mar 16, 2017

@yuyichao, is this want you meant?

base/LineEdit.jl Outdated
Expr(:body,
Expr(:return,
Expr(:call,
mode(state(s, s.current_mode)).on_done,
Copy link
Contributor

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...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check the latest commit.

@randy3k
Copy link
Contributor Author

randy3k commented Mar 17, 2017

It seems that appveyor failure is irrelevant.

@randy3k
Copy link
Contributor Author

randy3k commented Mar 18, 2017

@yuyichao does #20167 fix this? Or this patch is still required?

@yuyichao
Copy link
Contributor

This issue is unrelated to #19774 and is not fixed by #20167

@randy3k
Copy link
Contributor Author

randy3k commented Mar 18, 2017

I see. Is it good to go?

@yuyichao
Copy link
Contributor

I approved this 2 days ago afaict....

@nsmith5
Copy link
Contributor

nsmith5 commented Mar 18, 2017

Thanks for this work @randy3k. This fixes a similar issue on Maxima.jl

@KristofferC KristofferC merged commit 93cddfc into JuliaLang:master Mar 18, 2017
@tkelman
Copy link
Contributor

tkelman commented Mar 18, 2017

Is there any way this could be tested?

was never answered

@tkelman tkelman added the needs tests Unit tests are required for this change label Mar 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs tests Unit tests are required for this change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants