[Bug 76800] New: variables are replaced in source file templates
Georg Baum
georg.baum at post.rwth-aachen.de
Fri Mar 5 09:21:02 UTC 2004
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=76800
Summary: variables are replaced in source file templates
Product: kdevelop
Version: 3.0.1
Platform: SuSE RPMs
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: kdevelop-devel kdevelop org
ReportedBy: georg.baum post rwth-aachen de
Version: 3.0.1 (using KDE 3.1.1)
Installed from: SuSE
Compiler: gcc version 3.3 20030226 (prerelease) (SuSE Linux)
OS: Linux (i686) release 2.4.20-4GB-athlon
Create a new project (in my case qmake hello world, but I guess this is independent of the type). When the wizard presents the .h and .cpp templates, enter some variables: $MODULE$, $AUTHOR$ and $YEAR$ in my case. Finish the new project. Then look at the generated templates: $MODULE$ is still there, but $AUTHOR$ and $YEAR$ are replaced by my name and the current year.
This is wrong: All variables should be replaced when a new file is created from the template, and not when the template is created. After all, this is the purpose of the variables, and you can't know in advance when a new file will be created, nor in a multi developer project who will do this.
More information about the KDevelop-devel
mailing list