When I close a workspace (workspace A) using "File->Close Workspace" and open another (workspace B), typically via the "Recent projects" links on the C::B front page, I find that my post build steps are sometimes not working properly. Below is an example specification of a post build step:
$cpde_usr -bin -xi -project=$(PROJECT_NAME) -root=$(PROJECT_DIR) -build=$(TARGET_NAME) -target=$(TARGET_OUTPUT_FILE) -usr=$(CPDE_USR)
The problem is that sometimes the $(PROJECT_NAME), $(PROJECT_DIR), $(TARGET_NAME) etc. variables of C::B keep their settings from the used-to-be-current project in the recently closed workspace A, i.e. they are NOT reassigned to the actually-current project in workspace B.
The work-around when this happens is to close/restart C::B and open workspace B, then all is fine in the build. Note that no changes have occurred in workspace B.
I am able to reproduce on my own workspaces like this:
This problem has been observed on Windows and Linux:
Windows: Nightly build 09 November 2015 build (10561) (svn 10595)
Linux: svn 10621
Diff:
Where is the C::B forum links, I suggetted add the link here.
This is the C::B forum link where this was first reported
http://forums.codeblocks.org/index.php/topic,20693.msg141913.html#msg141
The problem is observed on different workspaces/computers/os'es.
Works on recent versions