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

Gradle project build with dhall as dependency hangs #25

Open
jneira opened this issue Jul 18, 2018 · 3 comments
Open

Gradle project build with dhall as dependency hangs #25

jneira opened this issue Jul 18, 2018 · 3 comments

Comments

@jneira
Copy link
Contributor

jneira commented Jul 18, 2018

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
Copy link
Contributor Author

jneira commented Jul 19, 2018

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
Copy link
Contributor Author

jneira commented Jul 19, 2018

  • If i replace the eta block with this one:
eta {
  useSystemEta = true
  useSystemEtlas = true
}
  • I get another error:
PS C:\Users\Javier\dev\lang\eta\dhall\dhall-eta> gradle build

> 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.

* What went wrong:
Execution failed for task ':compileEta'.
> [C:\Users\Javier\AppData\Roaming\local\bin\etlas.exe, build] failed with ExitCode 1

eta is in this directory!

PS C:\Users\Javier\dev\lang\eta\dhall\dhall-eta> C:\Users\Javier\AppData\Roaming\local\bin\
eta.exe --version
The Eta Programming Language Compiler, Version 0.8.0b3, Git Revision 5b7555074a51f41598bf4ab60de957ef05483fde

Also i have full admin permissions in the computer.

@rahulmutt
Copy link
Member

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.

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

2 participants