mac test report

Milian Wolff mail at milianw.de
Fri Sep 17 18:00:14 UTC 2010


On Friday 17 September 2010 08:48:09 Николай Шафоростов wrote:
> Hi. As I wrote in
> http://shaforostoff.blogspot.com/2010/09/kde-on-mac-test-report.html i
> encountered a crash in KDevelop. Today could eliminate it by rewritting
> computeGccStandardMacros() in languages/cpp/setuphelpers.cpp to use
> QProcess instead of KProcess. Otherwise it crashes with very strange
> backtrace, that includes KTarArchive class methods as well as
> QProcess::waitForFinished
> 
> I have compiled KDevelop 1.0.2 against kdelibs 4.5.1.
> 
> First lines of the function (all my changes):
> QVector<rpp::pp_macro*> computeGccStandardMacros()
> {
>     QVector<rpp::pp_macro*> ret;
>     //Get standard macros from gcc
>     QProcess proc;
>     proc.setTextModeEnabled(true);
>     proc.setProcessChannelMode(QProcess::MergedChannels);
>     // The output of the following gcc commands is several line in the
> format: // "#define MACRO [definition]", where definition may or may not
> be present. // Parsing each line sequentially, we can easily build the
> macro set. QStringList args;
>     args << "-xc++" <<"-E" <<"-dM" <<"/dev/null";
> 
>     proc.start("gcc", args);
>     if (proc.waitForFinished(500) == 0) {
> 
> 
> 
> Now I can import a Makefile-based project into KDevelop, but when I open
> .cpp files in it they don't get syntax-highlighted. I attach the terminal
> output of the KDevelop process.

Please use KDev master or what will become 4.1 on mac. That 4.0 is not working 
is long known (ok, to me at least).

Bye
-- 
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/20100917/18cae8a2/attachment.sig>


More information about the KDevelop-devel mailing list