Tests fail on Julia 1.13: keyword-only anonymous function in test/problems/goddard.jl
Maintainer thường phản hồi trong vòng 1 ngày
@ocots đang làm issue này rồi.
Từ ngày 19/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
The tests fail on Julia 1.13 with a syntax error in test/problems/goddard.jl, line 82:
return function (; hamiltonian_type::Symbol=:total)
LoadError: syntax: invalid assignment location "hamiltonian_type::Symbol = :total" around test/problems/goddard.jl:82
An anonymous function whose arguments are keywords only is rejected by the 1.13 parser. The error hits every test file that includes the Goddard problem: suite/builders/test_options_forwarding.jl, suite/indirect/test_shooting_sweep.jl, suite/problems/test_forms_equivalent.jl, suite/problems/test_hamiltonian_type.jl.
Seen in the CI of main (the 1.13 jobs fail, 1.10 passes) and in the breakage suite of CTBase, on main and on v2.2.1-beta: https://github.com/control-toolbox/CTBase.jl/actions/runs/39232998112. Since version: 1 now resolves to 1.13, every job on 1 fails too.
Fix: give the closure a name, which the parser accepts on every version, e.g.
shoot(; hamiltonian_type::Symbol=:total) = begin ... end
return shoot
or the arrow form (; hamiltonian_type::Symbol=:total) -> .... Worth a search for the same pattern elsewhere in test/ and src/.
🤖 Generated with Claude Code
- Ngôn ngữ chính
- Julia
- Star
- 135
- Fork
- 11
- Merge trung bình
- 7 giờ 51 phút
- Pull request đã merge (30 ngày)
- 22
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của control-toolbox/OptimalControl.jl
-
[Doc] User guide to the duals: every kind, constraint ↔ dual, direct ↔ indirectCó thể đã có người làm @ocots đã nhận 6 ngày trước. Đang mở
control-toolbox/OptimalControl.jl#1035 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Tests of the duals: every kind of constraint, direct vs indirect, pinned algorithmsCó thể đã có người làm @ocots đã nhận 6 ngày trước. Đang mở
control-toolbox/OptimalControl.jl#1034 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Doc] Examples for the sign convention of duals and costate (min/max, writing of constraints, direct vs indirect)Có thể đã có người làm @ocots đã nhận 15 ngày trước. Đang mở
control-toolbox/OptimalControl.jl#1016 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Documentation: sign conventions (min/max, p⁰, constraints, duals) and how they appear in a solutionCó thể đã có người làm @ocots đã nhận 17 ngày trước. Đang mởdocumentation
control-toolbox/OptimalControl.jl#1015 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Docs: use Makie.Figure() instead of Makie.plot() for an empty canvasCó thể đã có người làm @ocots đã nhận 20 ngày trước. Đang mở
control-toolbox/OptimalControl.jl#994 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của control-toolbox/OptimalControl.jl
Issue tương tự
-
lux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
JuliaGraphs/GraphNeuralNetworks.jl#732 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
erfinv(::Float16) and erfcinv(::Float16) are wrong for abs(x) <= 0.75 (erfinv(Float16(0)) == 0.2201)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
JuliaMath/SpecialFunctions.jl#571 ·
-
Add project: Typst_jll.jlCó thể đã có người làm @github-actions đã nhận 1 ngày trước. Đang mởadd-project
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
YDX-2147483647/best-of-typst#590 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100