-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use common filters in custom templates #310
Comments
Huh. I have this use case covered in the test suites. Let me take peek... |
Confirmed. Looking into the issue now... |
fyi, the bug is in the serialization code generator. If you use |
Found one bug related: support loaders shouldn't use the external template path as "support" == "internal" in Nunavut. Because of this the loaders are getting confused about duplicate A plausible albeit ugly patch to fix that bug:
|
Confirmed, this fixes it. This is actually excellent news for my use case. I need to use the default templates once, then use my templates for some auxiliary things (which do not include serialization). Thanks for looking into this! |
Closing as this is fixed by #311 (2.1.1). |
(Copied from original forum post here.)
I intended to write my own templates for C generation, so I went ahead and copied the contents of
lang/c/templates
to a new directory. Before attempting to modify them, I tried to generate C headers with these new templates. The command I am running is as follows (I am testing with thepublic_regulated_data_types
):If I simply remove
--templates
, all is well and it generates normally. However, after adding the template directory, I get the following:What am I missing? I can't seem to make this work at all. The documentation suggests that I should be able to use these just fine.
The text was updated successfully, but these errors were encountered: