|Cannot Reference One Xcore Model from Another [message #1844315]
||Wed, 08 September 2021 17:57
| Greg Lusk
Registered: February 2017
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 gradle.build file contains a lot of dependencies -- I included them in case they are part of the root cause).
Powered by FUDForum
. Page generated in 0.01710 seconds