Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: nfactorial on September 11, 2003, 12:55:28 pm

Title: Bug: Missing filename...
Post by: nfactorial on September 11, 2003, 12:55:28 pm
Bug report:

I created a new class and pressed CTRL+G within the editor (C++ code export), followed by return to generate the class code (Generate is the default selected button on the dialog).

Enterprise Architect prompted me for a filename, which I gave.

The sourcefile was generated, however the %fileName% macros within the 'File' and 'FileImpl' code templates evaluated to an empty string.

Deleting the generated files and re-exporting them corrected the problem (I'd guess the source files are generated in a memory buffer before being written to the file (or before validating there is a filename)?).

Thanks
n!