FHIR Chat · HL7 IG Tempalte missing config.json · IG creation

Stream: IG creation

Topic: HL7 IG Tempalte missing config.json


view this post on Zulip Nagesh Bashyam (Dec 04 2019 at 20:37):

Hello,
When I run the latest publisher on the https://github.com/HL7/davinci-atr IG, I get an error pointing to a config.json missing file.
If this file is required, should it not download it automatically everytime because we only reference the template, but do not change it..

Any ideas on what may be happening ? The error is listed below.

Load Template from hl7.fhir.template (00:05.0205)
Publishing Content Failed: /Users/nbashyam/git/davinci-atr/template/config.json (No such file or directory) (00:05.0766)
(00:05.0767)
Use -? to get command line help (00:05.0767)
(00:05.0767)
Stack Dump (for debugging): (00:05.0767)
java.io.FileNotFoundException: /Users/nbashyam/git/davinci-atr/template/config.json (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at org.hl7.fhir.utilities.TextFile.fileToString(TextFile.java:166)
at org.hl7.fhir.utilities.json.JsonTrackingParser.parseJsonFile(JsonTrackingParser.java:362)
at org.hl7.fhir.igtools.templates.Template.<init>(Template.java:108)
at org.hl7.fhir.igtools.templates.TemplateManager.loadTemplate(TemplateManager.java:77)
at org.hl7.fhir.igtools.templates.TemplateManager.loadTemplate(TemplateManager.java:55)
at org.hl7.fhir.igtools.publisher.Publisher.initializeFromIg(Publisher.java:1215)
at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1159)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:650)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:6637)

view this post on Zulip Grahame Grieve (Dec 04 2019 at 20:47):

I'll have a look shortly.

view this post on Zulip Lloyd McKenzie (Dec 04 2019 at 22:34):

It's downloading the base template but not the HL7 one - and is wiping the template folder instead. Digging into why/how

view this post on Zulip Grahame Grieve (Dec 04 2019 at 22:34):

nah that will be my error, I think. You have a file in the root of the package... now illegal

view this post on Zulip Lloyd McKenzie (Dec 04 2019 at 22:58):

I thought you said there'd be no impact on the IG Templates from that change?

view this post on Zulip Grahame Grieve (Dec 04 2019 at 23:10):

well, there's been a looong string of changes I hadn't imagined

view this post on Zulip Grahame Grieve (Dec 05 2019 at 01:55):

ok try again

view this post on Zulip Jose Costa Teixeira (Dec 05 2019 at 07:13):

I'm also getting this.

view this post on Zulip Jose Costa Teixeira (Dec 05 2019 at 07:13):

Stack Dump (for debugging):                                                      (00:04.0228)
java.io.FileNotFoundException: C:\ImplementationGuides\be-core\template\config.json (The system cannot find the file specified)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at org.hl7.fhir.utilities.TextFile.fileToString(TextFile.java:166)
        at org.hl7.fhir.utilities.json.JsonTrackingParser.parseJsonFile(JsonTrackingParser.java:362)
        at org.hl7.fhir.igtools.templates.Template.<init>(Template.java:109)
        at org.hl7.fhir.igtools.templates.TemplateManager.loadTemplate(TemplateManager.java:77)
        at org.hl7.fhir.igtools.templates.TemplateManager.loadTemplate(TemplateManager.java:55)
        at org.hl7.fhir.igtools.publisher.Publisher.initializeFromIg(Publisher.java:1217)
        at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1159)
        at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:650)
        at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:6642)

view this post on Zulip Grahame Grieve (Dec 05 2019 at 07:14):

where are you getting this? local? or ci-build?

view this post on Zulip Jose Costa Teixeira (Dec 05 2019 at 07:14):

local

view this post on Zulip Grahame Grieve (Dec 05 2019 at 07:14):

what happens if you delete everything in your package cache?

view this post on Zulip Grahame Grieve (Dec 05 2019 at 07:15):

I'm clutching at straws here... I can 't reproduce this, but the ci-build is totally broken

view this post on Zulip Jose Costa Teixeira (Dec 05 2019 at 07:18):

ok i deleted everything

view this post on Zulip Jose Costa Teixeira (Dec 05 2019 at 07:18):

publisher is now getting all new packages

view this post on Zulip Jose Costa Teixeira (Dec 05 2019 at 07:19):

ok, so it seems to be broken on my "old" problem, Exception in thread "main" java.lang.Error: type on first differential element!

view this post on Zulip Jose Costa Teixeira (Dec 05 2019 at 07:19):

I'm going to try with the sample IG but I bet it works now

view this post on Zulip Jose Costa Teixeira (Dec 05 2019 at 07:25):

yep, now it works

view this post on Zulip Grahame Grieve (Dec 05 2019 at 07:25):

