-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
singular.version() has no doctest #5994
Comments
comment:1
Remark: Apparently the problem is on the side of Singular. In Singular, freshly started, when you do
there is the error (it says "? cannot open If people think that my suggestion would break code, I suggest to have a new method |
comment:2
Replying to @simon-king-jena:
And meanwhile it is reported upstream. I do not know, however, if the problem still occurs with Singular 3-1-0 (I only have a beta version, and this still shows the error). |
comment:3
Replying to @simon-king-jena:
"Upstream" answered, and it seems that the problem is fixed in the official release. I could verify that on the server in Oberwolfach, the error does not occur in Singular 3-1-0, but it does occur in Oberwolfach in Singular 3-0-4 (as being part of Sage). Opinions? But there still remains the question if |
comment:4
Replying to @simon-king-jena:
We can probably wait until after Sage Days 15 for this?
My personal preference would be for it to return a tuple of integers, but we could give it an optional argument |
comment:5
Replying to @simon-king-jena:
The "Opinions?" bit should be two lines lower. Sorry. It turned out that the error occurs in any Sage-built Singular version that I know: Singular 3-0-4 on sage.math, on two of my computers, in Oberwolfach, and Singular 3-1-0-Beta on sage.math and on one of my computers. If Singular is not built by Sage, then the error apparently does not occur: With Singular 3-0-3 (very old) on one of my machines, Singular-3-1-0-Beta on my machine (same sources, modulo the usual patches, as the sage-built version!), and Singular-3-1-0 official release in Oberwolfach. So, after all, it seems to me that it is all Sage's fault.
Here is where I want to know some "Opinions"... |
comment:6
The attached patch fixes the output format for version to be more consistent with the other interfaces, e.g., |
comment:7
Attachment: trac_5994.patch.gz Replying to @williamstein:
Note that I originally thought that the issue with help files is a problem of Singular, and clearly a bug: I mean, you ask for the version number and get an error; you ask again, and it works! It had reported it upstream. But then the impression came across (see my last post) that it only occurs in Singular if it is built by Sage. In this case, it could be a problem with the patched version in Sage, which might be worth another ticket. Cheers, |
comment:8
I think the first time you ask for the version, singular fires up its help system, and reports a bug about it not being properly configured by us for such use. Then it doesn't report that again, since it already did. I think it is very sensible behavior by Singular. So can you review this? |
comment:9
For the record, adding an empty |
comment:10
Replying to @williamstein:
I'd like to, but the sage-4.3.1.alpha1 that I had built on sage-math seems broken. It used to work, but when I did
Might Anyway, I'd like to see one more doc test, that checks consistency with another way of getting the version number -- just for consistency:
|
comment:11
Replying to @simon-king-jena:
Oops, apparently I forgot a closing bracket on the left hand side. Anyway, you know what this prospective doc-test is supposed to do... |
comment:12
Replying to @simon-king-jena:
It did not work. I fear that I have to start from scratch, so that it will take some hours before I will be able to review the patch. |
comment:13
OK, meanwhile I built sage-4.3.1.rc1 The patch applies cleanly. However, I don't like the doc tests, and I think the return value is wrong. The tests check that the first version number is 3. OK, it will eventually change, but not in the near future. Then they test that the version number is of length 3. Can we rely on it? There used to be two-digit versions. In fact, the "official" version number seems to be four digits, not three:
Hence, the first return value of singular.version() should be (3,1,0,4) not (3,1,0). So, my questions are:
|
comment:14
Replying to @simon-king-jena:
Is there an answer, yet? |
comment:15
-- bump -- First question: Do we want that Second question: Do we want that (at least by default) it returns a tuple of three or four numbers (three- resp four-digit vesion numbers), or do people like that the output of |
comment:16
It shouldn't hurt to install the |
Changed keywords from singular version to singular version help.cnf |
Author: William Stein |
comment:17
Since he reported this again on a duplicate, #11519. |
comment:43
Upstream says that help.cnf should indeed be put into the same folder as all the other library files, i.e., local/share/singular/. |
Changed upstream from Reported upstream. No feedback yet. to Reported upstream. Developers deny it's a bug. |
comment:44
Replying to @simon-king-jena:
I don't really care much.
Probably you once extracted the tarball in |
comment:45
Replying to @jdemeyer:
Then I guess we should do it in spkg-install.
Could be. I just deleted it and did "sage -f singular". |
comment:46
There's also |
comment:47
Replying to @nexttime:
Meaning what? |
comment:48
Replying to @simon-king-jena:
Overfull inbox, TeX would have said. ;-) |
comment:49
It seems the current agreement seems to be to modify spkg-install, so that it copies help.cnf from the singular sources to |
comment:50
Replying to @simon-king-jena:
It's the current working directory. |
Changed branch from u/SimonKing/singular_version_yielding_error to u/jmantysalo/singular_version_yielding_error |
comment:52
Error has gone away with Singular 4. I added doctest. What goes to output format, I think this should be changed in all New commits:
|
Changed author from William Stein, Simon King to Jori Mäntysalo |
This comment has been minimized.
This comment has been minimized.
Changed upstream from Reported upstream. Developers deny it's a bug. to Completely fixed; Fix reported upstream |
This comment has been minimized.
This comment has been minimized.
Reviewer: Jeroen Demeyer |
Changed branch from u/jmantysalo/singular_version_yielding_error to |
Neither
singular.version
norsingular_version
have doc tests.Upstream: Completely fixed; Fix reported upstream
CC: @kedlaya
Component: interfaces
Keywords: singular version help.cnf
Author: Jori Mäntysalo
Branch/Commit:
87c73ac
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/5994
The text was updated successfully, but these errors were encountered: