Intent.Modules icon indicating copy to clipboard operation
Intent.Modules copied to clipboard

PreProcessor gives errors with include directives

Open dandrejvv opened this issue 4 years ago • 1 comments

Simptom

image

This is encountered in the Module Builder for Intent Architect 2.0+

Issue 1

This is caused because the TemplateGenerator used in the PreProcessor templates are returning nulls and is not taking the Error property into account.

Issue 2

The errors that are encountered are: image

image

Underlying problem

This is because my T4 template has an include directive to include a ttinclude file which it doesn't seem to recognize for some reason. Perhaps its because it doesn't have any paths set in the IncludePaths property. image

Workaround

The workaround for now is to turn off the PreProcessor templates.

dandrejvv avatar Apr 03 '20 08:04 dandrejvv

I suppose this template can be setup to run only once since its primary purpose is to run the TemplateGenerator on creation of the template and doesn't need to run at all after that. So one could do a File exists check on execution.

dandrejvv avatar Apr 03 '20 09:04 dandrejvv