User forums > Help

Clean Workspace

(1/2) > >>

nacitar:
I have a workspace with three projects configured to be built using scons (makefile project).  Everything works great the way I have it arranged on a per-project scale. And I have the build/rebuild workspace commands working fine (had to create a target "none" and put my files in that, that way it doesn't try to build using my makefile and THEN using codeblocks default build routines.. you'd think it wouldnt try to build normally on a makefile project, though...)

Anyway, I had previously assumed that build/rebuild/clean workspace just ran build/rebuild/clean for each project, but clearly that is not true.  I can't even get a workaround for clean workspace, no idea what it's doing but it is _definitely_ not running clean on each project, as if I clean them manually, in any order, it works.. but clean workspace doesn't.

Shouldn't the workspace commands just issue those commands for each project?  If so, this would work swimmingly... but unfortunately, it doesn't.

EDIT: It looks like it's cleaning the first project in the workspace, and then stopping saying it's done.

dmoore:
nacitar: I can confirm similar problem with clean workspace, only I'm using regular build system instead of custom makefiles. clean workspace only seems to clean the active project

i suspect the need to create a none target is also a bug.

Jenna:
I actually test a patch for this problem on my system.

With the patch you can use build, rebuild and clean with makefile-based projects similar to C:B-projects.

You can also use pre- and post-build-steps, but no longer set neither compiler- and linker-options nor search-paths. Because that does not make sense for a makefile-based project.

You can also mix makefile- and C::B-projects and have dependencies between them.

There will be a fifth make-command used to look if a rebuild is needed.

And of course the user still has to setup parameters for makefiles correctly in "Build options -> Make commands".
And the parameters in the projects properties have to be fixed manually, especially the exe-path if the program shall be started or debugged from within C::B.

I don't want to apply the patch to trunk, unless it is tested by more devs/users, to make sure it does not break anything else.

I will provide it here (or more likely in an own thread) for testing purposes.

I do not use makefile-based project, so I only tested it (and the cooperation between the two project-types) with some wxWidgets example and a simple wizardscript created C::B-project.

Jenna:

--- Quote from: ashiq on January 21, 2009, 10:51:39 am ---Anyway, I had previously assumed that build/rebuild/clean workspace just ran build/rebuild/clean for each project, but clearly that is not true.  I can't even get a workaround for clean workspace, no idea what it's doing but it is _definitely_ not running clean on each project, as if I clean them manually, in any order, it works.. but clean workspace doesn't.

--- End quote ---

At first:
Please change your signature.

At second:

It does exactly what you expect, but not if you use makfile based projects.

I will start a new thread with patches for linux (created with diff) and for windows (created with tortoise-svn) this evening.
I just fixed some layout issues on win, but I have no linux system available at work in the moment, so I can not update the linux patch.

To make it clear: the patches are identical, I only create two different patch files to make it easier to apply them.

Jenna:
Just started a new thread with the patch(es) attached in the development forum: http://forums.codeblocks.org/index.php/topic,9966.0.html

Navigation

[0] Message Index

[#] Next page

Go to full version