Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gradle in gitpod/workspace-full #334

Closed
geropl opened this issue Feb 22, 2019 · 6 comments
Closed

Update gradle in gitpod/workspace-full #334

geropl opened this issue Feb 22, 2019 · 6 comments
Assignees

Comments

@geropl
Copy link
Member

geropl commented Feb 22, 2019

Describe the bug
Currently running gradle init in a fresh gitpod/workspace-full based workspace yields:

FAILURE: Build failed with an exception.

* What went wrong:
java.lang.ExceptionInInitializerError (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

To Reproduce

  1. Open a fresh repository
  2. run gradle init --type java-library

Expected behavior
Gradle should initialize the project.

It seems to be a gradle incompatibility with java 8 (we have jdk 1.8.0_201). Updating to gradle-4.10.3 solves the issues; sadly this is not available from the ubuntu repos.

@meysholdt
Copy link
Member

see #69 (comment)

Maybe we can use https://sdkman.io/ to install Java, Maven and Gradle into workspace-full

@jankeromnes
Copy link
Contributor

Thanks for the pointers! I'll look into upgrading Gradle to latest stable in workspace-full (possibly using tarballs, or sdkman.io, or homebrew, or something else that makes sense).

@jankeromnes jankeromnes self-assigned this Feb 22, 2019
@jankeromnes
Copy link
Contributor

Actually this is a duplicate of #69. Closing.

@kittaakos
Copy link

I am having a very similar if not the same issue.
Steps to reproduce:

  • Start Theia with yarn --cwd ./examples/browser start --hostname 0.0.0.0 --port 3000
  • Open a terminal and create a new folder: mkdir jdt-ls-gh-28 && cd jdt-ls-gh-28.
  • Execute gradle init --type java-library.
Picked up JAVA_TOOL_OPTIONS: -Xmx3189m
Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.4.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Picked up JAVA_TOOL_OPTIONS: -Xmx3189m

FAILURE: Build failed with an exception.

* What went wrong:
java.lang.ExceptionInInitializerError (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

@kittaakos kittaakos reopened this Mar 5, 2019
@jankeromnes
Copy link
Contributor

Oh oh, that's unfortunate, because we expected this issue (actually, #69) to be fixed since we've now upgraded Gradle in production.

@AlexTugarev when you have some time, could you please look into this problem?

@AlexTugarev AlexTugarev self-assigned this Mar 5, 2019
@jankeromnes jankeromnes removed their assignment Apr 11, 2019
@jankeromnes
Copy link
Contributor

Closing this as it's been a while. Please re-open if the problem is still there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants