GetElementProperties answers nothing for a model when one document has an error or a duplicate top-level name
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- go
调研方向
Start by tracing the GetElementProperties entry point and how it builds the element form for a model containing multiple documents. Reproduce the reported behavior with the Pilot examples, including one document with an error or a duplicate top-level name. The issue is resolved when elements from unaffected documents remain readable while the problematic document is handled with an error or excluded from the element form.
由索引模型根据 Issue 内容生成。
描述
When the Pilot's examples are parsed as one model (195 files), GetElementProperties answers no element of the model if any one document:
- has an error diagnostic, for example
Dynamics.sysml("cannot bind a value of dimension L^4·M^2·T^-5 to a feature typed by AccelerationValue"), or - declares a top-level name that another document also declares. The Pilot's training material has four such pairs, e.g.
training/17. Control/Camera.sysmlandexamples/Camera Example/Camera.sysml.
The answer for every element is then the same message, for example:
cannot convert the declaration of Camera at …/training/17. Control/Camera.sysml:1:1: its id lands on the same IRI as Camera at …/examples/Camera Example/Camera.sysml:1:1, which another document declares, and merging two elements into one subject would be a different model
The reason given for the duplicate case makes sense. What makes it hard to use is the scope: one document affects the whole model. For a workspace of many files (an editor, a CI check over a repository), being able to read the elements of the other documents would help a lot. That could mean keeping the affected document out of the element form, or answering its elements with the error while the rest stay readable.
For reference, these documents are the ones OpenSysML reports errors in. The Pilot reports no error for any of them:
examples/Analysis Examples/Dynamics.sysml: the dimension check aboveexamples/Simple Tests/PartTest.sysml: "p1 participates in a specialization cycle"- both Annex A vehicle files:
vehicle_bis hidden by two imports that bring distinct elements of that name - our
C30-accept.sysml: a syntax error onentry … then …
Each of these may be worth a look on its own. We're happy to open separate issues if that's more convenient.
Found while building the census in #2028. In the census, such documents are left out for OpenSysML and listed under "Corpora".
- 主要语言
- Go
- 星标
- 56
- 派生
- 17
- 平均合并
- 12 小时 45 分钟
- 30 天内合并 PR
- 910
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Open-MBEE/OpenSysML 的其他 Issue
-
dependencies
难度 2/5 1-3 小时 新手友好度 65/100
Open-MBEE/OpenSysML#1951 · 3 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 1 天内回复
-
enhancement spec compliance
难度 4/5 3-5 天 新手友好度 55/100
Open-MBEE/OpenSysML#2028 · 3 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
Java client: no member enumeration, no GetElementProperties, no instance paths可能已有人在做 @devin-ai-integration 今天认领。 未关闭enhancement
难度 4/5 3-5 天 新手友好度 42/100
Open-MBEE/OpenSysML#2022 · 2 条评论 ·
维护者通常 1 天内回复
-
Symbol API fields answer differently from GetElementProperties, with no sign that the answer is incomplete可能已有人在做 @devin-ai-integration 今天认领。 未关闭documentation enhancement
难度 4/5 3-5 天 新手友好度 48/100
Open-MBEE/OpenSysML#2021 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
查看 Open-MBEE/OpenSysML 的全部 Issue
相似的 Issue
-
agent-butler-finding chore
难度 1/5 1 小时以内 新手友好度 88/100
jordansmall/spindrift#6695 ·
维护者通常 1 天内回复
-
skills-init: commit-SHA skill refs never start (git checkout -- <sha> reads the SHA as a pathspec)未关闭
难度 1/5 1 小时以内 新手友好度 84/100
kagent-dev/kagent#3571 ·
维护者通常 1 天内回复
-
book-layout.spec fails when the similar-books rail holds other projects' books可能已有人在做 @praetorianer777 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
praetorianer777/GoTome#373 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 80/100
-
/shutdown/ready can fail to return an HTTP response when readiness takes longer than the server write timeout可能已有人在做 @floriankoch 今天认领。 未关闭triage
难度 2/5 1-3 小时 新手友好度 76/100
envoyproxy/gateway#10562 ·
维护者通常 1 天内回复