FHIR Chat · new machine failing FHIR core build · committers

Stream: committers

Topic: new machine failing FHIR core build


view this post on Zulip John Moehrke (Mar 31 2021 at 22:21):

I thought I installed all the things I needed to, and I think it was successfully building a few days ago. But today I get a NPE

FHIR build failure @ Wed, Mar 31, 2021 17:18-0500                           1.05  23sec  434MB
Error: Error loading C:\Users\johnm\Git\fhir\source\documentreference\valueset-c80-doc-typecodes.xml: id mismatch. Expected c80-doc-typecodes but found valueset-doc-typecodes
org.hl7.fhir.exceptions.FHIRException: Error loading C:\Users\johnm\Git\fhir\source\documentreference\valueset-c80-doc-typecodes.xml: id mismatch. Expected c80-doc-typecodes but found valueset-doc-typecodes
        at org.hl7.fhir.definitions.parsers.ResourceParser.loadValueSet(ResourceParser.java:843)
        at org.hl7.fhir.definitions.parsers.ResourceParser.parseBinding(ResourceParser.java:713)
        at org.hl7.fhir.definitions.parsers.ResourceParser.parseED(ResourceParser.java:645)
        at org.hl7.fhir.definitions.parsers.ResourceParser.parseED(ResourceParser.java:650)
        at org.hl7.fhir.definitions.parsers.ResourceParser.parseTypeDefinition(ResourceParser.java:477)
        at org.hl7.fhir.definitions.parsers.ResourceParser.parseResource(ResourceParser.java:460)
        at org.hl7.fhir.definitions.parsers.ResourceParser.parse(ResourceParser.java:116)
        at org.hl7.fhir.definitions.parsers.SourceParser.loadResource(SourceParser.java:1269)
        at org.hl7.fhir.definitions.parsers.SourceParser.parse(SourceParser.java:288)
        at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:580)
        at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:473)

view this post on Zulip John Moehrke (Mar 31 2021 at 22:26):

are others using OpenJDK? could that be my problem?

view this post on Zulip Jean Duteau (Mar 31 2021 at 22:46):

That's not an NullPointerException, that's an exception that the c80-doc-typecodes value set has a wrong id.

view this post on Zulip John Moehrke (Mar 31 2021 at 23:06):

I know that is what it says... but the only difference between working and not is my old machine that builds this fine, and this new machine. also, seems the cloud build also builds fine... so I think I failed to install something

view this post on Zulip John Moehrke (Mar 31 2021 at 23:07):

this machine can build IG just fine.

view this post on Zulip Jean Duteau (Mar 31 2021 at 23:29):

I thought that was the case, but just in case you had changed something, I thought I'd point out the obvious. From that error, though, it looks like everything is working fine.

view this post on Zulip John Moehrke (Apr 01 2021 at 01:09):

so, my clone is somehow corrupt without GIT noticing. I have created a new clone and it built fine.

view this post on Zulip John Moehrke (Apr 01 2021 at 01:09):

22 locked files in the old repo..

view this post on Zulip Mark Iantorno (Apr 01 2021 at 13:35):

I've mentioned this to Jean, and I'll restate again because it's a good piece of advice for situations like this,

view this post on Zulip Mark Iantorno (Apr 01 2021 at 13:36):

When you are having issues locally, doesn't really matter why, if you are ever in a situation where you are saying "this should work! why isn't this working?" push to a branch and open a PR.

view this post on Zulip Mark Iantorno (Apr 01 2021 at 13:36):

the cloud pipeline will then do a build, and it is the source of truth

view this post on Zulip Mark Iantorno (Apr 01 2021 at 13:36):

if it's local to your machine, the pipeline will build successfully

view this post on Zulip Mark Iantorno (Apr 01 2021 at 13:37):

if it fails on the pipeline, it's most likely broken

view this post on Zulip Mark Iantorno (Apr 01 2021 at 13:37):

also, you will be able to see any changes to any files laid out for you in the PR on github

view this post on Zulip Mark Iantorno (Apr 01 2021 at 13:37):

so it's easy to track if something accidentally changed

view this post on Zulip John Moehrke (Apr 01 2021 at 13:38):

understood.. but I knew it was local. it was a new machine, so I first wanted to be sure that the machine build requirements were those published on the confluence page and had not added a new tool

view this post on Zulip Mark Iantorno (Apr 01 2021 at 13:39):

can you send me the page that outlines the machine build reqs

view this post on Zulip John Moehrke (Apr 01 2021 at 13:39):

note, GIT seems happy with my clone. but the clone folder has locked files that I can't delete. I now suspect that OneDrive, Git, and Carbonite were fighting over these files

view this post on Zulip Mark Iantorno (Apr 01 2021 at 13:39):

I'm updating documentation and that would be helpful

view this post on Zulip Mark Iantorno (Apr 01 2021 at 13:40):

so...having multiple redundant backlup services running on a git repo probably isn't the best idea

view this post on Zulip John Moehrke (Apr 01 2021 at 13:40):

https://confluence.hl7.org/display/FHIR/FHIR+Build+Process

view this post on Zulip Mark Iantorno (Apr 01 2021 at 13:40):

my recommendation would be just to use git and push to your branch often, that's the most common flow

view this post on Zulip Mark Iantorno (Apr 01 2021 at 13:41):

ty for link

view this post on Zulip John Moehrke (Apr 01 2021 at 13:41):

I had no idea that the default win 10 turned on OneDrive. I had already told Carbonite to ignore git


Last updated: Apr 12 2022 at 19:14 UTC