What is this warning about: KDevelop::TopDUContextDynamicData::load: Cannot open top-context for reading: , , ,

David Nolden zwabel at googlemail.com
Wed Jan 19 07:54:41 UTC 2011


2011/1/18 Milian Wolff <mail at milianw.de>:
> Milian Wolff, 18.01.2011:
>> Hey David, yet another mail :)
>>
>> Whenever I shutdown KDevelop, or run a unit test, I see warnings like this:
>>
>> kdevelop(18668)/kdevplatform (language)
>> KDevelop::TopDUContextDynamicData::load: Cannot open top-context for
>> reading: "/home/milian/.kdevduchain/{dda39186-350d-4789-bf7d-
>> f4888ed9adf1}/0/topcontexts/4095"
>>
>> What is it about? I've placed a break point and it was in the duchain
>> cleanup. And yes, the warning is "correct", that path does *not* exist.
>> Can we somehow prevent this warning, or is it valid and there is something
>> odd going on?
>>
>> Bye
>
> ah, it's because of this assert in DUChain::removeDocumentChain:
>
>
>  sdDUChainPrivate->removeDocumentChainFromMemory(context);
>  Q_ASSERT(!indexed.data());
>
> first we remove the folder, then we try to load it again. Can I just comment
> out that assert?

I think it's better to remove the warning. The assert is useful, it
makes sure that the file has actually been deleted.




More information about the KDevelop-devel mailing list