| Summary: | Registered GenModels are missing | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Mirko Seifert <mirko.seifert> | ||||
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | sebastian.zarnekow | ||||
| Version: | unspecified | Flags: | sebastian.zarnekow:
helios+
|
||||
| Target Milestone: | SR1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Mirko Seifert
Is this caused by missing entries in the build.properties? I'm not sure how the xText plug-ins are packaged, but if the packaging works similar to the "Export Deployable Plug-ins and Fragments" function in Eclipse then the problem is most probably a missing entry in the build.properties. I did not look at the packaged JARs to check whether these do contain the genmodel. If they do indeed contain the genmodel files, the paths to the genmodels in the plugin.xml might be wrong as well. I identified some missing entries in build.properties files and some wrong genmodel uris in plugin.xml files. Is there a way to validate the latter automatically? Please verify the fix. I've checked out Xtext from the CVS head, but there are still Genmodels which can't be found. I'll attach a JUnit Plug-in Test to verify the problem. Created attachment 174735 [details]
A test case that detects incorrectly registed genmodels
Does it work with a deployed version of a freshly build Xtext? Where can I get one of those? build.eclipse.org seems to be down (again). Export as -> Deployable .. ? I've exported all Xtext plug-ins to a separate Eclipse installation, but the result is the same. The following GenModels are not found: platform:/plugin/org.eclipse.xtext/model/xtext.genmodel (registered in org.eclipse.xtext/plugin.xml, model is actually in src/org/eclipse/xtext/Xtext.genmodel) platform:/plugin/org.eclipse.xtext.xbase/org/eclipse/xtext/xbase/Xbase.genmodel (registered three times in org.eclipse.xtext.xbase/plugin.xml, model is actually in model/Xbase.genmodel) platform:/plugin/org.eclipse.xtext.builder/model/BuilderState.genmodel (registered in org.eclipse.xtext.builder/plugin.xml, model folder is missing from build.properties file) I'm pretty sure that I fixed these wrong / missing entries in the plugin.xml / build.properties with yesterdays commit. See here: http://git.softeys.de/tmf.xtext.git/commitdiff/533bc568b9afe84070c385925ef6aaf21daa9356 Can you confirm that you are working with the latest version from Xtext CVS HEAD? Ok, I performed another update and the test case succeeds for the deployed version of the plug-ins. It fails when running the test case from the workspace containing the source version of the plug-ins, because the paths to the GenModels differ, but this is not a problem for users of Xtext. Thanks for double-checking. Closing bug which were set to RESOLVED before Eclipse Neon.0. |