FHIR Chat · Error building sample-ig · IG creation

Stream: IG creation

Topic: Error building sample-ig


view this post on Zulip Lee Surprenant (Apr 17 2020 at 15:27):

I just pull the latest version of https://github.com/FHIR/sample-ig, ran _updatePublisher.sh, and _genonce.sh and got the following:

Final .zip built                                                                 (00:43.0157)
context [anonymous] 2:13 attribute path isn't defined
context [anonymous] 2:13 attribute path isn't defined
context [anonymous] 2:13 attribute path isn't defined
context [anonymous] 2:13 attribute path isn't defined
Internal error in location for message: 'Error in ?? at 1, 1: Found / expecting a token name', loc = '/Users/lmsurpre/git/sample-ig/input/cql/notincluded.cql', err = 'CQL source was not associated with a library resource in the IG.'
Finished. 00:24.0863. Validation output in /Users/lmsurpre/git/sample-ig/output/qa.html
Errors: 8  Warnings: 2  Info: 4 (00:43.0429)
Done                                                                             (00:43.0430)

view this post on Zulip Lloyd McKenzie (Apr 17 2020 at 15:28):

@Grahame Grieve

view this post on Zulip Lee Surprenant (Apr 17 2020 at 15:28):

It still built the site, so I guess I'm just wondering if I should be worried about that "Internal error in location for message" bit

view this post on Zulip Lloyd McKenzie (Apr 17 2020 at 15:35):

At minimum, if it's something you need to fix, we should be spitting out a clearer error about what the problem is and where to fix it :)

view this post on Zulip Lee Surprenant (Apr 17 2020 at 16:01):

FWIW, the reason I went back to the sample is I'm trying to build an IG that I havn't touched in a while with the latest IG Publisher and getting this:

onLoad:
Publishing Content Failed: null                                                  (00:05.0197)
                                                                                 (00:05.0198)
Use -? to get command line help                                                  (00:05.0198)
                                                                                 (00:05.0198)
Stack Dump (for debugging):                                                      (00:05.0198)
java.lang.NullPointerException
    at org.hl7.fhir.igtools.publisher.IGPublisherLiquidTemplateServices.load(IGPublisherLiquidTemplateServices.java:47)
    at org.hl7.fhir.igtools.publisher.Publisher.initializeFromIg(Publisher.java:1326)
    at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1205)
    at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:660)
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:6933)

view this post on Zulip Grahame Grieve (Apr 17 2020 at 19:58):

that's a super-weird error. Do you have a path-liquid in your config.json? what does it say?

view this post on Zulip Grahame Grieve (Apr 17 2020 at 19:59):

Internal error in location for message: 'Error in ?? at 1, 1: Found / expecting a token name', loc = '/Users/lmsurpre/git/sample-ig/input/cql/notincluded.cql', err = 'CQL source was not associated with a library resource in the IG.'

it's there because it's an issue in the code that I need to fix - but I haven't figured out how to yet

view this post on Zulip Lee Surprenant (Apr 20 2020 at 04:02):

Grahame Grieve said:

that's a super-weird error. Do you have a path-liquid in your config.json? what does it say?

I don't have a config.json. This IG was created based on a previous version of the sample-ig and it uses ig.ini.
However, what I found is that I wasn't using the latest publisher. I thought I had updated it but apparently not. Once I was using the latest version of the publisher jar, this error went away.


Last updated: Apr 12 2022 at 19:14 UTC