-
Notifications
You must be signed in to change notification settings - Fork 164
Use GenericCharacterTables 0.7.1 for book tests #5448
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
Conversation
|
Hmm, something seems broken: julia> T = generic_character_table(\"SL3.n1\")
- Generic character table SL3.n1
- of order q^8 - q^6 - q^5 + q^3
- with 8 irreducible character types
- with 8 class types
- with parameters (a, b, m, n)
+ ERROR: LoadError: UndefVarError: `GenericCharacterTables` not defined
+ Stacktrace:
+ [1] include
+ @ ./Base.jl:495 [inlined]
+ [2] include(x::String)
+ @ Main.__anon__ ./loading.jl:2246
+ [3] top-level scope
+ @ none:1
+ [4] eval
+ @ ./boot.jl:385 [inlined]
+ [5] evalfile(path::String, args::Vector{String})
+ @ Base ./loading.jl:2242
+ [6] evalfile
+ @ ./loading.jl:2242 [inlined]
+ [7] loadtab
+ @ ~/.julia/packages/GenericCharacterTables/TSdgn/src/CharTable.jl:25 [inlined]
+ [8] gentab(table::String, tabletype::String)
+ @ GenericCharacterTables ~/.julia/packages/GenericCharacterTables/TSdgn/src/CharTable.jl:50
+ [9] generic_character_table(x::String)
+ @ GenericCharacterTables ~/.julia/packages/GenericCharacterTables/TSdgn/src/CharTable.jl:83
+ [10] top-level scope
+ @ REPL[153]:1
+ in expression starting at /home/runner/.julia/packages/GenericCharacterTables/TSdgn/data/Tables/A2/SL3.n1.jl:1@benlorenz this looks like it could be an issue with the book test setup, any idea what's going wrong? |
|
I think the setup is fine, it does find the package, but loading some data seems to fail: And the slug in the path is indeed correct: |
|
I'm not sure what's going on. Is this my fault? Locally it's no porblem to load |
|
I think the new (@v1.12) pkg> activate --temp
Activating new project at `/tmp/jl_Kl96qM`
(jl_Kl96qM) pkg> add GenericCharacterTables
<....>
julia> module Dummy
using GenericCharacterTables
function bla()
T = generic_character_table("SL3.n1")
return T
end
end
Main.Dummy
julia> using .Dummy
julia> Dummy.bla()
ERROR: LoadError: UndefVarError: `GenericCharacterTables` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Hint: GenericCharacterTables is loaded but not imported in the active module Main.
Stacktrace:
[1] include(mapexpr::Function, mod::Module, _path::String)
@ Base ./Base.jl:307
[2] top-level scope
@ none:1
[3] eval(m::Module, e::Any)
@ Core ./boot.jl:489
[4] evalfile(path::String, args::Vector{String})
@ Base ./loading.jl:2940
[5] evalfile
@ ./loading.jl:2939 [inlined]
[6] loadtab
@ ~/.julia/packages/GenericCharacterTables/TSdgn/src/CharTable.jl:25 [inlined]
[7] gentab(table::String, tabletype::String)
@ GenericCharacterTables ~/.julia/packages/GenericCharacterTables/TSdgn/src/CharTable.jl:50
[8] generic_character_table
@ ~/.julia/packages/GenericCharacterTables/TSdgn/src/CharTable.jl:83 [inlined]
[9] bla()
@ Main.Dummy ./REPL[3]:5
[10] top-level scope
@ REPL[5]:1
in expression starting at /home/lorenz/.julia/packages/GenericCharacterTables/TSdgn/data/Tables/A2/SL3.n1.jl:1Once I run The booktests are run in a separate module to separate them from each other. |
|
I think I have a fix for this. Let me double-check that it indeed works, and then I'll open a PR at GCT. |
To make the book tests compatible with Nemocas/AbstractAlgebra.jl#2182 we need use GenericCharacterTables 0.7.0.