typelead/eta

Gradle installation example fails

ulfryk opened this issue · 2 comments

Gradle installation example form official site fails with Execution failed for task ':setupEnvironmentEta'.

This is similar to #860 (but my issue happened outside of docker).

Description

First try:

$ git clone https://github.com/typelead/eta-init
Cloning into 'eta-init'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 103 (delta 0), reused 1 (delta 0), pack-reused 100
Receiving objects: 100% (103/103), 74.73 KiB | 822.00 KiB/s, done.
Resolving deltas: 100% (47/47), done.

$ cd eta-init/

$ ./gradlew run -PetaSendMetrics=false
Downloading https://services.gradle.org/distributions/gradle-4.9-bin.zip
........................................................................
Unzipping ~/.gradle/wrapper/dists/gradle-4.9-bin/e9cinqnqvph59rr7g70qubb4t/gradle-4.9-bin.zip to ~/.gradle/wrapper/dists/gradle-4.9-bin/e9cinqnqvph59rr7g70qubb4t
Set executable permissions for: ~/.gradle/wrapper/dists/gradle-4.9-bin/e9cinqnqvph59rr7g70qubb4t/gradle-4.9/bin/gradle
Starting a Gradle Daemon (subsequent builds will be faster)
Download https://plugins.gradle.org/m2/com/typelead/eta/com.typelead.eta.gradle.plugin/0.8.0/com.typelead.eta.gradle.plugin-0.8.0.pom
Download https://plugins.gradle.org/m2/gradle/plugin/com/typelead/gradle-eta/0.8.0/gradle-eta-0.8.0.pom
Download https://plugins.gradle.org/m2/gradle/plugin/com/typelead/gradle-eta/0.8.0/gradle-eta-0.8.0.jar

> Task :setupEnvironmentEta
Downloading etlas from: http://cdnverify.eta-lang.org/eta-binaries/etlas-1.5.0.0/binaries/x86_64-osx/etlas ; caching to ~/.gradle/caches/etlas/1.5.0.0/etlas

> Task :setupEnvironmentEta FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':setupEnvironmentEta'.
> No value has been specified for this provider.

* 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

BUILD FAILED in 44s
1 actionable task: 1 executed

Second try:

./gradlew run
> Task :setupEnvironmentEta FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':setupEnvironmentEta'.
> Welcome to Etlas, the awesome build tool for the Eta programming language!
  
  We are working hard to make the best platform for pure functional programming
  on the Java Virtual Machine.
  
  Etlas will periodically send usage statistics to help us:
  
  * Make decisions on how to evolve the language
  
  * Build a community portal that displays the data we collect in visual form
  
  * Build an Etlas package repository that will accurately display package popularity
  
  * And more!
  
  For more details, please consult our privacy policy:
  
          http://eta-lang.org/docs/html/privacy-policy.html
  
  Would you like to help us make Eta the fastest growing programming language,
  and help pure functional programming become mainstream? (y/n)
  
  Please re-run this command with:
   * `-PetaSendMetrics=true` for yes
   * `-PetaSendMetrics=false` for no.
  
  This only needs to be done once.

* 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

BUILD FAILED in 0s

Expected Behavior

not sure ;)

Actual Behavior

./gradlew run fails with Execution failed for task ':setupEnvironmentEta'.

Possible Fix

no idea :(

Steps to Reproduce

^ in description

Context

trying to get ETA up and running for the first time

Your Environment

  • Did you install an older version of Eta/Etlas before?
    NO
  • Current Eta & Etlas version:
    None
  • Operating System and version:
    macOS Mojave 10.14.5
$ java --version
openjdk 11.0.2 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
───────┬────────────────────────────────────────────────────────────────────────
       │ File: build.gradle
───────┼────────────────────────────────────────────────────────────────────────
   1   │ plugins {
   2   │     id 'com.typelead.eta' version '0.8.0'
   3   │     id 'application'
   4   │ }
   5   │ 
   6   │ eta {
   7   │     version = '0.8.6b5'
   8   │     etlasVersion = '1.5.0.0'
   9   │ }
  10   │ 
  11   │ dependencies {
  12   │   compile eta('base:4.11.1.0')
  13   │ }
───────┴────────────────────────────────────────────────────────────────────────

Nevermind, when I tried $ ./gradlew run -PetaSendMetrics=false once more it worked :)

Just a little pity it didn't the first time :(