-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SADL2] Building SADL 2 Open Source from github #160
Comments
I am having issues generating code from the grammar on OS X 10.12.3 with Java 8 (1.8.0_121-b13).
|
kittaakos
added a commit
that referenced
this issue
Mar 14, 2017
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
kittaakos
added a commit
that referenced
this issue
Mar 14, 2017
It did nothing but attached a part listener without any logic. Signed-off-by: Akos Kitta <kittaakos@gmail.com>
kittaakos
added a commit
that referenced
this issue
Mar 14, 2017
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
kittaakos
added a commit
that referenced
this issue
Mar 14, 2017
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
kittaakos
added a commit
that referenced
this issue
Mar 15, 2017
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
kittaakos
added a commit
that referenced
this issue
Mar 15, 2017
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
kittaakos
added a commit
that referenced
this issue
Mar 15, 2017
Used absolute path instead. Signed-off-by: Akos Kitta <kittaakos@gmail.com>
kittaakos
added a commit
that referenced
this issue
Mar 15, 2017
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
kittaakos
added a commit
that referenced
this issue
Mar 15, 2017
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
kittaakos
added a commit
that referenced
this issue
Mar 15, 2017
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
This thread is completed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is using branch TestProject in sadlos2 github repo.
In an Eclipse workspace (I'm using Kepler, Java 1.8 with 1.7 compliance level, and version 2.4.3.v201309030823 of Xtend SDK and Xtext SDK), import the following projects from sadlos2 (NOT sadl3):
Optional projects if desired for some reason:
Projects # 3 & 4 in the first list are Maven projects. Do a Maven Update Project, then Run Maven Install. Copy the resulting jars from the target folder to the com.ge.research.sadl/lib folder.
Project # 5 is also a Maven project so do a Maven Update Project, then Run Maven Install. However, rather than copying the jar turn it into a plug-in project by opening project properties, Java Build Path, Source, and removing "Excluded: **/Activator.java.
Run com.ge.research.sadl/src/com.ge.research.sadl.GeneratedSADL.mwe2 as MWE2 Workflow.
You should now be able to run as an Eclipse application and import the TestSadlIde project in the resulting IDE.
If you open the TestSadlIde project and go to the AutoTest folder, AutoTests1.test, you can run a test suite. The test suite editor isn't included in this but you can see the tests as plain text. Right-click on the AutoTests1.test in the Project Explorer, select Sadl Actions -> Run Test Suite. Not all tests will pass as some of the rules actually use built-in functions not included in this build. For me, 176 of 183 test cases pass. Some of the errors are just because the configuration.rdf file references a built-in but it isn't actually used in the tests.
More to the point, if you do a clean/build on the TestSadlIde project 204 OWL and rule files should be generated. You should have console output something like this:
empty.sadl: ERROR: Cannot save model in file 'D:\crapo\workspace-runtime\TestSadlIde\OwlModels\empty.owl' as it has no name.
AllValuesOnDTP.sadl: ERROR: Cannot save model in file 'D:\crapo\workspace-runtime\TestSadlIde\OwlModels\AllValuesOnDTP.owl' as it has no name.
RuleRefBeforeDefinition.sadl: ERROR: The concept 'Philadelphia' in rule 'NorthernerAtHeart' in model 'http://com.ge.research.sadl/rulerefbeforedef' is used before it is defined. Please define the concept before referencing it in a query or rule.
Encountered unhandled OR in rule 'CO97a'
Encountered unhandled OR in rule 'CO97b'
Encountered unhandled OR in rule 'CO97c'
GeorgeAndMarthaErr.sadl: ERROR: The concept 'Philadelphia' in rule 'NorthernerAtHeart' in model 'http://com.ge.research.sadlGeorgeAndMarthaErr' is used before it is defined. Please define the concept before referencing it in a query or rule.
A total of 22 errors occurred in 17 models.
There were 34 warnings.
The text was updated successfully, but these errors were encountered: