change the handling of IncludeJuliaStartupFile
(for Julia 1.10)
#1017
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The JuliaInterface package introduces a GAP user preference
IncludeJuliaStartupFile
that is intended to force loading Julia's startup file in the situation that GAP gets started from Julia via a gap.sh script.The file
pkg/JuliaInterface/init.g
contains code that evaluates this user preferences and if necessary loads this file into the Julia session.All this should be irrelevant if one first starts Julia and then loads GAP, because then the Julia startup file has been read already, but this is not true:
If one calls
using Oscar
in a fresh Julia session and ifOscar.jl
has to get precompiled then the precompilation takes place in a Julia that has not read its startup file.In Julia before 1.10, then JuliaInterface simply includes this startup file. In Julia 1.10, including this file fails (and then one gets a crash).
The current proposal is not yet good enough.
An info message is printed during precompilation, saying that the startup file could not be included. We can simply omit this message. However, I fear that the above analysis is not yet good enough, so perhaps we need another change.