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
Fix math-readline script #18908
Comments
Commit: |
Branch: public/18908 |
comment:2
moving the discussion from the closed #16703 here. |
comment:3
Works for me, though I don't have mathematica either. Can someone who has it run the optional mathematica doctests with it? Nathann |
comment:4
Replying to @nathanncohen:
works for me with Mathematica 9, I don't seem to have Mathematica 10 though. |
comment:5
I'll try to fix doctests for Mathematica 9 then... |
comment:6
They may get pretty annoying when #18904 will be merged |
comment:7
basically a lot of output is texified, or semi-texified, for a reason I don't get. Typically I see things like
Now, the hard question: where does one have the place to describe the (pseudo)package type, |
comment:9
I have mathematica 10.1 but the machine is currently out of service. It should be back, hopefully, late next week; I can run the doctest then. |
comment:11
I have
To make sure that the new code was really tested after the make start, I added some print:
did make start, run sage, but then, I still get
So is the new code really run? Is it okay if the print are not shown? |
comment:12
Perhaps you should run 'make' in Sage's ROOT folder before trying it again. This could copy the updated |
comment:13
I do see this line at the end of make start :
|
comment:14
Replying to @seblabbe:
I think it is, you should not get the output of math-readline within sage. It should be stripped as it is stripped the header
|
comment:15
Ok, so then, positive review! |
Reviewer: Nathann Cohen, Sébastien Labbé, Salvatore Stella |
Author: Dima Pasechnik |
comment:16
Wait, is there a way to doctest this fix?
|
comment:17
No, though others have asked (Dima in particular). You should not change the status of a ticket in |
comment:24
I am setting it back to positive review. Please feel free to submit a proper error report, not "wrong fix" bullsh*t, and then change the ticket status accordingly. |
comment:25
If I understand correctly what is being said by jdemeyer the problem is this:
which is quite ugly. |
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:
|
Changed author from Dima Pasechnik to Dima Pasechnik, Jeroen Demeyer |
comment:28
Sometimes it is easier to just write a patch and explain later rather than the other way around. And unfortunately there is no ticket status for "hang on, I'm working on a patch". The real problem with the script was that, when the |
comment:29
I also made a few more fixes to the script:
|
Changed author from Dima Pasechnik, Jeroen Demeyer to Jeroen Demeyer |
comment:32
Replying to @jdemeyer:
FYI, I found this comment very annoying. Unless you want to alienate people, always say in such cases instead "I would like to improve this". |
comment:33
Replying to @dimpase:
OK, point taken. What about "This is really not the correct fix, I'm having a look at how to improve it". |
comment:34
Replying to @jdemeyer:
s/correct/complete would do; indeed, saying that something is incorrect/wrong without giving an explanation could create a tension you don't need. |
comment:35
Replying to @dimpase:
But it was really incorrect: the fact that the script hangs when But at the time when I send that message, I didn't have a clear explanation of the real problem: I knew that the proposed solution was wrong, but I couldn't yet say what the right fix would be. Like I said: it's often easier to explain after you have a working patch. And I had to act quickly because, these days, tickets which have positive_review are often closed very soon. |
comment:36
The script hanged without |
comment:37
Replying to @dimpase:
I completely disagree with this. An improvement which hides a bug is incorrect. |
comment:38
lgtm |
Changed reviewer from Nathann Cohen, Sébastien Labbé, Salvatore Stella to Nathann Cohen, Sébastien Labbé, Salvatore Stella, Dima Pasechnik |
comment:39
Replying to @jdemeyer:
except that this one did not hide a bug, at least not any more than the original scrip did. Anyhow, this is not the point; the point is that you should not brand anything at all "wrong", "incorrect" without a justification. (Unless you out to annoy people, and I hope that this is not the case). |
Changed branch from public/18908 to |
hangs indefinitely if
Mathematica
is not installed.The reason is that internally the script
$SAGE_LOCAL/bin/math-readline
is called byExpect()
, and the latter hangs. This script should check whether themath
command has finished: currently themath-readline
script keeps running even after the subprocess has exited.CC: @nathanncohen @Etn40ff @NathanDunfield @seblabbe
Component: scripts
Author: Jeroen Demeyer
Branch/Commit:
a3c75ab
Reviewer: Nathann Cohen, Sébastien Labbé, Salvatore Stella, Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/18908
The text was updated successfully, but these errors were encountered: