Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Dltk-dev] Getting a wrong/older version of a ModuleDeclaration from SourceParserUtil.getModuleDeclaration(ISourceModule)

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


Back to the top