Skip to content
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

Dealing with (and debugging) package installation errors #66

Closed
fingolfin opened this issue Mar 2, 2021 · 3 comments
Closed

Dealing with (and debugging) package installation errors #66

fingolfin opened this issue Mar 2, 2021 · 3 comments
Labels
feature request New feature

Comments

@fingolfin
Copy link
Member

Unfortunately it seems difficult to debug issues when installing a package using PackageManager fails, esp. packages that have compiled code. The reason for that is that the failed package is deleted, and with it all debug logs etc. For example, from gap-packages/NormalizInterface#96:

...
#I Running compilation script on /home/i/.julia/gaproot/v4.11/pkg/NormalizInterface-1.2.0 ...
#I Package availability test failed
#I (for NormalizInterface 1.2.0)
#I Removed directory /home/i/.julia/gaproot/v4.11/pkg/NormalizInterface-1.2.0

So... it seems it even compiled, but then failed to load. Replicating the problem can be difficult; in this case, I believe the package actually compiled correctly, but then there was an issue caused by the setting of the GAPROOTs. But I am not 100% sure, and since manually building the package worked, I have a hard time reproducing it.

So it would be nice if there was some facilities to help with that. E.g. an option to tell the PackageManager to not delete the package that was just compiled. Perhaps also some other things could be done, I am happy to discuss.

@fingolfin
Copy link
Member Author

Perhaps there could be an option debug := true (say: InstallPackage("blah" : debug) which disables deletion of logs and incomplete packages. That shouldn't be too hard?

@fingolfin
Copy link
Member Author

See #119 for a first draft on this

@mtorpey
Copy link
Collaborator

mtorpey commented Aug 30, 2024

I've renamed the option to keepDirectory, and I've included it in doc and tests. Thanks!

@mtorpey mtorpey closed this as completed Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature
Projects
None yet
Development

No branches or pull requests

2 participants