FHIR Chat · the file XXX is being generated more than once... · IG creation

Stream: IG creation

Topic: the file XXX is being generated more than once...


view this post on Zulip Carl Anderson (Jul 09 2020 at 20:29):

I saw this in my build failure log in the auto publisher just now.

...
Produce outputs for ImplementationGuide/hl7.fhir.smart-web-messaging             (00:20.0686)
Produce outputs for Patient/example                                              (00:20.0704)
Exception in thread "main" java.lang.Error: Error generating build: the file /scratch/ig-build-temp-7L7J02/repo/temp/icon-fhir-32.png is being generated more than once (may differ by case)
    at org.hl7.fhir.igtools.publisher.Publisher.checkMakeFile(Publisher.java:2854)
    at org.hl7.fhir.igtools.publisher.Publisher.generateHtmlOutputs(Publisher.java:6311)
    at org.hl7.fhir.igtools.publisher.Publisher.generate(Publisher.java:4691)
    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)

I also saw this other topic and suspect my issue is related, but I don't understand how to debug this.

Is there a workaround I can use for now?

view this post on Zulip Grahame Grieve (Jul 09 2020 at 20:49):

do you have that file in your source?

view this post on Zulip Carl Anderson (Jul 10 2020 at 16:29):

Yes, that was it. I have been using the publisher locally to generate the expected output, and that output was checked in to my repo. My ig.json then referenced the output in the paths.pages section. I have gotten the auto publisher to get further along by leaving the paths.pages section as an empty array.

view this post on Zulip Grahame Grieve (Jul 10 2020 at 20:17):

I'll count that as 'fixed'?

view this post on Zulip Carl Anderson (Jul 10 2020 at 20:21):

Yes, I was confused about how (and what) to feed the publisher.


Last updated: Apr 12 2022 at 19:14 UTC