<br><br><div class="gmail_quote">On Mon, Aug 2, 2010 at 3:48 PM, Milian Wolff <span dir="ltr"><<a href="mailto:mail@milianw.de">mail@milianw.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
I just noticed that in theory the stored duchain caches in ~/.kdevduchain may<br>
clash when we have more and more applications using KDevplatform.<br>
<br>
The reason is:<br>
<br>
- sessions are stored in ~/.kde/share/apps/$APP/sessions/$SESSION<br>
- all applications store their chains in ~/.kdevduchain/$SESSION though<br>
<br>
so if two apps have by chance the same session hash, it will lead to a clash<br>
in the duchain cache.<br>
<br>
How should we solve this? Afaik now that the chain loading is delayed, we can<br>
access KAboutData or what it was to get the name of the application. That<br>
would mean we can do something like:<br>
<br>
~/.kdevduchain/$app/$SESSION<br>
<br>
otoh we could directly move this stuff to<br>
~/.kde/share/apps/$APP/$SESSION/duchain<br>
<br>
Maybe the latter is even better as it's clear that only app data is stored<br>
there... What do you think?<br></blockquote><div> </div><div>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)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Moving it to .kde/share/apps would make it clearly harder to clean the chain<br>
though. I'd hence also add some more cli-arguments to kdevelop (and quanta) to<br>
clean a chain.<br>
<br>
Something like:<br>
<br>
kdevelop --wipe-duchain --session $name<br></blockquote><div><br></div><div>we could have a new command like kdev-cleanduchain $name too. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Bye<br>
<font color="#888888">--<br>
Milian Wolff<br>
<a href="mailto:mail@milianw.de">mail@milianw.de</a><br>
<a href="http://milianw.de" target="_blank">http://milianw.de</a><br>
</font><br>--<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
<br></blockquote></div><br>