Closed
Description
First my apologies that the example is so big but I have no idea of how to shorten things without many man-hours of work.
I installed Julia from the julialang.org site.
julia> versioninfo()
Julia Version 1.10.5
Commit 6f3fdf7b362 (2024-08-27 14:19 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: macOS (arm64-apple-darwin22.4.0)
CPU: 8 × Apple M1
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, apple-m1)
Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores)
Environment:
DYLD_FALLBACK_LIBRARY_PATH = /Users/dcs16/Bmad/gtpsa
LD_LIBRARY_PATH = /Users/dcs16/bmad/bmad_dist/production/lib:/Users/dcs16/bmad/bmad_dist/debug/lib:/Users/dcs16/MadQt/mad_root/usr/local/lib::/Users/dcs16/Bmad/gtpsa
To setup the bug do:
- pkg> dev https://github.com/bmad-sim/AcceleratorLattice.jl # In Julia's package maneger
- > cd ~/.julia/dev/AcceleratorLattice/ # Do this In the Shell
- > git checkout --track origin/julia_bug/01 # And switch to the branch with the bug
Now in Julia do:
julia> using AcceleratorLattice
Precompiling AcceleratorLattice
1 dependency successfully precompiled in 4 seconds. 28 already precompiled.
julia> @ele qf = Quadrupole(L = 0.6, alias = "z1");
And the error output (which is long) is in the attached file. Note: The bug goes away if line 52 in file src/parameters.jl
ELE_PARAM_INFO_DICT::Dict{Symbol,ParamInfo} = Dict(
is replaced with
ELE_PARAM_INFO_DICT = Dict(
Metadata
Metadata
Assignees
Labels
No labels