Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Type reference problem
Type reference problem [message #756923] Tue, 15 November 2011 14:45
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 672
Registered: July 2009
Location: Trondheim, Norway
Senior Member

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...

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: Thu Feb 25 02:58:38 GMT 2021

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

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

Back to the top