Stream: hapi
Topic: Compile problem FHIR core branch
Grahame Grieve (Sep 19 2019 at 11:20):
@James Agnew I am mystified by a compile failure I'm getting in the Main FHIR build
Grahame Grieve (Sep 19 2019 at 11:20):
[javac] Compiling 135 source files to C:\work\org.hl7.fhir\build\tools\java\org.hl7.fhir.tools.core\bin [javac] warning: [options] bootstrap class path not set in conjunction with -source 8 [javac] C:\work\org.hl7.fhir\build\tools\java\org.hl7.fhir.tools.core\src\org\hl7\fhir\tools\publisher\PageProcessor.java:163: error: cannot find symbol [javac] import org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship; [javac] ^ [javac] symbol: class ConceptMapRelationship [javac] location: class Enumerations
Grahame Grieve (Sep 19 2019 at 11:21):
but the class it's looking for is in the r5 jar on the path:
Grahame Grieve (Sep 19 2019 at 11:21):
Grahame Grieve (Sep 19 2019 at 11:22):
so I cannot understand why this compile failure happens. I can't find any other r5 jars on the path, and I can't imagine why there would be anyway
Grahame Grieve (Sep 19 2019 at 11:23):
if you want to reproduce this, it's the conceptmap-updates-rh branch
James Agnew (Sep 19 2019 at 12:13):
Starting a build of that branch now
Grahame Grieve (Sep 19 2019 at 12:15):
thanks
James Agnew (Sep 19 2019 at 12:17):
well.. i see it too.
wtf is going on here?
James Agnew (Sep 19 2019 at 13:11):
Unfortunately I have to run to a meeting and I am absolutely stumped here.
Will keep at it
Grahame Grieve (Sep 19 2019 at 13:11):
ok thanks
Patrick Werner (Sep 19 2019 at 14:11):
tried it as well, running into same error. Decompiled ConceptMapRelationship, looks good.
Patrick Werner (Sep 19 2019 at 14:11):
:thinking:
Patrick Werner (Sep 19 2019 at 14:13):
while debugging saw that the maven compiler plugin was included twice in the core pom (not cause of the issue, just a side finding):
https://github.com/hapifhir/org.hl7.fhir.core/pull/84
Patrick Werner (Sep 19 2019 at 14:13):
have to checkout now. Will try to have a look later.
Grahame Grieve (Sep 19 2019 at 21:51):
ok. I got to the bottom of this. It was a combination of things.
- I imported org.hl7.fhir.publisher.cli not org.hl7.fhir.publisher.core - that means that all the core packages were in both
- @Rob Hausam had not updated the version of the publisher, so the core package version being loaded was wrong
Rob Hausam (Sep 19 2019 at 21:53):
just catching up on this
where did I not update the publisher?
Grahame Grieve (Sep 19 2019 at 21:54):
the version of org.hl7.fhir.publisher.cli in ivy.xml.
Grahame Grieve (Sep 19 2019 at 21:54):
or maybe I gave you the wrong number. anyway, wahtever, it won't be a problem now
Rob Hausam (Sep 19 2019 at 21:55):
right - I made the other ivy updates - apologies for missing that one
Rob Hausam (Sep 19 2019 at 21:57):
it's obvious in retrospect :(
Grahame Grieve (Sep 19 2019 at 21:59):
none of us found it obvious
James Agnew (Sep 20 2019 at 00:58):
heh, whoa. nice sleuthing.
Last updated: Apr 12 2022 at 19:14 UTC