|Xtext sometimes fails to resolve references in global scope [message #896625]
||Thu, 19 July 2012 07:50
| Aaron Digulla
Registered: July 2009
I'm using Xtext 2.3.0. I'm only overriding ITypesystem and IAllContainersState.Provider (as per bug 382555).|
In my test case, I load two resource sets. One defines libraries and the second contains a reference to one or more libraries ("(libs += [LibDef])*" in the grammar)
My problem: Sometimes, I get "ERROR:Couldn't resolve reference to LibDef 'base'". Specifically, the test passes when I run it from the command line using Tycho to build the bundles and it fails inside of Eclipse when I run it as plain JUnit test.
I also tried to run it as JUnit Plugin test but that fails because of Guice classpath issues (see bug 383889)
1. Where in the code does Xtend collect the instances to resolve proxies of type LibDef?
2. Where is the error message "Couldn't resolve reference to" created?
3. How can I dump the active scope when the error is created?
Powered by FUDForum
. Page generated in 0.01750 seconds