Your message dated Mon, 27 Sep 1999 13:15:19 +0200 (METDST) with message-id and subject line (no subject) has caused the attached bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I'm talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Stephan Kulow (administrator, KDE bugs database) Received: (at submit) by bugs.kde.org; 19 Sep 1999 20:09:50 +0000 From armin@uumail.de.uu.net Sun Sep 19 22:09:50 1999 Received: from pec-2-200.tnt2.s2.uunet.de ([149.225.2.200]:27140 "EHLO obiwan.mingo.de") by max.tat.physik.uni-tuebingen.de with ESMTP id ; Sun, 19 Sep 1999 22:09:39 +0200 Received: (from armin@localhost) by obiwan.mingo.de (8.9.3/8.9.3) id WAA02328 for submit@bugs.kde.org; Sun, 19 Sep 1999 22:07:29 +0200 Date: Sun, 19 Sep 1999 22:07:29 +0200 From: "Armin L. Schneider" Message-Id: <199909192007.WAA02328@obiwan.mingo.de> To: submit@bugs.kde.org Subject: [21:53,19.09.99] Return-Path: X-Orcpt: rfc822;submit@bugs.kde.org Package: kdevelop Version: 1.0-19990828 Severity: normal Bugreport ID : 21:53,19.09.99 Originator : Armin L. Schneider E-Mail : armin@mingotronic.de Subject : Error Class : software bug Error Location: project management Priority : medium Bug Description --------------------------- 2 problems when using '++' in a project path (e.g. /home/armin/C++/Quarto/kquarto) If you want to add an existing file to your project, you end up in an infinite loop and you have to kill kdevelop. If you create dialogs, no sourcecode will be generated, only the kdevdlg-file. How to repeat the error ------------------- Create a project in a path containing '++'. Create a normal KDE application and try to add an existing file. Be prepared to kill kdevelop... Try to create a small dialog using the dialog editor. Then create the sourcecode for it. No files will be generated! Bugfix or Workaround ---------------------- The reason for both problems is the same: a QRegExp-replace to remove the current project directory from a pathname. Solution: 1. in 'kdevelop/kdevelop/ckdevelop_project.cpp', replace rel_name.replace(QRegExp(prj->getProjectDir()),""); with if(rel_name.find(prj->getProjectDir()) == 0) rel_name.remove (0, strlen (prj->getProjectDir ())); 2. in 'kdevelop/kdevelop/kdlgedit/kdlgedit.cpp' replace abs_filename.replace(QRegExp(prj->getProjectDir()),""); with if(abs_filename.find(prj->getProjectDir()) == 0) abs_filename.remove (0, strlen (prj->getProjectDir ())); Have fun, Armin. System Information ------------------------ KDevelop version : 1.0-19990828 KDE version : 1.1.1 QT version : 1.44 OS/Distribution : SuSE Linux 6.1 Compiler : gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)