typelead / eta

The Eta Programming Language, a dialect of Haskell on the JVM
https://eta-lang.org
BSD 3-Clause "New" or "Revised" License
2.61k stars 141 forks source link

[windows] Eta project with many deps and java sources fails in javac step #968

Open jneira opened 5 years ago

jneira commented 5 years ago

Description

Trying to build a dhall-json throws an error:

D:\dev\lang\eta\dhall\dhall-haskell>etlas build dhall-json
Resolving dependencies...
In order, the following will be built (use -v for more details):
 - dhall-json-1.2.8 (lib) (configuration changed)
 - dhall-json-1.2.8 (exe:yaml-to-dhall) (configuration changed)
 - dhall-json-1.2.8 (exe:json-to-dhall) (configuration changed)
 - dhall-json-1.2.8 (exe:dhall-to-yaml) (configuration changed)
 - dhall-json-1.2.8 (exe:dhall-to-json) (configuration changed)
Configuring library for dhall-json-1.2.8..
Preprocessing library for dhall-json-1.2.8..
Building library for dhall-json-1.2.8..
C:\Program Files\Java\jdk1.8.0_66\bin\javac.exe: createProcess: does not exist (No such file or directory)
etlas: Failed to build dhall-json-1.2.8 (which is required by
exe:yaml-to-dhall from dhall-json-1.2.8, exe:json-to-dhall from
dhall-json-1.2.8 and others).

Expected Behavior

The project should be built

Actual Behavior

Possible Fix

Maybe it is related with some limit in arguments length for windows, cause projects with less deps work fine.

Steps to Reproduce

  1. etlas get dhall-json
  2. etlas build

Context

Build master version of dhall-haskell with eta/etlas

Your Environment

rahulmutt commented 5 years ago

Maybe it is related with some limit in arguments length for windows, cause projects with less deps work fine.

I'm willing to bet that that's the cause :) We do need a way to send all arguments to the Eta compiler as a file and have etlas use that method instead of sending everything through the command line.