Stream: IG creation
Topic: New Publishing
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.
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
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.
Grahame Grieve (Apr 23 2019 at 20:02):
no doco yet. my next task
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:
Eric Haas (Apr 25 2019 at 17:50):
what is the cut over date(s)?
We need that for our planning
David Pyke (Apr 25 2019 at 17:51):
Hopefully a few months after complete documentation is in place
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!
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.
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.
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)
Grahame Grieve (Apr 25 2019 at 20:21):
whoops - copy paste error. Doing a new release now
Grahame Grieve (Apr 25 2019 at 21:02):
@Rick Geimer try again
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
Sean McIlvenna (Apr 25 2019 at 21:44):
@Grahame Grieve
Sean McIlvenna (Apr 25 2019 at 21:44):
@Sarah Gaunt
Grahame Grieve (Apr 25 2019 at 21:47):
how are you running the IG Publisher?
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.
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
Sean McIlvenna (Apr 25 2019 at 22:38):
just trying to even run the gui
Sean McIlvenna (Apr 25 2019 at 22:39):
"java -jar org.hl7....igpublisher.jar" fails immediately
Grahame Grieve (Apr 25 2019 at 23:00):
which igpublisher are you using?
Sean McIlvenna (Apr 26 2019 at 19:37):
the latest from build.fhir.org
Sean McIlvenna (Apr 26 2019 at 19:37):
I haven't tried yet, today
Sean McIlvenna (Apr 26 2019 at 19:37):
I'll try now
Sean McIlvenna (Apr 26 2019 at 20:05):
ok... the ig publisher seems to be working again
Sean McIlvenna (Apr 26 2019 at 20:05):
however, the download url has changed, now
Sean McIlvenna (Apr 26 2019 at 20:08):
but, that's ok.. it's working
Grahame Grieve (Apr 26 2019 at 20:13):
right. I changed the download URL
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
)
Josh Mandel (Apr 26 2019 at 23:14):
What err are you getting?
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>
Eric Haas (Apr 26 2019 at 23:17):
tried it with url encodibg and got nothing
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
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
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?
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.
Sean McIlvenna (Apr 29 2019 at 06:18):
oddly... i've had some troubles downloading in chrome occasionally
Sean McIlvenna (Apr 29 2019 at 06:18):
it gets all the way to the end, but never finishes
Sean McIlvenna (Apr 29 2019 at 06:18):
no idea why... it's gotta be my machine. maybe time for a reboot
Sean McIlvenna (Apr 29 2019 at 06:18):
*some troubles downloading the IG Publisher... I should have clarified
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
Chris Moesel (Apr 29 2019 at 12:56):
Eric Haas (Apr 29 2019 at 15:26):
I got curl to work too. thanks
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?
Eric Haas (Apr 29 2019 at 17:12):
I am getting it all :
Eric Haas (Apr 29 2019 at 17:12):
but I the watch mode is looping endlessly when I run
Sean McIlvenna (Apr 29 2019 at 17:12):
Can you try downloading it from a browser, such as chrome?
Sean McIlvenna (Apr 29 2019 at 17:13):
... just curious
Eric Haas (Apr 29 2019 at 17:14):
Yes . That is how I scraped curl from the developer's console
Sean McIlvenna (Apr 29 2019 at 17:14):
oh ok
Sean McIlvenna (Apr 29 2019 at 17:14):
well, dangit
Sean McIlvenna (Apr 29 2019 at 17:14):
wonder if it's a US west-coast issue...
Eric Haas (Apr 29 2019 at 17:19):
I'm in SF Bay Area?
Sean McIlvenna (Apr 29 2019 at 18:13):
hmmm... odd. it took 45 minutes for rick's to finish
Sean McIlvenna (Apr 29 2019 at 18:14):
he's definitely not on dial-up :)
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