[Lazarus] ProjTemplates package issues & bugs

patspiper patspiper at yahoo.com
Mon Nov 1 16:15:29 CET 2010


I have read about the ProjTemplates package on several occasions, 
especially that project templates could help set defaults for projects.

I created a project, saved it (along with a suitable project.ini file) 
in a sub-directory of the templates directory (which was configured in 
Tools/Project Templates Options), fired up the IDE, and clicked on 
File/New Project From Template/MyTemplate.

I named the project project3 and selected a directory, then clicked in 
the variable value grid cell. I could only type one character (BUG1). I 
had to click another time to be able to enter more than one character.

I pressed OK and got a message dialog asking me whether to open the 
project directory/project3.lpi (BUG2) and was 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.

At this stage, the project should have been either fully saved, or 
created as a virtual project (my guess is that it should be a virtual 
project, but there were newly created files in the project folder). I 
pressed the Save All button (it was enabled!) to save the project and 
got a message dialog: The project information file 
"directory/project3.lpi" has changed on disk (BUG3): Reopen Project, 
Ignore. I chose Ignore. I had noticed that the lpi on disk had the 
template project's compiler options, but the IDE version had the IDE's 
project defaults (BUG4), so ignore made me lose these.

Since I am not familiar with this package, I wanted to get some feedback 
before I report the bugs on mantis.




More information about the Lazarus mailing list