[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[Dltk-dev] Re: Getting a wrong/older version of a ModuleDeclaration from SourceParserUtil.getModuleDeclaration(ISourceModule)
|
Hi,
Researching more into the problem I found that our IBuildParticipant
receives now other build types in the IBuildContext. Before it was
receiving FULL_BUILD when saving a file. Now it receives
INCREMENTAL_BUILD instead. This was our problem with the non-updating
cache.
But now when is a full build is triggered?
Thanks!
Gabriel
On Tue, Aug 17, 2010 at 3:10 PM, Gabriel Petrovay
<gabipetrovay@xxxxxxxxx> wrote:
> Hi
>
> I am using SourceParserUtil.getModuleDeclaration(ISourceModule) to
> retrieve a ModuleDeclaration. What I get is an older version of my
> module's declaration. Probably a cached one.
>
> This happens when I modify a ISourceModule and save it. When I want to
> access it through SourceParserUtil.getModuleDeclaration() I get the
> older version before the file was edited/saved.
>
> Shouldn't the saving of a document update the ISourceModule on the AST
> cache? Or how can I control this or make sure I get the latest saved
> version of my modules?
>
> This seems to be a regression for us since we migrated to DLTK 2.0
>
>
> Thanks!
>
> --
> MSc Gabriel Petrovay
> Mobile: +41(0)787978034
> www.28msec.com
>
--
MSc Gabriel Petrovay
Mobile: +41(0)787978034
www.28msec.com