Is language support optional

Adam Treat treat at kde.org
Tue Oct 25 16:31:06 UTC 2005


On Tuesday 25 October 2005 8:39 am, Alexander Dymo wrote:
> On Tuesday 25 October 2005 12:02, Vladimir Prus wrote:
> > I wonder if in KDevelop, language support is optional or not.
> > Specifically, here's a part of src/multibuffer.cpp:
> >
> >     KDevLanguageSupport *language =
> > API::getInstance()->languageSupport(); setOrientation(
> > language->splitOrientation() );
> >
> > If 'language' is 0, the code will crash, and I've managed to crash it in
> > practice. Should the code check for language==0, or language==0 is
> > "impossible" event?
>
> At least I can say the language plugin _should_ be optional.
> kdevassistant application, for example, doesn't use language support
> stuff. Also when no project is loaded, no language support is available
> in usual KDevelop profiles.
> This case should be probably fixed.

Easy enough, I'll fix it.

> _______________________________________________
> KDevelop-devel mailing list
> KDevelop-devel at barney.cs.uni-potsdam.de
> http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel

-- 
I'm running a Marathon in December!
HELP ME SAVE LIVES and Donate Today!
http://helpmesavelives.blogspot.com/




More information about the KDevelop-devel mailing list