[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-devel
Subject:    Re: Is language support optional
From:       Alexander Dymo <adymo () mksat ! net>
Date:       2005-10-25 12:39:39
Message-ID: 200510251539.40020.adymo () mksat ! net
[Download RAW message or body]

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.

_______________________________________________
KDevelop-devel mailing list
KDevelop-devel@barney.cs.uni-potsdam.de
http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic