This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Avoid warning messages to std output screen

Tags: None
(comma "," separated)
machielk
Registered Member
Posts
4
Karma
0
Hello,

I am using KDevelop version 4.7.3. It's a very helpful tool, but I have one complaint.
The program continuously writes all kind of warning messages to my terminal. For instance:
kdevelop(3060)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<Item>::getItemForIndex: invalid item for index 993 1582 0
kdevelop(3060)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<Item>::getItemForIndex: invalid item for index 157 1582 0
kdevelop(3060)/kdevplatform (language) KDevelop::TopDUContextDynamicData::DUChainItemStorage<Item>::getItemForIndex: invalid item for index 85 1582 0

Is there a way to stop this output or redirect it to a log file?
Best regards,

Machiel Kolstein
User avatar
SecretCode
Registered Member
Posts
33
Karma
0
OS
I assume you are launching kdevelop from a terminal window.

Either don't do this - create a menu launcher item (the best option, unless you are calling it with different arguments every time);
or use 'nohup' which by default redirects output to a file (read the man page for more);
or redirect the output yourself e.g.
Code: Select all
kdevelop > /dev/null 2>&1


(This is a shell issue not a KDE issue, in my view.)


I'd rather be locked out than locked in
machielk
Registered Member
Posts
4
Karma
0
You're right I can solve it in the shell instead of needing some kind of kdevelop option.
The two solutions you suggest do the trick perfectly.
Thanks.


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]