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

tell JuliaInterface to load GAPDoc #1009

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

ThomasBreuer
Copy link
Member

When ENV["GAP_BARE_DEPS"] is bound before GAP.jl gets loaded, the JuliaInterface package will be loaded before GAPDoc, and this causes a warning because JuliaInterface needs a variable from GAPDoc.
In order to avoid this, add GAPDoc to the dependencies of JuliaInterface.

When `ENV["GAP_BARE_DEPS"]` is bound before GAP.jl gets loaded,
the JuliaInterface package will be loaded before GAPDoc,
and this causes a warning because JuliaInterface needs a
variable from GAPDoc.
In order to avoid this, add GAPDoc to the dependencies of
JuliaInterface.
Copy link

codecov bot commented Jun 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.82%. Comparing base (167af63) to head (3886394).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1009   +/-   ##
=======================================
  Coverage   75.82%   75.82%           
=======================================
  Files          51       51           
  Lines        4198     4198           
=======================================
  Hits         3183     3183           
  Misses       1015     1015           
Files Coverage Δ
pkg/JuliaInterface/PackageInfo.g 90.26% <100.00%> (+0.08%) ⬆️

... and 1 file with indirect coverage changes

@@ -101,6 +101,7 @@ Dependencies := rec(
GAP := ">= 4.11", # need compatible code in GAP's src/julia_gc.c
NeededOtherPackages := [ ],
SuggestedOtherPackages := [ ],
OtherPackagesLoadedInAdvance := [ [ "GAPDoc", "1.6.6" ] ], # need StripEscapeSequences
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love this, OtherPackagesLoadedInAdvance is obscure and the code using StripEscapeSequences is unclear to me (i.e. why StripEscapeSequences is even needed there is not immediately visible). And to start with, why StripEscapeSequences isn't in the GAP library (which calls it, too! only in the help system, though).

But it's a pragmatic solution for the moment, so let's merge it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The point is that we cannot add GAPDoc to the needed packages of JuliaInterface because JuliaInterface is a needed package of GAP, and GAP does not allow us to silently add needed packages of GAP. (In this sense, the fact that using OtherPackagesLoadedInAdvance is possible at all can be regarded as a bug in GAP.)

Concerning the GAPDoc code in question, I agree that it should better be in the GAP library, but I cannot simply change this.

If I remember well then the idea behind needed packages of GAP was (besides the use case GAPDoc) that one could eventually split off more parts of the GAP library into packages.

@fingolfin fingolfin merged commit 3b497af into oscar-system:master Jun 20, 2024
20 of 22 checks passed
@ThomasBreuer ThomasBreuer deleted the TB_GAP_BARE_DEPS branch June 20, 2024 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants