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

List:       kde-bugs-dist
Subject:    Bug#1606: Next Error moves to wrong line in output window [23:31,22.07.99]
From:       Gordon Tyler <gtyler () iafrica ! com>
Date:       1999-07-22 21:47:34
[Download RAW message or body]

Package: kdevelop
Version: 0.4-19990722
Severity: normal

Bugreport ID : 23:31,22.07.99

Originator       : Gordon Tyler
E-Mail   : gtyler@iafrica.com

Subject : Next Error moves to wrong line in output window

Error Class      : software bug
Error Location: editor
Priority         : low
Bug Description ---------------------------

When using the Next Error command, the cursor is placed on
the correct lsource ine for the error but the output window scrolls to 
the next line of the output and the statusbar displays the incorrect line.

How to repeat the error -------------------

Build with errors, select View->Next Error

Bugfix or Workaround ----------------------

I've fixed the bug and generated a patch with diff -u:
--- kdevelop/kdevelop/cerrormessageparser.cpp    Tue Jun  8 13:07:19 1999
+++ kdevelop-new/kdevelop/cerrormessageparser.cpp        Thu Jul 22 23:29:33 1999
@@ -57,7 +57,6 @@
QRegExp error_reg(":*:[0-9]*:*:"); // is it an error line for sgml2html?, I hope it works

for(str = outputlist.first();str != 0;str = outputlist.next()){
-    makeoutputline++;
if((pos1=error_reg.match(str)) != -1){ // error ?
pos2 = str.find(':',pos1+1);
error_str = str.mid(pos1+1,pos2-pos1-1);
@@ -71,6 +70,7 @@
 m_info_list.append( error_info);
}
}
+    makeoutputline++;
}
out();
//  cerr << endl << endl << ":::::::::";
@@ -115,7 +115,6 @@
QString error_str;

for(str = outputlist.first();str != 0;str = outputlist.next()){
-    makeoutputline++;
//enter directory
if((pos1=enter_reg.match(str)) != -1){
// extract the enter directory
@@ -167,6 +166,7 @@
 
}
}
+    makeoutputline++;
} //  end for outputlist
}


System Information ------------------------

KDevelop version         : 0.4-19990722
KDE version              : 1.1.1
QT version               : 1.44
OS/Distribution  : Linux / RedHat 6.0
Compiler                 : g++

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

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