SysML-v2-Pilot-Implementation icon indicating copy to clipboard operation
SysML-v2-Pilot-Implementation copied to clipboard

Invalid SysML v2 files in repo

Open kentyman23 opened this issue 2 months ago • 2 comments

The following files have parsing errors when I try to parse from https://jupyter.systemsmodeling.com/. Are these intended to parse successfully?

  1. ./org.omg.sysml.xpect.tests/Analyses.sysml

    ERROR:no viable alternative at input 'case' (3.sysml line : 18 column : 9)
    ERROR:no viable alternative at input 'case' (3.sysml line : 18 column : 18)
    ERROR:no viable alternative at input '(' (3.sysml line : 18 column : 57)
    ERROR:no viable alternative at input 'case' (3.sysml line : 19 column : 30)
    ERROR:no viable alternative at input 'subject' (3.sysml line : 21 column : 22)
    ERROR:no viable alternative at input 'case' (3.sysml line : 26 column : 39)
    ERROR:no viable alternative at input '(' (3.sysml line : 36 column : 61)
    ERROR:no viable alternative at input 'case' (3.sysml line : 44 column : 9)
    ERROR:no viable alternative at input 'case' (3.sysml line : 44 column : 18)
    
  2. ./tool-support/quantities_lib_generator/libs_baseline_release-2024-12/ISQSpaceTime.sysml

    ERROR:no viable alternative at input 'attribute' (1.sysml line : 187 column : 14)
    

kentyman23 avatar Oct 22 '25 19:10 kentyman23

No these files are not expected to parse.

  1. The Analysis.sysml file is very old, and it no longer reflects current SysML v2 syntax. It is not used and should have been deleted from the repository some time ago.
  2. As indicated in the directory name libs_baseline_release-2024-12, the files in this directory are from the 2024-12 release, which was just prior to the final release before finalization (2025-02). There are therefore some variations from the final SysML v2 syntax. In particular, the ISQSpaceTime.sysml file uses the keyword readonly which was later replaced by constant.

seidewitz avatar Oct 22 '25 20:10 seidewitz

Indeed, the folder libs_baseline_release-2024-12 with .sysml files is a leftover used in regression testing for refactoring of the tool_support/quantities_lib_generator in March 2025. The folder will be deleted from the repository in a next update. ----Hans Peter

From: Ed Seidewitz @.> Sent: Wednesday, October 22, 2025 10:26 PM To: Systems-Modeling/SysML-v2-Pilot-Implementation @.> Cc: Subscribed @.***> Subject: Re: [Systems-Modeling/SysML-v2-Pilot-Implementation] Invalid SysML v2 files in repo (Issue #706)

[https://avatars.githubusercontent.com/u/8561049?s=20&v=4]seidewitz left a comment (Systems-Modeling/SysML-v2-Pilot-Implementation#706)https://github.com/Systems-Modeling/SysML-v2-Pilot-Implementation/issues/706#issuecomment-3434096243

No these files are not expected to parse.

  1. The Analysis.sysml file is very old, and it no longer reflects current SysML v2 syntax. It is not used and should have been deleted from the repository some time ago.
  2. As indicated in the directory name libs_baseline_release-2024-12, the files in this directory are from the 2024-12 release, which was just prior to the final release before finalization (2025-02). There are therefore some variations from the final SysML v2 syntax. In particular, the ISQSpaceTime.sysml file uses the keyword readonly which was later replaced by constant.

— Reply to this email directly, view it on GitHubhttps://github.com/Systems-Modeling/SysML-v2-Pilot-Implementation/issues/706#issuecomment-3434096243, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHY4GEBME24PBUKGL5DOM5L3Y7R43AVCNFSM6AAAAACJ523CHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTIMZUGA4TMMRUGM. You are receiving this because you are subscribed to this thread.Message ID: @.@.>>

hpdekoning avatar Oct 23 '25 07:10 hpdekoning