Community
Participate
Working Groups
M5: In an Eclipse workspace comprising a single Xtext nature project and a single Xtext file, invoke Project Clean All. AbstractLinker.afterModelLinked is invoked twice requiring my OCL editors that perform Concrete to Abstract Syntax model mapping in a derived afterModelLinked to convert twice; this is an expensive activity. [Particularly since the invoking protocol does not identify the sub-tree root that actually needs re-linking.] The problem appears to be line 271 of ClusteringBuilderState resourceSet.getResources().clear(); // Empty the resource set so that the next phase starts afresh. as result of which the two calls to resourceSet.getResource each start from scratch.
This has been fixed and only happens if you run low on memory.
Requested via bug 522520. -M.