Stream: committers
Topic: new machine failing FHIR core build
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)
John Moehrke (Mar 31 2021 at 22:26):
are others using OpenJDK? could that be my problem?
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.
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
John Moehrke (Mar 31 2021 at 23:07):
this machine can build IG just fine.
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.
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.
John Moehrke (Apr 01 2021 at 01:09):
22 locked files in the old repo..
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,
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.
Mark Iantorno (Apr 01 2021 at 13:36):
the cloud pipeline will then do a build, and it is the source of truth
Mark Iantorno (Apr 01 2021 at 13:36):
if it's local to your machine, the pipeline will build successfully
Mark Iantorno (Apr 01 2021 at 13:37):
if it fails on the pipeline, it's most likely broken
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
Mark Iantorno (Apr 01 2021 at 13:37):
so it's easy to track if something accidentally changed
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
Mark Iantorno (Apr 01 2021 at 13:39):
can you send me the page that outlines the machine build reqs
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
Mark Iantorno (Apr 01 2021 at 13:39):
I'm updating documentation and that would be helpful
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
John Moehrke (Apr 01 2021 at 13:40):
https://confluence.hl7.org/display/FHIR/FHIR+Build+Process
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
Mark Iantorno (Apr 01 2021 at 13:41):
ty for link
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