Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

クローズ
#653 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go
領域
api, backend, cli

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Go
スター
24
フォーク
5
平均マージ
10時間 11分
マージ済み PR(30日)
572

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Open-MBEE/OpenSysML のほかの issue

Open-MBEE/OpenSysML の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。