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

Pass --no-readline to R #25806

Closed
saraedum opened this issue Jul 9, 2018 · 16 comments
Closed

Pass --no-readline to R #25806

saraedum opened this issue Jul 9, 2018 · 16 comments

Comments

@saraedum
Copy link
Member

saraedum commented Jul 9, 2018

Conda and Gentoo (and apparently also ArchLinux and Debian) suffer from hangs when talking to R through the pexpect interface on the first invocation in a Sage session. It is unclear what is the underlying issue. Shortening Sage's R prompt seems to fix the issue as does passing --no-readline to R.

Is there any reason why we should keep readline support when talking to R with the pexpect interface? Otherwise, we should just pass on that flag even though we do not fully understand why it fixes that particular issue.

See conda-forge/sagelib-feedstock#19 (comment), and https://github.com/cschwan/sage-on-gentoo/blob/master/sci-mathematics/sage/files/dt-r-no-readline.patch.

CC: @kiwifb @antonio-rojas @infinity0 @jdemeyer @embray

Component: interfaces

Author: Ximin Luo, Julian Rüth

Branch: 9e6ea7e

Reviewer: Erik Bray

Issue created by migration from https://trac.sagemath.org/ticket/25806

@saraedum saraedum added this to the sage-8.3 milestone Jul 9, 2018
@saraedum
Copy link
Member Author

saraedum commented Jul 9, 2018

Branch: u/saraedum/25806

@saraedum
Copy link
Member Author

saraedum commented Jul 9, 2018

Commit: 2d8f4bc

@saraedum
Copy link
Member Author

saraedum commented Jul 9, 2018

Work Issues: is the patchbot happy?

@saraedum
Copy link
Member Author

saraedum commented Jul 9, 2018

New commits:

2d8f4bcPass --no-readline to R otherwise Pexpect hangs

@saraedum

This comment has been minimized.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 9, 2018

Branch pushed to git repo; I updated commit sha1. New commits:

9e6ea7eLink to #25806 to explain the --no-readline switch

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 9, 2018

Changed commit from 2d8f4bc to 9e6ea7e

@embray
Copy link
Contributor

embray commented Jul 9, 2018

Reviewer: Erik Bray

@embray
Copy link
Contributor

embray commented Jul 9, 2018

comment:5

This makes sense to me. There is a similar issue #25363 where it was needed to disable prompt_toolkit for Cantor's pexect interface to Sage to work (I believe Cantor is wrong to use pexpect to wrap Sage in the first place, but that's a different story).

I don't know why this would be a problem on some platforms but not others.


New commits:

9e6ea7eLink to #25806 to explain the --no-readline switch

@saraedum
Copy link
Member Author

saraedum commented Jul 9, 2018

Changed work issues from is the patchbot happy? to is the patchbot happy ⇒ positive review

@saraedum
Copy link
Member Author

saraedum commented Jul 9, 2018

comment:6

Great. Let's wait for the patchbot to actually pass as I have not run doctests for this myself.

@sagetrac-tmonteil
Copy link
Mannequin

sagetrac-tmonteil mannequin commented Jul 17, 2018

comment:7

#25503 does this already, and should ease downstream packaging (still needs review).

Replying to @embray:
[...]

I don't know why this would be a problem on some platforms but not others.

To what i understand, this is not a platform issue, but a version issue: our interface does not work with readline 7.

@saraedum
Copy link
Member Author

Changed work issues from is the patchbot happy ⇒ positive review to none

@vbraun
Copy link
Member

vbraun commented Aug 17, 2018

Changed branch from u/saraedum/25806 to 9e6ea7e

@saraedum
Copy link
Member Author

comment:10

I might have misunderstood what the milestone stands for but I thought it would be the release of Sage that includes this. So, this is not in 8.3 yet but will only be in 8.4.

@saraedum
Copy link
Member Author

Changed commit from 9e6ea7e to none

@saraedum saraedum removed this from the sage-8.3 milestone Oct 14, 2018
@saraedum saraedum added this to the sage-8.4 milestone Oct 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants