Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Convert: export a model of several documents with references across them resolved

Đang mở
#653 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
api, backend, cli

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Open-MBEE/OpenSysML

Tất cả issue của Open-MBEE/OpenSysML

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.