ProjTemplates package bugs
Original Reporter info from Mantis: Stephano
-
Reporter name:
Original Reporter info from Mantis: Stephano
- Reporter name:
Description:
1- Setup a template project: Create a new project, change one of its compiler settings, save it (along with a suitable project.ini file) in a sub-directory of the templates directory (which is configured in Tools/Project Templates Options), fire up the IDE, and click on File/New Project From Template/MyTemplate.
2- Create a new project based on the template project above, name the project myproject and select a directory, then fill in any required variable values. Press OK and you will get a message dialog asking whether to open the project directory/myproject.lpi and be presented with 3 buttons: Open Project, Open as XML file, and Cancel. The only sane option is Cancel, especially that Open Project will lead to a Division by Zero exception. This message dialog should not appear at all.
3- At this stage, the project should have been either fully saved, or created as a virtual project (my guess is that it should be completely a virtual project, but as things are now, there will be newly created files in the project folder). Press the Save All button (it is enabled!) to save the project and get a message dialog: The project information file "directory/myproject.lpi" has changed on disk: Reopen Project, Ignore. You can chose Ignore. I have noticed that the lpi on disk had the template project's compiler options, but the IDE version had the IDE's project defaults, so ignore will lose these.
This behaviour may be due to one bug. This is why I created one report for the time being.
Lazarus 0.9.29 r28035 FPC 2.4.2 i386-linux-gtk 2
Mantis conversion info:
- Mantis ID: 17802
- Version: 0.9.29 (SVN)