FHIR Chat · New Publishing · IG creation

Stream: IG creation

Topic: New Publishing


view this post on Zulip Grahame Grieve (Apr 22 2019 at 21:14):

ok, I just committed my easter project: a new version of the IG publisher that publishes with no ig.json file, and uses a template.

view this post on Zulip Grahame Grieve (Apr 22 2019 at 21:14):

It's not part of the build process yet - you have to build it locally if you want to play with it

view this post on Zulip Chris Moesel (Apr 23 2019 at 15:58):

Woah. Sounds good! Is there documentation I can look at so I understand the requirements for constructing a package that will work with this? IIRC, the ig.json is replaced by the ig.xml and package-list.json (I think), but I'm not familiar with what you mean by "uses a template" and how I leverage that.

view this post on Zulip Grahame Grieve (Apr 23 2019 at 20:02):

no doco yet. my next task

view this post on Zulip Richard Townley-O'Neill (Apr 23 2019 at 23:32):

It does work just like the old one if you have a .json file. :grinning:

view this post on Zulip Eric Haas (Apr 25 2019 at 17:50):

what is the cut over date(s)?

We need that for our planning

view this post on Zulip David Pyke (Apr 25 2019 at 17:51):

Hopefully a few months after complete documentation is in place

view this post on Zulip Brett Marquard (Apr 25 2019 at 17:51):

we wrapped up US core ballot reconciliation for the Jan ballot today and are working to implement with target publish end of May early June!

view this post on Zulip Lloyd McKenzie (Apr 25 2019 at 17:52):

First we need to get a template that works and we agree on. I don't think we can achieve that and get cutover before the summer round of ballots - it's just getting too close, particularly for the early da vinci ballots.

view this post on Zulip Lloyd McKenzie (Apr 25 2019 at 17:53):

I'm hoping we can use one of the evening sessions in Montreal to talk about IG look and feel.

view this post on Zulip Rick Geimer (Apr 25 2019 at 18:22):

@Grahame Grieve Seems like the new publisher is broken. The Da Vinci HRex (aka ehrx) used to work, now crashing with an NPE:

Generating Summary Outputs (39.0600sec)
Publishing Content Failed: null (39.0794sec)
(39.0794sec)
Use -? to get command line help (39.0794sec)
(39.0794sec)
Stack Dump (for debugging): (39.0794sec)
java.lang.NullPointerException
at org.hl7.fhir.igtools.publisher.Publisher.templateBeforeJekyll(Publisher.java:2441)
at org.hl7.fhir.igtools.publisher.Publisher.generate(Publisher.java:3518)
at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:718)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:597)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:5677)
Exception in thread "main" java.lang.NullPointerException
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:5687)

view this post on Zulip Grahame Grieve (Apr 25 2019 at 20:21):

whoops - copy paste error. Doing a new release now

view this post on Zulip Grahame Grieve (Apr 25 2019 at 21:02):

@Rick Geimer try again

view this post on Zulip Sean McIlvenna (Apr 25 2019 at 21:44):

Right now sarah and I are getting the following error:
Error: Could not find or load main class org.hl7.fhir.igtools.publisher.Publisher

view this post on Zulip Sean McIlvenna (Apr 25 2019 at 21:44):

@Grahame Grieve

view this post on Zulip Sean McIlvenna (Apr 25 2019 at 21:44):

@Sarah Gaunt

view this post on Zulip Grahame Grieve (Apr 25 2019 at 21:47):

how are you running the IG Publisher?

view this post on Zulip Grahame Grieve (Apr 25 2019 at 21:52):

@Chris Moesel we are making 2 different changes (that are a intertwined):

  • replacing ig.json with a pure ImplementationGuide driven approach
  • splitting the IG into content and template

Documenting this is ongoing. Documentation for templates is here: http://wiki.hl7.org/index.php?title=FHIR_IG_publisher_templates.

view this post on Zulip Grahame Grieve (Apr 25 2019 at 21:53):

the basic idea is that you just provide the pages you want, and the resources you want, and the template deals with all the mucky html issues

view this post on Zulip Sean McIlvenna (Apr 25 2019 at 22:38):

just trying to even run the gui

view this post on Zulip Sean McIlvenna (Apr 25 2019 at 22:39):

"java -jar org.hl7....igpublisher.jar" fails immediately

view this post on Zulip Grahame Grieve (Apr 25 2019 at 23:00):

which igpublisher are you using?

view this post on Zulip Sean McIlvenna (Apr 26 2019 at 19:37):

the latest from build.fhir.org

view this post on Zulip Sean McIlvenna (Apr 26 2019 at 19:37):

I haven't tried yet, today

view this post on Zulip Sean McIlvenna (Apr 26 2019 at 19:37):

I'll try now

view this post on Zulip Sean McIlvenna (Apr 26 2019 at 20:05):

ok... the ig publisher seems to be working again

view this post on Zulip Sean McIlvenna (Apr 26 2019 at 20:05):

however, the download url has changed, now

view this post on Zulip Sean McIlvenna (Apr 26 2019 at 20:08):

but, that's ok.. it's working

view this post on Zulip Grahame Grieve (Apr 26 2019 at 20:13):

right. I changed the download URL

view this post on Zulip Eric Haas (Apr 26 2019 at 23:08):

trying to load with a bash and getting error...anybody (@Josh Mandel ÷) able to share a script? (I used curl as in:
curl https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.hl7.fhir.publisher&a=org.hl7.fhir.publisher.cli&v=LATEST&e=jar -o /Users/ehaas/Downloads/org.hl7.fhir.igpublisher.jar1)

