FHIR Chat · Missing ImplementationGuide JSON? · IG creation

Stream: IG creation

Topic: Missing ImplementationGuide JSON?


view this post on Zulip Josh Mandel (Oct 05 2021 at 21:57):

In the auto-build environment for SMART on FHIR I see:

    at org.hl7.fhir.igtools.publisher.Publisher.initializeFromIg(Publisher.java:1713)
    at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1530)
    at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:753)
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:8755)
Caused by: java.io.FileNotFoundException: /scratch/ig-build-temp-0SY7WL/repo/fsh-generated/resources/ImplementationGuide-hl7.fhir.uv.smart-app-launch.json (No such file or directory)
    at java.base/java.io.FileInputStream.open0(Native Method)
    at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
    at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
    at org.hl7.fhir.utilities.TextFile.fileToBytes(TextFile.java:199)
    at org.hl7.fhir.r4.formats.FormatUtilities.loadFile(FormatUtilities.java:168)
    at org.hl7.fhir.igtools.publisher.Publisher.initializeFromIg(Publisher.java:1710)
    ... 3 more

This builds locally when I run sushi before running the IG publisher. I'm not actually using any .fsh files or artifacts though. Is this a known issue, and any idea on how to debug?

view this post on Zulip Jose Costa Teixeira (Oct 05 2021 at 22:00):

Do you have an empty fsh folder? I think that used to cause issues

view this post on Zulip Jose Costa Teixeira (Oct 05 2021 at 22:00):

(because it runs sushi but sushi has nothing to process)

view this post on Zulip Josh Mandel (Oct 05 2021 at 22:15):

I think I need sushi to run in order to generate the fsh-generated/resources/ImplementationGuide-hl7.fhir.uv.smart-app-launch.json file, right?

view this post on Zulip Josh Mandel (Oct 05 2021 at 22:19):

(Locally if I clone https://github.com/hl7/smart-app-launch, I need to run sushi before running _genonce.sh. Is that a hint of some kind?)

view this post on Zulip Grahame Grieve (Oct 05 2021 at 23:18):

it is because that doesn't happen in the auto-builder. You need the IG publisher to run FSH for you

view this post on Zulip Josh Mandel (Oct 06 2021 at 00:53):

But what do I need to do to make the auto build succeed @Grahame Grieve ?

view this post on Zulip Josh Mandel (Oct 06 2021 at 01:32):

Eric has an answer for me:

Eric Haas: you need the add the input/fsh folder back in since if you don't Sushi puts the generated menu and IG resource in the wrong place.

view this post on Zulip Josh Mandel (Oct 06 2021 at 01:36):

Thanks, that does the trick.


Last updated: Apr 12 2022 at 19:14 UTC