good

view this post on Zulip Jose Costa Teixeira (Dec 05 2019 at 08:00):

ok I also fixed my template accordingly, also works. thanks

view this post on Zulip Kevin Mayfield (Dec 05 2019 at 08:27):

Update publisher this morning and got this. Deleted template and temp folders no difference.
CI build seems to be working

view this post on Zulip Kevin Mayfield (Dec 05 2019 at 08:28):

Yep, CI build test was successful.

view this post on Zulip Jose Costa Teixeira (Dec 05 2019 at 09:17):

You have to delete your local fhir package cache

view this post on Zulip Jose Costa Teixeira (Dec 05 2019 at 09:19):

Not the template and temp folders, but the user cache

view this post on Zulip Noemi Deppenwiese (Dec 05 2019 at 09:22):

Same Error (missing config.json in template folder) here, and unfortunately deleting the .fhir folder did not fix it...

view this post on Zulip Grahame Grieve (Dec 05 2019 at 09:27):

you also need the latest code. The problem is that some version of the IG publisher copied the content into the cache incorrectly

view this post on Zulip Noemi Deppenwiese (Dec 05 2019 at 09:30):

I used the updatePublisher script to get the latest version... It says "FHIR IG Publisher Version 1.0.13-SNAPSHOT - Built 2019-12-05T18:14:08.782+11:00 - Git 3919442fe493"

view this post on Zulip Grahame Grieve (Dec 05 2019 at 09:35):

ok what's your log?

view this post on Zulip Kevin Mayfield (Dec 05 2019 at 09:36):

Removing .fhir (in my user directory) folder fixed for me

view this post on Zulip Noemi Deppenwiese (Dec 05 2019 at 09:37):

Load Template from C:\Users\deppenni\MII\miracum-ig\miracumTemplate              (00:02.0286)
Load Package from C:\Users\deppenni\MII\miracum-ig\miracumTemplate
  see C:\Users\deppenni\MII\miracum-ig\miracumTemplate\package as package
Debug Dump of Package for 'template'. Path = null
  npm = org.miracum.template#0.0.1, canonical = null
  folders = 1
    package (C:\Users\deppenni\MII\miracum-ig\miracumTemplate\package) | true | 0 | 0
Publishing Content Failed: C:\Users\deppenni\MII\miracum-ig\template\config.json (Das System kann die angegebene Datei nicht finden) (00:02.0314)
                                                                                 (00:02.0314)
Use -? to get command line help                                                  (00:02.0314)
                                                                                 (00:02.0315)
Stack Dump (for debugging):                                                      (00:02.0315)
java.io.FileNotFoundException: C:\Users\deppenni\MII\miracum-ig\template\config.json (Das System kann die angegebene Datei nicht finden)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:195)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at org.hl7.fhir.utilities.TextFile.fileToString(TextFile.java:166)
        at org.hl7.fhir.utilities.json.JsonTrackingParser.parseJsonFile(JsonTrackingParser.java:362)
        at org.hl7.fhir.igtools.templates.Template.<init>(Template.java:109)
        at org.hl7.fhir.igtools.templates.TemplateManager.loadTemplate(TemplateManager.java:77)
        at org.hl7.fhir.igtools.templates.TemplateManager.loadTemplate(TemplateManager.java:55)
        at org.hl7.fhir.igtools.publisher.Publisher.initializeFromIg(Publisher.java:1217)
        at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1159)
        at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:650)
        at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:6642)

view this post on Zulip Grahame Grieve (Dec 05 2019 at 09:40):

well, in your case the problem template is in C:\Users\deppenni\MII\miracum-ig\template not your .fhir directory. I'm not sure what that is

view this post on Zulip Noemi Deppenwiese (Dec 05 2019 at 09:43):

I'm trying to use a custom template located under miracum-ig\miracumTemplate\. The publisher does not find the config.json in the miracum-ig\template folder. I assume this folder should contain the base template (in my case "fhir.base.template":"0.0.1")

view this post on Zulip Noemi Deppenwiese (Dec 05 2019 at 09:43):

But /template only contains an empty package folder.

view this post on Zulip Grahame Grieve (Dec 05 2019 at 09:47):

well, it contains whatever you put in there?

view this post on Zulip Noemi Deppenwiese (Dec 05 2019 at 09:50):

I assumed the Publisher would automatically resolve the dependencies my template declares? And since it is based on fhir.base.template, this would be downloaded into the template folder?

view this post on Zulip Grahame Grieve (Dec 05 2019 at 09:52):

hmm maybe that should happen

view this post on Zulip Nagesh Bashyam (Dec 05 2019 at 19:16):

With the latest publisher and removing the .fhir package and retrying it works.
Thanks @Grahame Grieve


Last updated: Apr 12 2022 at 19:14 UTC