view this post on Zulip Josh Mandel (Apr 26 2019 at 23:14):

What err are you getting?

view this post on Zulip Eric Haas (Apr 26 2019 at 23:17):

 <html>
  <head>
    <title>400 - Bad Request</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>


    <link rel="icon" type="image/png" href="https://oss.sonatype.org/favicon.png">
    <!--[if IE]>
    <link rel="SHORTCUT ICON" href="https://oss.sonatype.org/favicon.ico"/>
    <![endif]-->

    <link rel="stylesheet" href="https://oss.sonatype.org/static/css/Sonatype-content.css?2.14.13-01" type="text/css" media="screen" title="no title" charset="utf-8">
  </head>
  <body>
    <h1>400 - Bad Request</h1>
    <p>The request could not be understood by the server due to malformed syntax</p>
  </body>
</html>

view this post on Zulip Eric Haas (Apr 26 2019 at 23:17):

tried it with url encodibg and got nothing

view this post on Zulip Eric Haas (Apr 26 2019 at 23:19):

Could not resolve host: https%3A%2F%2Foss.sonatype.org%2Fservice%2Flocal%2Fartifact%2Fmaven%2Fredirect%3Fr%3Dsnapshots%26g%3Dorg.hl7.fhir.publisher%26a%3Dorg.hl7.fhir.publisher.cli%26v%3DLATEST%26e%3Djar

view this post on Zulip Eric Haas (Apr 26 2019 at 23:31):

OK I fixed that with

curl -v -G https://oss.sonatype.org/service/local/artifact/maven/redirect --data-urlencode "r=snapshots" --data-urlencode "g=org.hl7.fhir.publisher" --data-urlencode "a=org.hl7.fhir.publisher.cli" --data-urlencode "v=LATEST" --data-urlencode "e=jar" -o /Users/ehaas/Downloads/org.hl7.fhir.igpublisher.jar

view this post on Zulip Eric Haas (Apr 26 2019 at 23:32):

but now I get: Error: Invalid or corrupt jarfile /Users/ehaas/Downloads/org.hl7.fhir.igpublisher.jar because I am only getting 243 bytes of data?

view this post on Zulip Eric Haas (Apr 27 2019 at 00:00):

Since able to download from browser - eventually solved by using Google's "copy to curl" in the develper's window. not pretty but effective.

view this post on Zulip Sean McIlvenna (Apr 29 2019 at 06:18):

oddly... i've had some troubles downloading in chrome occasionally

view this post on Zulip Sean McIlvenna (Apr 29 2019 at 06:18):

it gets all the way to the end, but never finishes

view this post on Zulip Sean McIlvenna (Apr 29 2019 at 06:18):

no idea why... it's gotta be my machine. maybe time for a reboot

view this post on Zulip Sean McIlvenna (Apr 29 2019 at 06:18):

*some troubles downloading the IG Publisher... I should have clarified

view this post on Zulip Chris Moesel (Apr 29 2019 at 12:55):

@Eric Haas -- I didn't try curl but this wget command seems to work: wget "http://oss.sonatype.org/service/local/artifact/maven/content?r=snapshots&g=org.hl7.fhir.publisher&a=org.hl7.fhir.publisher.cli&v=LATEST" --content-disposition

view this post on Zulip Chris Moesel (Apr 29 2019 at 12:56):

From: https://support.sonatype.com/hc/en-us/articles/213465488-How-can-I-retrieve-a-snapshot-if-I-don-t-know-the-exact-filename-

view this post on Zulip Eric Haas (Apr 29 2019 at 15:26):

I got curl to work too. thanks

view this post on Zulip Sean McIlvenna (Apr 29 2019 at 17:09):

@Rick Geimer and I are both having troubles downloading the FHIR IG publisher from build.fhir.org's downloads. It seems to be a problem with the oss.sonatype.org service. For me, it gets to 100% downloaded, but never FULLY finishes; the never-ending progress bar. For @Rick Geimer , it doesn't ever even START to download. It just keeps saying "waiting for oss.sonatype.org". Has anyone else experienced this, or know what's going on?

view this post on Zulip Eric Haas (Apr 29 2019 at 17:12):

I am getting it all :

pasted image

view this post on Zulip Eric Haas (Apr 29 2019 at 17:12):

but I the watch mode is looping endlessly when I run

view this post on Zulip Sean McIlvenna (Apr 29 2019 at 17:12):

Can you try downloading it from a browser, such as chrome?

view this post on Zulip Sean McIlvenna (Apr 29 2019 at 17:13):

... just curious

view this post on Zulip Eric Haas (Apr 29 2019 at 17:14):

Yes . That is how I scraped curl from the developer's console

view this post on Zulip Sean McIlvenna (Apr 29 2019 at 17:14):

oh ok

view this post on Zulip Sean McIlvenna (Apr 29 2019 at 17:14):

well, dangit

view this post on Zulip Sean McIlvenna (Apr 29 2019 at 17:14):

wonder if it's a US west-coast issue...

view this post on Zulip Eric Haas (Apr 29 2019 at 17:19):

I'm in SF Bay Area?

view this post on Zulip Sean McIlvenna (Apr 29 2019 at 18:13):

hmmm... odd. it took 45 minutes for rick's to finish

view this post on Zulip Sean McIlvenna (Apr 29 2019 at 18:14):

he's definitely not on dial-up :)

view this post on Zulip Grahame Grieve (Apr 30 2019 at 07:18):

it's certainly odd. Since it's generic infrastructure, does google help?


Last updated: Apr 12 2022 at 19:14 UTC