Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Type reference problem
Type reference problem [message #756923] Tue, 15 November 2011 09:45
Eclipse UserFriend
Hi,

I'm seeing a strange problem with JvmTypes. I reference Java types,
methods, and method parameters, and the method return value and
parameter types are usually null. This results in unresolved references.
The strange thing is that once I "touch" the offending line, e.g. by
typing a meaningless space by the error, the type is non-null and the
error marker on that line/reference goes away. If I type a similarly
meaningless space by one of the other errors (of the same kind), the
first error marker reappears and the other error vanishes.

Somehow, it seems the the re-parse is done in a context where the types
are available, but only close to the re-parse. I guess this can happen
with incremental re-parse, but I have no idea what the problem can be.
Obviously, I want the types to be available all the time...

Hallvard
Previous Topic:"It is recommended to use the ANTLR 3 parser generator" message gone?
Next Topic:Get the user-chosen ICompletionProposal
Goto Forum:
  


Current Time: Tue Jul 08 15:52:04 EDT 2025

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

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

Back to the top