FHIR Chat · Compile problem FHIR core branch · hapi

Stream: hapi

Topic: Compile problem FHIR core branch


view this post on Zulip 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

view this post on Zulip 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

view this post on Zulip Grahame Grieve (Sep 19 2019 at 11:21):

but the class it's looking for is in the r5 jar on the path:

view this post on Zulip Grahame Grieve (Sep 19 2019 at 11:21):

pasted image

view this post on Zulip 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

view this post on Zulip Grahame Grieve (Sep 19 2019 at 11:23):

if you want to reproduce this, it's the conceptmap-updates-rh branch

view this post on Zulip James Agnew (Sep 19 2019 at 12:13):

Starting a build of that branch now

view this post on Zulip Grahame Grieve (Sep 19 2019 at 12:15):

thanks

view this post on Zulip James Agnew (Sep 19 2019 at 12:17):

well.. i see it too.

wtf is going on here?

view this post on Zulip 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

view this post on Zulip Grahame Grieve (Sep 19 2019 at 13:11):

ok thanks

view this post on Zulip Patrick Werner (Sep 19 2019 at 14:11):

tried it as well, running into same error. Decompiled ConceptMapRelationship, looks good.

view this post on Zulip Patrick Werner (Sep 19 2019 at 14:11):

:thinking:

view this post on Zulip 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

view this post on Zulip Patrick Werner (Sep 19 2019 at 14:13):

have to checkout now. Will try to have a look later.

view this post on Zulip 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

view this post on Zulip Rob Hausam (Sep 19 2019 at 21:53):

just catching up on this
where did I not update the publisher?

view this post on Zulip Grahame Grieve (Sep 19 2019 at 21:54):

the version of org.hl7.fhir.publisher.cli in ivy.xml.

view this post on Zulip 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

view this post on Zulip Rob Hausam (Sep 19 2019 at 21:55):

right - I made the other ivy updates - apologies for missing that one

view this post on Zulip Rob Hausam (Sep 19 2019 at 21:57):

it's obvious in retrospect :(

view this post on Zulip Grahame Grieve (Sep 19 2019 at 21:59):

none of us found it obvious

view this post on Zulip James Agnew (Sep 20 2019 at 00:58):

heh, whoa. nice sleuthing.


Last updated: Apr 12 2022 at 19:14 UTC