Closed jack-tan closed 3 years ago
I also encountered the same problem, unable to display the model diagram successfully
@jack-tan In the runtime Eclipse instance:
Window > Show View > Other...
.Show View
window, select Git > Git Repositories
and click Open
.Git Repositories
view, select "Add an existing local Git Repository to this view" ( button).SysML-v2-Pilot-Implementation
repository.Add
.Thank you very much for answering this question for me, and follow your answers. I have completed the installation and will show or draw a simple case. But is this software unstable? Or for other reasons. When creating a case, when referencing types in other sysml or kerml files, sometimes it can be quoted (and no error is reported), but sometimes an error is reported, and the system restarts. It will be good, and it will be bad, as shown in the following two pictures
This is a prototype implementation still in ongoing development, provided as-is for community use. We do try to make each monthly release stable for use, but there are bound to be problems sometimes. Simple bugs can usually be resolved in time for the next monthly release, but we are also in the process of a deeper multi-month refactoring to address some deeper issues with the current design.
That said, the errors you have highlighted typically result from not having the model libraries properly configured for global name resolution. In addition to explicit imports, implicit references to library elements are inserted in many places as model text is parsed (for instance, that can cause errors in the validation of multiplicities, as you have shown).
Before you opened a model using the KerML or SysML editors, did you carefully follow steps 4 to 7 under "Getting started" in the README?
Turn off Project > Build Automatically.
Import the projects
kerml
,sysml
andsysml.library
into the runtime Eclipse workspace. (See the following section if you wish to create additional projects.)Execute Project > Clean with the following settings:
- Clean all projects: Not selected
sysml.library
: Selected- Start a build immediately: Selected
- Build only the selected projects: Selected
Repeat Project > Clean as above for
kerml
andsysml
.Important: Be sure to first build only
sysml.library
before buildingkerml
orsysml
.
If you have created a new project for your model files, did you follow steps 4 and 5 under "Initializing New SysML Model Projects"?
On the Project References page, check the
sysml.library
project. This step tells Eclipse which other projects should be visible for resolving cross-references.Right-click the new project and select Configure > Convert to an Xtext project. This step sets up the indexing infrastructure necessary for resolving references between different files.
Not carrying out these steps properly can lead to the kind of errors you are seeing. If, after following these steps, you are still seeing errors, then this can sometimes be resolved by closing all editor tabs and re-doing the clean build steps, starting with sysml.library
.
@jack-tan I was just checking to see if you have been able to resolve the remaining problems with our installation.
I am very grateful for your help. With your help, I have successfully installed sysml v2 and built related cases. The unstable situation of the system has also been resolved. However, there is a new question about SysML V2 model extension (similar to the extension of UML profile), based on sysml v2, based on block definition diagrams, internal block diagrams, and state machines. I want to build a language for domain specific language, but in "SysML-v2-Part-2-OMG_Systems_ModelingLanguage(SysML)-2020-09.pdf" not provide the corresponding information. I'd like to acquire all the information relative to the extension of SysML V2, you can provide some information or some materials
Glad to hear things are working!
Being able to build domain specific languages on top of SysML v2 is an important goal for the language. However, while we have discussed the requirements and various possible approaches for designing this capability, we are only now at the point of actually being able to start implementing something. There will be a small step toward this in the 2020-12 release, with an initial capability for simple metadata annotations. We hope to have something more extensive implemented over the next couple of months.
If you would inquire further about our current plans for the language extension capability, or start a discussion on creating domain specific languages built on SysML v2, I would encourage you to join the Google Group at https://groups.google.com/g/sysml-v2-release.
I encountered a problem during the installation. What is the third step? I tried many methods, but still did not solve it.help me!