typelead / gradle-eta

Gradle plugin for the Eta programming language
BSD 3-Clause "New" or "Revised" License
30 stars 7 forks source link

Gradle project build with dhall as dependency hangs #25

Open jneira opened 6 years ago

jneira commented 6 years ago

Hi, i've reproduced the error in windows 10 simple adding compile eta('dhall-1.15.1') in the build.gradle of the simple example of the plugin

The build.gradle is:

plugins {
    id 'com.typelead.eta' version '0.7.5'
    id 'application'
}

eta {
    version = '0.8.0b2'
    etlasVersion = '1.4.0.0'
}

sourceSets {
  main {
    eta {
      srcDir 'eta'
    }
  }
  test {
    eta {
      srcDir 'eta-test'
    }
  }
}

dependencies {
  compile eta('base:4.8.2.0')
  compile eta('dhall:1.15.1')
}

compileEta {
  options {
    args = ['-Wall']
    extensions {
      CPP
    }
    cpp = ['-DHELLO=1']
  }
}

The build hangs in Building aeson-1.2.3.0 (lib)... step Moreover, when i kill the gradle building with ctrl-c, the etlas, eta and java proccesses spawned continue running.

jneira commented 6 years ago

I've checked that an etlas installatation with the version fixed (eta version = '0.8.0b2' selected by etlas after cleaning, etlasVersion = '1.4.0.0' downloaded from site) terminates correctly

jneira commented 6 years ago

Task :setupEnvironmentEta UP-TO-DATE WARNING: You have not explicitly set the version of Eta to be used, so the version available on your system, 0.8.0b3, will be used.

This is not recommended since it will make this build non-reproducible. Please supply a value for the 'version' property in an eta { .. } block.

C:\Users\Javier\AppData\Roaming\local\bin\eta.exe: createProcess: does not exist (No such file or directory)

FAILURE: Build failed with an exception.

rahulmutt commented 6 years ago

I recently reproduced the hanging of Building aeson-1.2.3.0 (lib)... on OS X when building with Gradle. Will need to take a look at this.