Duplicate of imported member when loading Annex A of specification

オープン
#2,033 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go
領域
compilers

調査の方向性

Start by loading the linked Annex A SimpleVehicleModel.sysml file with sysml v0.12.1 and inspect the name-conflict warning at line 501 for the public import. Trace how imported member names are checked when multiple model paths expose the same name. Done means this valid model loads without the repeated false-positive duplicate errors, with relevant regression coverage.

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

説明

Model and observed behaviour
File : https://github.com/Systems-Modeling/SysML-v2-Release/tree/master/sysml/src/examples/Vehicle Example/SysML v2 Spec Annex A SimpleVehicleModel.sysml
What the specification requires

Many (repeated) errors are displayed when loading the above file :
sysml> %load "SysML v2 Spec Annex A SimpleVehicleModel.sysml" SysML v2 Spec Annex A SimpleVehicleModel.sysml:501:23: warning[name-conflict]: Duplicate of imported member name 'diameter': SimpleVehicleModel::VehicleConfigurations::VehicleConfiguration_b::PartsTree::vehicle_b::rearAxleAssembly::rearWheel1::diameter (import VehicleConfigurations::VehicleConfiguration_b::PartsTree::**), SimpleVehicleModel::VehicleConfigurations::VehicleConfiguration_b::PartsTree::vehicle_b::rearAxleAssembly::rearWheel2::diameter (import VehicleConfigurations::VehicleConfiguration_b::PartsTree::**) public import VehicleConfigurations::VehicleConfiguration_b::PartsTree::**; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Kind of gap

Valid model is rejected (false positive)

Reference implementation

No response

Version

sysml v0.12.1

主要言語
Go
スター
56
フォーク
17
平均マージ
12時間 45分
マージ済み PR(30日)
910

環境構築

はじめの一歩

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

Open-MBEE/OpenSysML のほかの issue

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

似ている issue

Go の issue をもっと見る

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

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