Possible clash in ~/.kdevduchain

Milian Wolff mail at milianw.de
Mon Aug 2 15:21:59 UTC 2010


On Monday, 2. August 2010 17:14:00 Aleix Pol wrote:
> 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)

Why should sessions in quanta be the same as in KDevelop? I don't like that 
idea at all.

> > 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.

Why? I hate to have multiple tools to stuff on the same base. You can have a 
alias for kdev-cleanduchain, not the other way around.
-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20100802/ca4973ae/attachment.sig>


More information about the KDevelop-devel mailing list