Skip to content
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

Have fhicl-expand print markings for start and end of inclusion #2

Open
knoepfel opened this issue Oct 28, 2021 · 0 comments
Open

Have fhicl-expand print markings for start and end of inclusion #2

knoepfel opened this issue Oct 28, 2021 · 0 comments
Labels
feature An enhancement to the project

Comments

@knoepfel
Copy link
Contributor

This issue has been migrated from https://cdcvs.fnal.gov/redmine/issues/17933 (FNAL account required)
Originally created by @PetrilloAtWork on 2017-10-17 17:00:13


The fhicl-expand utility expands inline the #include directives, but it does not say it's doing it.
When debugging some problem, that information might be useful. For example, in the case illustrated in Redmine issue 17893, it would allow to quickly know what file included the FHiCL file in the error message.
This is a request for an option --annotate-include (better name welcome) which would have fhicl-expand insert in the expansion annotations like:

### fhicl-expand: including "/path/to/include1.fcl" from "master.fcl" line 2

and

### fhicl-expand: end of included "/path/to/include1.fcl"

Note that in the use case in Redmine issue 17893, fhicl-dump would not help since it fails parsing and just prints an error message.

@knoepfel knoepfel added the feature An enhancement to the project label Oct 28, 2021
@knoepfel knoepfel added this to Issues Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature An enhancement to the project
Projects
Status: No status
Development

No branches or pull requests

1 participant