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
GAP interface doesn't handle input with multiple lines correctly #11000
Comments
Attachment: trac_11000.patch.gz |
comment:1
The reason they didn't send it all at once seems to be that the interface doesn't properly handle continuation prompts (it deletes enough characters for the whole prompt). Sending all on one line avoids them... except of course when it doesn't. In particular something like
in the notebook will cause all sorts of unhappiness (3 characters cut off the end of the output) until a cell like
is evaluated. Hopefully this should be fixed now. We probably shouldn't worry too much about the above case since a similar cell with
will simply cause everything to stop being evaluated until a closing cell is evaluated. I don't see a way around this, and it should probably be considered user error. |
comment:2
I'm getting doctest errors in, I think, four files, but I stupidly didn't log them. Confirming... (does this patch depend on any other patches? I'm running it on 4.7.alpha3) |
comment:3
... OK, I ran the test again.
The startup.py failure is not important, and the maxima failure seems to remain even when I unapply your patch and rebuild, so I have no idea what's going on with that. |
comment:4
This passes all tests for me, plus the two modules Kini mentioned above. Parallel testing on 4.7.alpha1, 64-bit Ubuntu. |
Reviewer: Rob Beezer, Keshav Kini |
comment:5
OK, looks all clear to me. Works as advertised, tested manually in the console too. Positive review. I guess the maxima thing is just something weird about alpha2 or alpha3, maybe specific to sage.math.washington.edu, since you guys are using alpha1. |
Changed author from iandrus to Ivan Andrus |
Merged: sage-4.7.alpha4 |
The following GAP input (say in the notebook)
gets changed to
before sending to GAP. Obviously this fails since
thenPrint
should be two words.It also doesn't strip comments correctly as can be seen by
which returns nothing.
Component: interfaces
Keywords: gap
Author: Ivan Andrus
Reviewer: Rob Beezer, Keshav Kini
Merged: sage-4.7.alpha4
Issue created by migration from https://trac.sagemath.org/ticket/11000
The text was updated successfully, but these errors were encountered: