JuliaArrays / JuliaArrays/StaticArrays.jl
precompilation failure of 1.6.5 in 1.10 - require_one_based_indexing
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 844
- Forks
- 159
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 3
Description
Apparently this should not error, because StaticArrays is set to be compatible with Juila 1.6, but this is causing issues in CI Downgrade tests:
% julia +1.10 --startup-file=no
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.10.10 (2025-06-27)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
(@v1.10) pkg> activate --temp
Activating new project at `/tmp/jl_u3IyTC`
(jl_u3IyTC) pkg> add StaticArrays@1.6.5
Resolving package versions...
Installed StaticArrays ─ v1.6.5
Updating `/tmp/jl_u3IyTC/Project.toml`
⌃ [90137ffa] + StaticArrays v1.6.5
Updating `/tmp/jl_u3IyTC/Manifest.toml`
⌃ [90137ffa] + StaticArrays v1.6.5
[1e83bf80] + StaticArraysCore v1.4.4
[56f22d72] + Artifacts
[8f399da3] + Libdl
[37e2e46d] + LinearAlgebra
[9a3f8284] + Random
[ea8e919c] + SHA v0.7.0
[e66e0078] + CompilerSupportLibraries_jll v1.1.1+0
[4536629a] + OpenBLAS_jll v0.3.23+4
[8e850b90] + libblastrampoline_jll v5.11.0+0
Info Packages marked with ⌃ have new versions available and may be upgradable.
✗ StaticArrays
Precompiling packages finished.
1 dependency successfully precompiled in 2 seconds
1 dependency errored.
For a report of the errors see `julia> err`. To retry use `pkg> precompile`
julia> err
PkgPrecompileError: The following 1 direct dependency failed to precompile:
StaticArrays
Failed to precompile StaticArrays [90137ffa-7385-5640-81b9-e52037218182] to "/home/leandro/.julia/compiled/v1.10/StaticArrays/jl_1zjuS7".
ERROR: LoadError: UndefVarError: `require_one_based_indexing` not defined
Stacktrace:
[1] include
@ ./Base.jl:495 [inlined]
[2] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
@ Base ./loading.jl:2292
[3] top-level scope
@ stdin:4
in expression starting at /home/leandro/.julia/packages/StaticArrays/cZ1ET/src/StaticArrays.jl:1
in expression starting at stdin:
julia>
``
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with Julia 1.10 and StaticArrays 1.6.5 using the package-manager commands in the report. Start at src/StaticArrays.jl:1, where loading fails on require_one_based_indexing, then run the downgrade CI tests. Done means StaticArrays 1.6.5 precompiles successfully on Julia 1.10 without breaking the stated Julia 1.6 compatibility.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- build-system, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100