Possible clash in ~/.kdevduchain
Aleix Pol
aleixpol at kde.org
Mon Aug 2 15:14:00 UTC 2010
On Mon, Aug 2, 2010 at 3:48 PM, Milian Wolff <mail at milianw.de> wrote:
> Hello,
>
> I just noticed that in theory the stored duchain caches in ~/.kdevduchain
> may
> clash when we have more and more applications using KDevplatform.
>
> The reason is:
>
> - sessions are stored in ~/.kde/share/apps/$APP/sessions/$SESSION
> - all applications store their chains in ~/.kdevduchain/$SESSION though
>
> so if two apps have by chance the same session hash, it will lead to a
> clash
> in the duchain cache.
>
> How should we solve this? Afaik now that the chain loading is delayed, we
> can
> access KAboutData or what it was to get the name of the application. That
> would mean we can do something like:
>
> ~/.kdevduchain/$app/$SESSION
>
> otoh we could directly move this stuff to
> ~/.kde/share/apps/$APP/$SESSION/duchain
>
> Maybe the latter is even better as it's clear that only app data is stored
> there... What do you think?
>
We can lock sessions for all consumers, no? (if a session is already being
used by kdevelop then it shouldn't be used from quanta)
>
> Moving it to .kde/share/apps would make it clearly harder to clean the
> chain
> though. I'd hence also add some more cli-arguments to kdevelop (and quanta)
> to
> clean a chain.
>
> Something like:
>
> kdevelop --wipe-duchain --session $name
>
we could have a new command like kdev-cleanduchain $name too.
>
> Bye
> --
> Milian Wolff
> mail at milianw.de
> http://milianw.de
>
> --
> KDevelop-devel mailing list
> KDevelop-devel at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20100802/998f2b1b/attachment.html>
More information about the KDevelop-devel
mailing list