Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Xtext sometimes fails to resolve references in global scope
Xtext sometimes fails to resolve references in global scope [message #896625] Thu, 19 July 2012 03:50
Eclipse UserFriend
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)

My questions:

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?
Previous Topic:Adding metadata to emf AST before generator/validator phase?
Next Topic:Problem with get xtext resource for Xtend's doGenerate
Goto Forum:
  


Current Time: Tue Jul 08 06:23:37 EDT 2025

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

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

Back to the top