JET: similar_type(::Any) no-matching-method in RecursiveArrayToolsRaggedArrays (pre-existing QA red)
还没有人认领这个 Issue。
评估
调研方向
从 lib/RecursiveArrayToolsRaggedArrays/src/RecursiveArrayToolsRaggedArrays.jl 的第 1335、1347 和 1468 行附近开始,然后检查 AbstractRaggedVectorOfArray 的 .u 字段及其 copyto!/fill 路径。运行 RecursiveArrayToolsRaggedArrays JET QA 检查,以复现 similar_type(::Any) 报告。当这些 JET 发现不再出现在该 lane 中时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
The RecursiveArrayToolsRaggedArrays QA lane fails JET.test_package(...; target_defined_modules = true) with three similar_type(::Any) reports:
no matching method found `similar_type(::Any)`:
StaticArraysCore.similar_type(((dest::RecursiveArrayTools.AbstractRaggedVectorOfArray).u::Any)[i::Any]::Any)
These originate from the copyto!/fill paths in lib/RecursiveArrayToolsRaggedArrays/src/RecursiveArrayToolsRaggedArrays.jl (lines ~1335, 1347, 1468): JET infers dest.u[i] / VA.u[i] as ::Any because the abstract AbstractRaggedVectorOfArray .u field is untyped, so StaticArraysCore.similar_type(::Any) has no matching method.
This is pre-existing on master (verified: a clean origin/master checkout of the RaggedArrays QA group reports 10 passed, 2 failed — the Piracy false-positive plus this JET finding — before any QA-harness conversion). It is not introduced by the run_qa v1.6 conversion (https://github.com/SciML/RecursiveArrayTools.jl/pull/621). The conversion keeps the JET check as a hard test (behavior-preserving), so this lane remains red until the inference issue is addressed (e.g. tightening the .u field type or guarding the immutable-similar_type branch).
- 主要语言
- Julia
- 星标
- 233
- 派生
- 76
- 平均合并
- 2 小时 17 分钟
- 30 天内合并 PR
- 9
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
SciML/RecursiveArrayTools.jl 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 68/100
SciML/RecursiveArrayTools.jl#255 ·
-
难度 4/5 3-5 天 新手友好度 45/100
SciML/RecursiveArrayTools.jl#619 ·
-
bug
难度 4/5 3-5 天 新手友好度 45/100
SciML/RecursiveArrayTools.jl#570 ·
-
难度 4/5 3-5 天 新手友好度 28/100
SciML/RecursiveArrayTools.jl#522 ·
-
tagbot-manual
难度 1/5 1 小时以内 新手友好度 45/100
SciML/RecursiveArrayTools.jl#512 ·
查看 SciML/RecursiveArrayTools.jl 的全部 Issue
相似的 Issue
-
bug 🐞 distributed 🕸️
难度 2/5 1-3 小时 新手友好度 82/100
CliMA/Oceananigans.jl#6049 ·
-
难度 2/5 1-3 小时 新手友好度 74/100
-
难度 1/5 1 小时以内 新手友好度 88/100
-
难度 1/5 1-3 小时 新手友好度 88/100
JuliaGPU/GPUArrays.jl#780 ·
-
难度 2/5 半天 新手友好度 76/100
epiforecasts/EpiBranch.jl#304 ·