LanguagePlugins and AlwaysOn

Milian Wolff mail at milianw.de
Thu Jun 17 19:40:43 UTC 2010


On Thursday 17 June 2010 20:00:28 Andreas Pakulat wrote:
> On 17.06.10 19:10:47, Milian Wolff wrote:
> > Heyho,
> > 
> > while working on the multilang support I found out that the "AlwaysOn"
> > attribute doesn#t actually mean AlwaysOn but more "neverUnload". But
> > imagine this:
> > 
> > open index.html
> > => langController->languagesForUrl()
> > (foreground)
> > => loads XML Language Support
> > => parsejob
> > => run (background)
> > <style type="text/css">
> > => langController->languagesForMimeType("text/css")
> > => nothing found since loading plugins from the background is explicitly
> > forbidden
> > 
> > Now what to do? Can't we simply load all language plugins _always_? I.e.
> > also at start?
> 
> Btw, who disallows loading plugins from background threads? I can't see
> anything in our own codebase, so is this something that kdelibs or Qt
> restrict?

It's the LanguageController, see languagesForUrl method. David introduced that 
check to prevent crashes back then.


-- 
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/20100617/988e2b9a/attachment.sig>


More information about the KDevelop-devel mailing list