:wave: Hello! I am getting ```* What went wrong: J...
# troubleshoot
c
👋 Hello! I am getting
Copy code
* What went wrong:
Java heap space
when trying to build gms locally using
./gradlew :metadata-service:war:build
. Any idea how I can fix this? It happens somewhat randomly and when building frontend service as well
1
a
Hey @limited-whale-38911, I think @dazzling-yak-93039 should be able to help you out here- it could be a bug- what version are you on?
c
datahub version
Copy code
DataHub CLI version: 0.8.35.1
Python version: 3.8.13 (default, Jan 16 2023, 20:20:13) 
[Clang 14.0.0 (clang-1400.0.29.202)]
d
c
I uncommented
#org.gradle.jvmargs=-Xmx2000m
in gradle.properties and that worked. Thanks so much!
I'm now getting
Copy code
ANTLR Tool version 4.5 used for code generation does not match the current runtime version 4.8ANTLR Runtime version 4.5 used for parser compilation does not match the current runtime version 4.8ANTLR Tool version 4.5 used for code generation does not match the current runtime version 4.8ANTLR Runtime version 4.5 used for parser compilation does not match the current runtime version 4.82023/03/20 18:54:37 Command exited with error: exit status 1
when trying to replace datahub-gms container with local code:
Copy code
(cd docker && COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -p datahub -f docker-compose-without-neo4j.yml -f docker-compose-without-neo4j.override.yml -f docker-compose.dev.yml up -d --no-deps --force-recreate datahub-gms)
@astonishing-answer-96712 any chance you'd be able to help here? 🙏
a
Hey @calm-balloon-31412, I think @dazzling-yak-93039 might be able to help you here- this is likely a java deps issue, I think some people have dealt with ANTLR issues previously in this slack, so it’s worth a search
a
In the future it may be good to open up a new thread for visibility, since things can get lost in the shuffle with all the messages!
c
ack will do! I looked through previous threads but didn't find anything that could help me 😕
a
You may want to check your package deps and ensure you aren’t targeting ANTLR 4.8, or try downgrading your system’s ANTLR version
c
Thanks for the response! How can I downgrade my system's ANTLR version? In my
build.gradle
file I see
'antlr4Runtime': 'org.antlr:antlr4-runtime:4.7.2',
. I tried changing this manually but it did not like that.
a
I found this page: https://www.antlr.org/download.html depending on your programming language you may be able to specify a different version in the language you're using? e.g. pip install for python?
c
I did
pip install antlr4-python3-runtime
from my virtual env, but still getting the same error 😕 idk where
the current runtime version 4.8ANTLR
is coming from