Bug#2972: Clicking on error messages not working with the Compile file command
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Sat Apr 8 19:08:33 UTC 2000
Package: kdevelop
Version: 1.1
Severity: normal
Bugreport ID : 14:59,08.04.00
Originator : Richard Dale
E-Mail : Richard_Dale at tipitina.demon.co.uk
Subject : Clicking on error messages not working with the Compile file command
Error Class : software bug
Error Location : I don´t know
Priority : low
Bug Description ---------------------------
When the 'Compile file' command is used to compile a single file in a KDevelop
sub-directory and the compilation has errors. Then, cicking on error messages fails to
find the line in the source file with the error.
How to repeat the error -------------------
Compile a single file with errors, and click on the error text
Bugfix or Workaround ----------------------
I've added this line to the method CKDevelop::slotBuildCompileFile() in
ckdevelop.cpp. It fakes a ': Entering directory' message (this is normally
output by make when the 'Build' project command is used). The 'Entering'
message gives to error message parser enough context to find to source
filename:
diff -Naur -X /home/duke/bin/patcher.exclude kdevelop-1.1/kdevelop/ckdevelop.cpp kdevelop-1.1objc/kdevelop/ckdevelop.cpp
--- kdevelop-1.1/kdevelop/ckdevelop.cpp Fri Feb 25 17:40:43 2000
+++ kdevelop-1.1objc/kdevelop/ckdevelop.cpp Sat Apr 8 14:50:12 2000
@@ -806,7 +806,8 @@
messages_widget->clear();
process.clearArguments();
QFileInfo fileinfo(cpp_widget->getName());
+ process << "echo " << make_cmd + "[1]: Entering directory \\`" + fileinfo.dirPath() + "\\';\n";
QDir::setCurrent(fileinfo.dirPath());
// get the filename of the implementation file to compile and change extension for make
//KDEBUG1(KDEBUG_INFO,CKDEVELOP,"ObjectFile= %s",QString(fileinfo.baseName()+".o").data());
// cerr << "ObjectFile= " << fileinfo.baseName()+".o";
System Information ------------------------
KDevelop version : 1.1
KDE version : 1.1.2
QT version : 1.44
OS/Distribution : LinuxPPC
Compiler : gcc
misc :
More information about the KDevelop-devel
mailing list