Stream: IG creation
Topic: Error with IGPub 3.4.0
Travis Stenerson (May 29 2018 at 20:17):
Error with publishing using most recent version, anyone have suggestions? Here's the last bit out the output
Jekyll: Generating... (00:01:39.0639sec) Jekyll: done in 12.699 seconds. (00:01:52.0338sec) Installing null-dev to the package cache Fetching:............|Publishing Content Failed: null (00:01:52.0631sec) (00:01:52.0634sec) Use -? to get command line help (00:01:52.0635sec) (00:01:52.0637sec) Stack Dump (for debugging): (00:01:52.0645sec) java.lang.NullPointerException at org.hl7.fhir.utilities.cache.PackageCacheManager.addPackageToCache(PackageCacheManager.java:269) at org.hl7.fhir.igtools.publisher.Publisher.generate(Publisher.java:2580) at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:509) at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:460) at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4493) Exception in thread "main" java.lang.NullPointerException at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4503)
Grahame Grieve (May 29 2018 at 20:21):
for some reason I am not sure, the error checking that's supposed to prevent this opaque error from happening has been removed.
Grahame Grieve (May 29 2018 at 20:21):
you need an npm-name to name the package you are creating in your config json file
Travis Stenerson (May 29 2018 at 20:22):
That might be.. is that new? What should the name be?
Grahame Grieve (May 29 2018 at 20:22):
it's not new but the requirement that it be present is new
Grahame Grieve (May 29 2018 at 20:23):
http://wiki.hl7.org/index.php?title=FHIR_NPM_Package_Spec#Package_name
Travis Stenerson (May 29 2018 at 20:23):
So hl7.fhir.core?
Grahame Grieve (May 29 2018 at 20:24):
no, you need your name. Are you working on an HSPC package? if so, the name will be fhir.hspc.xxx where xxx is a legal npm id for your package
Travis Stenerson (May 29 2018 at 20:25):
So I need a unique one for each IG I'm publishing locally?
Grahame Grieve (May 29 2018 at 20:26):
yes
Travis Stenerson (May 29 2018 at 20:27):
Great, thanks Grahame
Grahame Grieve (May 29 2018 at 20:29):
np
Eric Haas (May 29 2018 at 20:54):
as soon as get it to work can you share your ig.json cause I still can't seem to get my test build to work?
Grahame Grieve (May 29 2018 at 21:03):
are you getting the same error?
Eric Haas (May 29 2018 at 21:16):
same as above yes. will try again...
Grahame Grieve (May 29 2018 at 21:16):
you need an npm-name - if you have one, you should not get that error. And once the next build works, you should get a nice coherent error
Eric Haas (May 29 2018 at 21:52):
I downloaded the latest build,
ig-json snippet
"version": "3.4.0", ... "fixed-business-version": "0.0.0", "source": "ig.xml", "mappings": "true", "no-inactive-codes": "false", "dependencyList": [ { "source": "dependencies/uscore-vp", "location": "http://hl7.org/fhir/us/core", "name": "uscore", "version": "1.0.1" } ... "publisher": "Health eData Inc", "license": "CC0-1.0", "status": "draft", "canonicalBase": "http://www.fhir.org/guides/test3", "broken-links": "warning", "title": "IG-Test3", "npm-name": "healthedatainc.igtemplate2", ...
Error late in the build...
Jekyll: Source: /Users/ehaas/Documents/FHIR/IG-Template2/generated_output/temp (55.0203sec) Jekyll: Generating... (55.0203sec) Jekyll: done in 2.293 seconds. (57.0496sec) Publishing Content Failed: /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz (No such file or directory) (57.0606sec) (57.0606sec) Use -? to get command line help (57.0607sec) (57.0607sec) Stack Dump (for debugging): (57.0607sec) java.io.FileNotFoundException: /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz (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 java.io.FileInputStream.<init>(FileInputStream.java:93) at org.hl7.fhir.igtools.publisher.Publisher.generate(Publisher.java:2580) at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:509) at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:460) at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4493) Exception in thread "main" java.lang.NullPointerException at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4503) Erics-Air-2:IG-Template2 ehaas$
Grahame Grieve (May 29 2018 at 21:55):
is there a file in that location?
Eric Haas (May 29 2018 at 21:56):
nope ( am running on IOS)
Grahame Grieve (May 29 2018 at 21:56):
I hope you mean OSX
Grahame Grieve (May 29 2018 at 21:57):
clearly something is wrong in my head. That error is simply impossible
Grahame Grieve (May 29 2018 at 21:57):
unless java has some mode where creating a file at a location can report success, and then it simply doesn't exist a few microseconds later
Eric Haas (May 29 2018 at 21:59):
also did not see healthedata.igtemplate2 at ../.fhir/packages/
should it be?
Eric Haas (May 29 2018 at 22:00):
OSX yes
Grahame Grieve (May 29 2018 at 22:01):
it should be there, but it's failing to put it there because of this error, whatever it is
Grahame Grieve (May 29 2018 at 22:02):
ok just added another debug line to the build - wait for the next one, try again, and then send me the whole log.
Eric Haas (May 29 2018 at 22:05):
all the other zip files are gone as well, have they been rolled into the package?
Grahame Grieve (May 29 2018 at 22:06):
no the should still be produced
Grahame Grieve (May 29 2018 at 22:06):
but they aren't produced by partial builds
Grahame Grieve (May 30 2018 at 08:09):
I'm trying to run the IG publisher on OSX - but I can't get jekyll to run. I just get "Cannot run program "jekyll" (in directory xxx): error=2, No such file or directory
Grahame Grieve (May 30 2018 at 08:10):
but I can run it from the terminal, and I added the recommended path to /etc/paths.... so I don't know OSX well enough to know what to do next
Grahame Grieve (May 30 2018 at 08:14):
I appreciate that there's a certain amount of irony here...
Jose Costa Teixeira (May 30 2018 at 10:04):
Just to report that I had it working last week - i added the package name. But now it is not working anymore, i have the same issue
Travis Stenerson (May 30 2018 at 14:03):
Just to update. I just made up a name and added the npm-name field to my build file and it worked. I'm on windows. Thanks.
Grahame Grieve (May 30 2018 at 14:03):
yes, well, I have a file that is magically disappearing on unix.
Eric Haas (May 30 2018 at 15:19):
@Grahame Grieve here is the log file after downloading the latest ig-pub (still no tgz file found) logfille.txt
Grahame Grieve (May 30 2018 at 19:55):
ok thanks.
Grahame Grieve (May 30 2018 at 19:55):
doing another build now with more debugging
Grahame Grieve (May 30 2018 at 21:54):
ok sorted
Grahame Grieve (May 30 2018 at 21:55):
all builds should be good now if you have an npm-name. And if you don't, you should get a nice coherent error message. Sorry for all this, but I never figured out how I could create a file, and then not be able to find it... I've just change to build the structure in memory not on the disk, and just save it once
Eric Haas (May 30 2018 at 23:14):
@Grahame Grieve a OK latest build is working.
but I am getting this on -watch
Jekyll: Source: /Users/ehaas/Documents/FHIR/IG-Template2/generated_output/temp (00:01:01.0186sec) Jekyll: Generating... (00:01:01.0186sec) Jekyll: done in 2.572 seconds. (00:01:03.0758sec) Installing healthedatainc.ig-Template2-dev to the package cache Fetching:| Analysing done. Checking Output HTML (00:01:04.0351sec) found 300 files ... 300 html files, 0 pages invalid xhtml (0%) (00:01:06.0033sec) ... 6064 links, 5 broken links (0%) (00:01:06.0033sec) Build final .zip (00:01:06.0033sec) Final .zip built (00:01:06.0802sec) Finished. 26.0005. Validation output in /Users/ehaas/Documents/FHIR/IG-Template2/docs/qa.html Errors: 26 Warnings: 2 Info: 0 (00:01:07.0337sec) Checking on package: the file /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz exists = true (00:01:07.0338sec) Watching for changes on a 5sec cycle create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz create package file at /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz ....
PS I will need a package name for VhDir
Grahame Grieve (May 31 2018 at 22:59):
package name for vhdir = hl7.core.uv.vhdir
Eric Haas (Jun 01 2018 at 00:31):
thanks, have you had a chance to look at the -watch bug. (see screen shot) that line appears every couple of seconds?
Last updated: Apr 12 2022 at 19:14 UTC