Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Cannot Reference One Xcore Model from Another
Cannot Reference One Xcore Model from Another [message #1844315] Wed, 08 September 2021 17:57
Greg Lusk is currently offline Greg LuskFriend
Messages: 36
Registered: February 2017
Location: USA
I have a Gradle project that has two Xcore subprojects. The second Xcore project imports classes from the first Xcore model. In Eclipse, everything seems to work fine, all references are resolved. However, when I run gradlew build, I get the following errors:

> Task :com.selinc.xcore.test2:generateXtext FAILED
ERROR:Bob cannot be resolved to a type. (file:/G:/PullmanGit/test2/model/test2.xcore line : 10 column : 9)
WARNING:The import 'com.selinc.xcore.test.Bob' is never used (file:/G:/PullmanGit/test2/model/test2.xcore line : 6 column : 0)
ERROR:The generic reference type must not refer to a data type (file:/G:/PullmanGit/test2/model/test2.xcore line : 10 column : 0)

It seems that the imports aren't working for Gradle.

I have created a small project that reproduces the error here (note that the actual production code has several other modules in it, so the parent file contains a lot of dependencies -- I included them in case they are part of the root cause).
Previous Topic:problems with Xtext 2.8 and Xcore 1.3.0
Next Topic:Validator
Goto Forum:

Current Time: Sat Jan 28 14:55:30 GMT 2023

Powered by FUDForum. Page generated in 0.01710 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top