FHIR Chat · Error building project for CQL->ELM converter · cql

Stream: cql

Topic: Error building project for CQL->ELM converter


view this post on Zulip Nick Ahrens (Sep 10 2018 at 18:40):

Hi everyone.
I've gone through most of the steps to set up the CQL->ELM converter in Ubuntu. However, now I'm trying to run this command to build the project:
./gradlew :cql-to-elm:installDist

I get this error:
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

It's the same error shown on this StackOverflow page:
https://stackoverflow.com/questions/37171043/gradle-build-daemon-disappeared-unexpectedly-it-may-have-been-killed-or-may-hav

I'm wondering - should I do what they recommend on that StackOverflow page and disable Daemon before I attempt to build the project?

view this post on Zulip Bryn Rhodes (Sep 10 2018 at 18:45):

I'm not sure we've configured the build for the installDist task, I typically only use the build task and then either run it directly in the output directory, or upload it to Maven and reference it from there. Are you trying to build a jar? Is there a reason not to just reference it from Maven?

view this post on Zulip Nick Ahrens (Sep 10 2018 at 19:32):

I'm not as familiar with the setup steps as I should be; I haven't considered uploading this to Maven. Right now I'm trying to run it locally on an instance of Ubuntu on VirtualBox. Is there a certain command I should run if I only want to run the build task, as opposed to installDist?

view this post on Zulip Nick Ahrens (Sep 10 2018 at 20:21):

It looks like I built the project successfully this time, so I think this problem is solved. Daemon stopped crashing after I allocated more memory to my virtual machine. For reference, I've been using these pages as a guideline; the installDist step is mentioned at the second link:
https://github.com/cqframework/clinical_quality_language
https://github.com/cqframework/cql-execution

view this post on Zulip Bryn Rhodes (Sep 10 2018 at 20:24):

Just gradlew build is what I use

view this post on Zulip Bryn Rhodes (Sep 10 2018 at 20:25):

When we release, we publish the packages to Maven so you can just reference them there instead of having to build the translator yourself locally.

view this post on Zulip Chris Moesel (Sep 11 2018 at 13:44):

I use the installDist -- as it creates a nice little script you can use to run the cql-to-elm translator in a terminal (without needing to bother with java commands, class paths, etc).


Last updated: Apr 12 2022 at 19:14 UTC