-
Notifications
You must be signed in to change notification settings - Fork 120
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
"Error" when loading Oscar without internet connection #1364
Comments
The critical code line is probably The idea is to install the GAP package in question if necessary and then to load it. If the package is already installed then the error should disappear, perhaps this is the reason why this problem was not observed earlier. I would argue that such installations should not be expected at runtime, because one may be offline. |
We will take care of it. |
Most of the `Error` (actually `ErrorNoReturn`) calls in the code of PackageManager belong to argument checks. These are fine from the viewpoint of programmatic access to PackageManager's functions. The only exceptions are two places in `GetPackageURLs`, which are reached if either `PKGMAN_DownloadURL` fails or the downloaded file is corrupted. These error are problematic for example when Julia code wants to use PackageManager to install GAP packages at runtime, see oscar-system/Oscar.jl/issues/1364. The proposed changes replace the `ErrorNoReturn` calls by returning the result record with a new component `success` that is set to `false`. In the three situations where `GetPackageURLs` is called, this component gets evaluated. As far as I see, the documentation need not be changed. First of all, the function `GetPackageURLs` is undocumented. The three functions that call it (`InstallPackageFromName`, `PKGMAN_InstallDependencies`, `UpdatePackage`) do anyhow return results that indicate failures, and they do not promise error messages if one is offline. In order to inform the user about the reason for the failures, now info messages are printed by `GetPackageURLs` (Would there be any way to *test* the offline behaviour of PackageManager?)
Should be fixed now with the latest GAP.jl |
Describe the bug
Whenever I do
using Oscar
without internet connection, I get an error from GAP:Then I have to do
using Oscar
again to be able to use Oscar.To Reproduce
Turn of internet (or get on a train 😄) and do
using Oscar
.Expected behavior
Oscar loads without error.
System (please complete the following information):
The text was updated successfully, but these errors were encountered: