Convert: export a model of several documents with references across them resolved
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
Read export.go and SoleDocument, then trace how ParseSources supplies model_hash to the service's Convert and how -convert selects documents. Reproduce the two-file example with sysml -validate and the current api-json conversion. Done means selected documents can be converted with cross-document references resolved without exporting every parsed library element.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
On develop (72081f8), -convert takes one file, and the service's Convert refuses a model_hash of several documents (export.go, SoleDocument). A document converted on its own writes a reference into another file as an unresolved name. Both files validate cleanly together in sysml -validate and in SysIDE 0.10.3:
// lib.sysml
package Lib { part def Engine; }
// app.sysml
package App { private import Lib::*; part e : Engine; }
sysml -convert api-json app.sysml gives the typing of e as "type": {"@ref": "Engine"}, where Lib::Engine is meant. sysml -convert api-json app.sysml lib.sysml stops with "-convert converts one file".
Request: convert the documents of a multi-document model (a model_hash from ParseSources, or several files), resolving references across them. Ideally the caller can name which documents to write, so a library parsed alongside isn't exported with every project.
Concatenating everything into one file works around it, but the output then includes every library element, and each element loses the file it came from.
- Ngôn ngữ chính
- Go
- Star
- 24
- Fork
- 5
- Merge trung bình
- 10 giờ 7 phút
- Pull request đã merge (30 ngày)
- 536
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ó 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ó 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ó 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
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
Open-MBEE/OpenSysML#608 · 1 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ự
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
open-telemetry/opentelemetry-go-compile-instrumentation#1417 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
agent-research-finding agent-research-recommend chore ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
jordansmall/spindrift#4068 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Type/Task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
OpenNSW/nsw-srilanka#537 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
security
Độ khó 2/5 1-2 ngày Mức phù hợp với người mới 62/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày