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
Helpful message if GAP fails to load a package #14483
Comments
comment:2
This patch works for me, applied to sage 5.8:
However, after being prompted to run install_package("gap_packages"), gap_packages-4.5.7 is found. After you updated the spkg was I supposed to find gap_packages-4.6.3 ? |
comment:3
how does this ticket relate to #14039 ? |
This comment has been minimized.
This comment has been minimized.
comment:4
removed http://www.steinertriples.fr/gap-4.6.3.p0.spkg from the ticket description. |
comment:5
Positive review - the patch works on Sage 4.5.9.beta5 just fine. GAP updates should be dealt with elsewhere. |
Reviewer: Dmitrii Pasechnik |
comment:8
Nononono, Nathann |
comment:9
Oops... Nathann |
comment:10
Thaaaaaaanks !
Yepyep. Sorry 'bout that Nathann |
comment:11
Doesn't really matter here, but in general error messages should be kept brief. If you want to show the user some explanation or hints how to get around a potential pitfall you should use warnings so that it is only printed once during the session. |
comment:12
Oh, I see. Thanks Nathann |
comment:13
|
comment:14
I agree with Volker that a long warning is better than a long error message. |
comment:15
Okayyyyyyyyyyyyyyyy.... |
comment:16
What do you think of this ? Honestly I preferred the previous version... A warning just before an exception does not stand out at all ... Nathann |
comment:18
|
comment:19
Fixed ! What do you think of this warning/exception thing, by the way ? Nathann |
comment:20
I'm pretty sure the doctest will fail if you happen to have gap_packages installed (which includes HAP). How about we use |
comment:21
Such a doctest already exists in What do you think of this warning/exception thing ? Nathann |
comment:22
The doctest for the As I said already, helpful explanations should be warnings not errors. The error message should be less than a whole line if possible. Advanced users shouldn't be drowned in paragraphs of text for simple errors. We could make warnings more prominent (say, using colors or bold text), but thats for another ticket. |
comment:23
Then I will probaly remove the doctest. My problem with exceptions and warnings is not so general : in that case, a warning is printed just before the exception is raised, and no one sees the warning as a result. It would make more sense to just raise an exception. I will try to make the error message shorter. Nathann |
comment:24
Attachment: trac_14483.patch.gz What about this ? Nathann |
comment:25
Fine with me. |
Merged: sage-5.10.beta1 |
Very short patch ! I met that problem while trying to run
and I had no idea how to install a gap package in the copy of gap that Sage contains...
Nathann
CC: @dimpase @vbraun @malb
Component: combinatorics
Author: Nathann Cohen
Reviewer: Dmitrii Pasechnik
Merged: sage-5.10.beta1
Issue created by migration from https://trac.sagemath.org/ticket/14483
The text was updated successfully, but these errors were encountered: