Custom templates overwriting each other

Discussion about CodeLite development process and patches
Fred
CodeLite Enthusiast
Posts: 43
Joined: Mon Jul 02, 2012 12:53 pm
Genuine User: Yes
IDE Question: C++
Contact:

Custom templates overwriting each other

Post by Fred »

Hello,
thank you for providing CodeLite!
I installed Codelite 12.0.0 on D:\ProgramFiles\Codelite on Windows 10.
Created 3 workspaces and a project in each workspace.
Then I saved each project as a custom template.
All templates are stored together in a single directory: %APPDATA%\codelite\templates\projects,
and source code files with the same name are overwritten :-(
Each project template files should be in a separate subdirectory, as it is designed for the built-in templates.
As a workaround I created subdirs in D:\ProgramFiles\Codelite\templates\projects and copied the project file, my source code files, and an icon.png to each.
Thanks for your work,
Fred
Fred
CodeLite Enthusiast
Posts: 43
Joined: Mon Jul 02, 2012 12:53 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Custom templates overwriting each other

Post by Fred »

Update:
It also works as a workaround to create a subdir in %APPDATA%\codelite\templates\projects with the name of the project and move the files from %APPDATA%\codelite\templates\projects to this subdir. This template also shows up in the Codelite list of the templates.
This has to be done after each creating of a template before creating the next.
Greetings,
Fred
Post Reply