Lorenzo Bettini Messages: 1705 Registered: July 2009 Location: Firenze, Italy
looks like XbaseScopeProvider is now deprecated in Xtext 2.4 (and also
some methods have changed, thus my custom overridden versions do not
seem to work anymore); is a migration guide available already?
I asked a similar question and was told they were working on the
migration guide, and that the target was the Kepler release. I hope it
comes a bit earlier than that.
They seem to have switched to XbaseBatchScopeProvider, try extending
that one instead.
On 28.03.13 01.43, Lorenzo Bettini wrote:
> looks like XbaseScopeProvider is now deprecated in Xtext 2.4 (and also
> some methods have changed, thus my custom overridden versions do not
> seem to work anymore); is a migration guide available already?
> thanks in advance
Ian McDevitt Messages: 70 Registered: December 2012 Location: Belfast
I had similar problems but a slightly different solution when moving to 2.4. I stopped using the XbaseScopeProvider because it was deprecated and just used the DeclarativeScopeProvider. But then my content assist broke and my ProposalProvider threw exceptions because its (generated) super class was still expecting my scope provider to be Xbase and was casting to it regardless.
After many dead ends of recoding I have it working again by moving ALL my scope calculations to my delegate ImportedNamespaceAwareLocalScopeProvider AND not overriding the main ScopeProvider at all (removed from Runtime module).
This feels better than having some of the scope work split but it was a lengthy path to refactor at the time.