Is language support optional

Alexander Dymo adymo at mksat.net
Tue Oct 25 14:40:11 UTC 2005


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.




More information about the KDevelop-devel mailing list