this in a part-owned action resolves to the action performance instead of the owning part
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Start with the minimal model in bug.sysml and reproduce the issue using %load, %instantiate p, and %features p.a. Trace how this is resolved for the owned action a, using the quoted SysML rules as the expected behavior. Done means ctx resolves to owning part p and the type-mismatch error no longer occurs.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Model and observed behaviour
Minimal model (`bug.sysml`), on sysml v0.9.0 (Windows):
// Written in file: bug.sysml
action def A {
ref part ctx : P;
}
part def P {
action a : A {
:>> ctx = this;
}
}
part p : P;
Command:
sysml> %load bug.sysml
sysml> %instantiate p
sysml> %features p.a
Output:
Instance: p.a (ID: 2)
Features:
ctx: <error: feature value a.ctx: type mismatch: cannot write instance(2) (instance) to a feature typed by P>
`instance(2)` is the performance of action `a` itself (i.e. `p.a`), not `p`. So
`a.this` resolved to the action, and `:>> ctx = this` tried to write the action into a
`P`-typed feature.
What the specification requires
a is an ownedAction of part p, so a.this must be p; :>> ctx = this should
set ctx to p, with no error.
OMG SysML v2.0 (formal/2026-03-02), Part 1, §9.2.4.2.1 (Part):
"The
thisreference of aownedActionis always its owning Part."
Same document, §8.4.13.2 (Action Usages — "Semantics of this"):
"... the value of
thisis the top-level Action in the hierarchy ..., unless that
top-level Action is itself one of the ownedActions of a Part (or one of the
ownedPerformances of an Item), in which case the value is that Part (or Item)."
Kind of gap
Valid model is rejected (false positive)
Reference implementation
No response
Version
sysml v0.9.0 Commit: ee54ea03ea3ca8fb2c796ecda364adf748c40304 Build time: 2026-09-25_01:12:11 Go version: go1.25.0
- Ngôn ngữ chính
- Go
- Star
- 24
- Fork
- 5
- Merge trung bình
- 10 giờ 11 phút
- Pull request đã merge (30 ngày)
- 572
Chuẩn bị môi trường
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 Open-MBEE/OpenSysML
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
Open-MBEE/OpenSysML#608 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Open-MBEE/OpenSysML
Issue tương tự
-
automation models
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
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 72/100
txn2/mcp-data-platform#1984 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agentic-workflows
Độ 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
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Fix broken Code of Conduct linksĐang mởkind/docs prio/P2
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
agent-substrate/substrate#1986 ·
Maintainer thường phản hồi trong vòng 1 ngày