FHIR Chat · Publisher is unhappy · IG creation

Stream: IG creation

Topic: Publisher is unhappy


view this post on Zulip Lloyd McKenzie (Dec 04 2020 at 03:24):

Getting this on the CI build and locally:
[java] Error: Could not find or load main class org.hl7.fhir.igtools.publisher.Publisher

view this post on Zulip Lloyd McKenzie (Dec 04 2020 at 03:24):

@Grahame Grieve @Mark Iantorno

view this post on Zulip Grahame Grieve (Dec 04 2020 at 03:32):

@Mark Iantorno the class org.hl7.fhir.igtools.publisher.Publisher is in the jar. I don't know why it would give this error

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:34):

This is happening in the current build?

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:34):

The latest?

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:34):

@Lloyd McKenzie when you download the cli jar from the GitHub release you run it and get this error?

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:35):

Nothing I changed should cause this?

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:35):

@Lloyd McKenzie let me know exactly how you reproduced this

view this post on Zulip Grahame Grieve (Dec 04 2020 at 03:36):

I get the same error too

view this post on Zulip Elliot Silver (Dec 04 2020 at 03:36):

I ran ./_updatePublisher.sh and started getting it.

view this post on Zulip Grahame Grieve (Dec 04 2020 at 03:36):

at least, I get the same error if you use the current jar

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:38):

Let me look

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:47):

I just did a clean local build of 1.1.46, specifically this commit (https://github.com/HL7/fhir-ig-publisher/commit/500fc027b11856456a867e04904f19028f5326a7), and it didn't work either. However, when I checked out the previous release (https://github.com/HL7/fhir-ig-publisher/commit/5bca40d839f61ecc2c0b21150e83644866e9b716), it does work.

view this post on Zulip Grahame Grieve (Dec 04 2020 at 03:48):

so it's jgit?

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:48):

gimmy one sec

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:49):

I'm going to look real close at this commit (https://github.com/HL7/fhir-ig-publisher/commit/500fc027b11856456a867e04904f19028f5326a7) and dump the dependency graph to see what's up

view this post on Zulip Grahame Grieve (Dec 04 2020 at 03:50):

one would think that only the POM changes could result in the main java class not loading

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:52):

that would make the most sense, but I just want to be sure

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:53):

huh it was the jgit dependency

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:53):

but why

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:53):

you were right

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:53):

you're not even using it

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:53):

just it being there causes the issue

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:54):

that's messed up

view this post on Zulip Grahame Grieve (Dec 04 2020 at 03:54):

https://stackoverflow.com/questions/57338839/error-could-not-find-or-load-main-class-after-adding-jar-dependency

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:54):

I'm going to comment it out and push out a quick fix

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:55):

Although I take blame for this for suggesting the library, I'm going to say that I did say it would be a piece of crap because it was maintained by eclipse

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:55):

pushing the fix right now

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:55):

release coming up

view this post on Zulip Grahame Grieve (Dec 04 2020 at 03:57):

https://stackoverflow.com/questions/33915987/git-tf-unable-to-find-required-jar - depends on MINGW

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:57):

ah, that sounds like a hack

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:58):

let me find a better library for this

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:58):

I think there must be a maven solution to this as wel

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:58):

manually defining the entry point for the ig app

view this post on Zulip Grahame Grieve (Dec 04 2020 at 03:58):

shame. I just integrated jgit - it works really well

view this post on Zulip Grahame Grieve (Dec 04 2020 at 03:58):

was about to do the PR

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:58):

this is fixable

view this post on Zulip Mark Iantorno (Dec 04 2020 at 03:59):

don't lose hope

view this post on Zulip Mark Iantorno (Dec 04 2020 at 04:18):

release is running now

view this post on Zulip Mark Iantorno (Dec 04 2020 at 04:18):

fix should be out shortly

view this post on Zulip Mark Iantorno (Dec 04 2020 at 04:18):

I'm looking at the jgit dependency now though

view this post on Zulip Grahame Grieve (Dec 04 2020 at 04:27):

I don't think I'm right about the mingw thing - I think i was looking at the wrong thing

view this post on Zulip Mark Iantorno (Dec 04 2020 at 04:28):

kk

view this post on Zulip Mark Iantorno (Dec 04 2020 at 04:40):

@Lloyd McKenzie @Elliot Silver @Grahame Grieve IGPublisher has been released with fix. It works now.

view this post on Zulip Mark Iantorno (Dec 04 2020 at 04:41):

Let me know if there are any issues.

view this post on Zulip Lloyd McKenzie (Dec 04 2020 at 04:43):

Thanks for the quick after-hours turn-around @Mark Iantorno :)

view this post on Zulip Elliot Silver (Dec 04 2020 at 04:58):

Looks good here.

view this post on Zulip Jean Duteau (Dec 04 2020 at 05:53):

Screen-Shot-2020-12-03-at-10.53.04-PM.png

view this post on Zulip Jean Duteau (Dec 04 2020 at 05:53):

(deleted)

view this post on Zulip Jean Duteau (Dec 04 2020 at 05:54):

just to poke some fun...

view this post on Zulip Mark Iantorno (Dec 04 2020 at 13:22):

@Jean Duteau I'm going to put a test in the pipeline to run the jar before allowing a merge...hopefully this won't happen again


Last updated: Apr 12 2022 at 19:14 UTC