Bug 112263 - Custom Makefiles Project BROKEN in many aspects.
Summary: Custom Makefiles Project BROKEN in many aspects.
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: file tree (show other bugs)
Version: 3.2.2
Platform: unspecified FreeBSD
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-08 19:53 UTC by Juan Linietsky
Modified: 2007-01-31 17:28 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juan Linietsky 2005-09-08 19:53:52 UTC
Version:           3.2.2 (using KDE 3.4.0, compiled sources)
Compiler:          gcc version 3.4.2 [FreeBSD] 20040728
OS:                FreeBSD (i386) release 5.4-RELEASE

Making a custom-makefiles project is just broken.
things not working:

-Add/Remove files to/from project simply doesnt work, and is ignored. I'm forced to delete the project.filelist and let kdevelop crete everything from scratch every time.
-Set Active directory is also ignored, doesnt work.
-Because of the above, the Class Wizard doesnt work either, it always generates files on the root folder.
-New File dialog also fails to set the active directory
Comment 1 Amilcar do Carmo Lucas 2005-09-12 11:53:44 UTC
Did you compile the sources of KDevelop yourself or did you used some patched versions from FreeBSD?

In case you compiled it yourself, can you try compiling the version in the KDE/3.5 branch ?
Comment 2 Juan Linietsky 2005-09-12 16:12:52 UTC
Under FreeBSD I did both use existing packages AND later compiled myself.
This also happens under two different debian installs with the debian packages, and has been happening to me for about a year, with several versions.
I also tried to compile the development releases but they aways fail build, so I dont even bother anymore.
Comment 3 Amilcar do Carmo Lucas 2005-09-12 17:28:07 UTC
As far as we know Debian builds are broken because Debian people decided to rename the main KDevelop executable from kdevelop to kdevelop3.
That little change broke a lot of things.
Please try a source compilation from the KDE/3.5 branch, it should compile fine.
Comment 4 Piet 2006-01-29 15:54:52 UTC
Just like to confirm that all mentioned bugs are still present in kdevelop 3.3.0 (KDE 3.5.1). I usually install debian packages (unstable) but compiling kdevelop from source doesn't help a bit.

Due to this custom projects are pretty unusable (make class, leave kdev, move files, remove filelist, restart kdev...).
Comment 5 Max J. Spaulding 2006-02-02 20:48:33 UTC
This bug also exists in Kdevelop 3.3 using the fedora core 4 packages.  It appears to function in the projects root directory, but not in sub-directories.  The context menu in the sub-directories is missing the file name as well.  So instead of "Add file.cpp to project" it reads "Add to project" and project.kdevelop.filelist has blank lines appended.
Comment 6 Oliver Scheerer 2006-02-05 22:12:31 UTC
>Add/Remove files to/from project simply doesnt work, and is ignored. I'm >forced to delete the project.filelist and let kdevelop crete everything from >scratch every time. 

I can confirm this for files which are generated by the new class wizard in the project directory. The reason is that the files are added with a leading / to the filelist. A correction is attached below.

>Set Active directory is also ignored, doesnt work. 

See Bug 121332 for correction.

>Because of the above, the Class Wizard doesnt work either, it always generates >files on the root folder. 

See Bug 121332 for correction.

>New File dialog also fails to set the active directory

The new file dialog uses the active directory as default. But I don't know whether it is supposed to change the active directory by the new file dialog.

Index: languages/cpp/cppnewclassdlg.cpp
===================================================================
--- languages/cpp/cppnewclassdlg.cpp    (revision 503276)
+++ languages/cpp/cppnewclassdlg.cpp    (working copy)
@@ -2044,8 +2044,14 @@

        QStringList fileList;

-       fileList.append ( project->activeDirectory() + "/" + header );
-       fileList.append ( project->activeDirectory() + "/" + implementation );
+       if ( !project->activeDirectory().isEmpty() ){
+               fileList.append ( project->activeDirectory() + "/" + header );
+               fileList.append ( project->activeDirectory() + "/" + implementation );
+       }else{
+               fileList.append ( header );
+               fileList.append ( implementation );
+       }
+

        project->addFiles ( fileList );
 }
Comment 7 Juan Linietsky 2006-03-23 17:45:30 UTC
The HEAD version fixes the bug a bit, as in, files can be added/removed from the project (although it doesnt seem to work in the root directory now).
However, setting the active directory is still BROKEN, and the new class wizard will create the files in the project root!

I know everyone works very hard on kdevelop, but it's really frustrating that this bug has been around for years and no one seems to care.
Comment 8 Andreas Pakulat 2007-01-31 17:28:57 UTC
I committed a fix to svn which allows to create new classes and files in the same dir as the currently opened file.