Stream: IG creation
Topic: Jekyll Failure: Could not locate the included file...
Joee Garcia (Jul 17 2020 at 03:04):
SDC IG has a Questionnaire example that has a contained Bundle with id="PrePopQuery". This is causing the build exception below. Is this not allowed?
Here's the excerpt from the Questionnaire example:
"resourceType": "Questionnaire",
"id": "questionnaire-sdc-test-fhirpath-prepop-source-query",
"contained": [
{
"resourceType": "Bundle",
"id": "PrePopQuery",
"type": "batch",
"entry": [
{
"fullUrl": "urn:uuid:88f151c0-a954-468a-88bd-5ae15c08e059",
"request": {
"method": "GET",
"url": "Condition?patient={{%LaunchPatient.id}}&active=true"
}
},
{
"fullUrl": "urn:uuid:88f151c0-a954-468a-88bd-5ae15c08e060",
"request": {
"method": "GET",
"url": "MedicationStatement?patient={{%LaunchPatient.id}}&active=true"
}
}
]
}
],
And here's the build error:
onGenerate:
Generating Summary Outputs (00:47.0052)
Sending Usage Stats to Server (00:47.0397)
Jekyll: Source: /scratch/ig-build-temp-I283R8/repo/temp/pages (00:47.0788)
Jekyll: Generating... (00:47.0790)
Jekyll has failed. Complete output from running Jekyll: [31m Liquid Exception: Could not locate the included file 'Bundle-PrePopQuery-html.xhtml' in any of ["/scratch/ig-build-temp-I283R8/repo/temp/pages/_includes"]. Ensure it exists in one of those directories and, if it is a symlink, does not point outside (00:48.0029)
Note: Check that Jekyll is installed correctly (00:48.0029)
Publishing Content Failed: Process exited with an error: 1 (Exit value: 1) (00:48.0030)
(00:48.0030)
Use -? to get command line help (00:48.0030)
(00:48.0030)
Stack Dump (for debugging): (00:48.0030)
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:153)
at org.hl7.fhir.igtools.publisher.Publisher.runJekyll(Publisher.java:5371)
at org.hl7.fhir.igtools.publisher.Publisher.runTool(Publisher.java:5277)
at org.hl7.fhir.igtools.publisher.Publisher.generate(Publisher.java:4744)
at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:859)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:708)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:7815)
Grahame Grieve (Jul 17 2020 at 03:43):
that should be fine. Makes me think that there's an earlier error in the log you haven't shown
Lloyd McKenzie (Jul 17 2020 at 04:31):
@Grahame Grieve Why would there be a separate HTML file for a contained resource within an example? I don't think the templates support producing that?
Grahame Grieve (Jul 17 2020 at 05:43):
the templates do support it, and I do it so I can get the right template for the contained resource.
Lloyd McKenzie (Jul 17 2020 at 15:14):
It seems like there's a technical problem then - how does the 'template' know to generate an entry for the page in the ToC? How does section numbering work? Have you tested that this works with the current template?
Grahame Grieve (Jul 17 2020 at 21:10):
yes I tested it in the sample IG
Grahame Grieve (Jul 17 2020 at 21:10):
I didn't check section numbering though
Joee Garcia (Jul 18 2020 at 00:23):
@Grahame Grieve Here's the full build log: http://build.fhir.org/ig/HL7/sdc/branches/master/failure/build.log
Aside from an error in generating the QuestionnaireResponse snapshot, I don't see any error related to this.
Grahame Grieve (Jul 22 2020 at 05:25):
i think this must be a problem with the template somehow. It\ shouldn't be looking for Bundle-PrePopQuery-html.xhtml - it should be looking for Bundle-questionnaire-sdc-test-fhirpath-prepop-source-query_PrePopQuery-html.xhtml
Grahame Grieve (Jul 22 2020 at 05:31):
The include is found in the file Bundle-questionnaire-sdc-test-fhirpath-prepop-source-query_PrePopQuery.html, which is correct
Grahame Grieve (Jul 22 2020 at 05:31):
@Lloyd McKenzie
Last updated: Apr 12 2022 at 19:14 UTC