I'm on Windows 10, and I tried using gradle-eta together with an Intellij plugin build (there might be many more things wrong with my build, but I identified one specific one here).
gradlew.bat compileEta fails with the following output:
etlas.exe: Failed to build eta-init-1.0. The failure occurred during the
configure step. The exception was:
C:\Users\joachim\.gradle\caches\etlas\1.4.0.0\etlas.exe: createProcess: does
not exist (No such file or directory)
> Task :compileEta FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileEta'.
> [C:\Users\joachim\.gradle\caches\etlas\1.4.0.0\etlas.exe, --select-eta=0.8.0b2, build] failed with ExitCode 1
* 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 13s
5 actionable tasks: 2 executed, 3 up-to-date
With --info, it tells me additionally:
Executing external command: [C:\Users\joachim\.gradle\caches\etlas\1.4.0.0\etlas.exe, --select-eta=0.8.0b2, build] in workingDir: C:\daten\prog\eta\eta-init\build\eta\main
:compileEta (Thread[Task worker for ':',5,main]) completed. Took 0.098 secs.
So I tried to execute this exact etlas command line, but with an added -v, manually (probably skip down for now instead of checking the detail, the problem is very probably just the length...):
I now manually edited cabal.project.local (in `build/eta/main´) and checked the classpath. All files listed in there seem to exist in my file system. - So then I removed a big part of the classpath from the file to make it way smaller.
After that change, it works smoothly (because I don't need everything from the classpath yet):
C:\daten\prog\eta\eta-init\build\eta\main>C:\Users\joachim\.gradle\caches\etlas\1.4.0.0\etlas.exe -v --select-eta=0.8.0b2 build
Project settings changed, reconfiguring...
creating C:\daten\prog\eta\eta-init\build\eta\main\dist
creating C:\daten\prog\eta\eta-init\build\eta\main\dist\cache
Component graph for eta-init-1.0: component lib
component eta-init-1.0-inplace
include base-4.8.2.0-IPFDtZjmEfh5tPXF10v5hF
include base-4.8.2.0-IPFDtZjmEfh5tPXF10v5hF
unit eta-init-1.0-inplace
include base-4.8.2.0-IPFDtZjmEfh5tPXF10v5hF
include base-4.8.2.0-IPFDtZjmEfh5tPXF10v5hF
Primes=eta-init-1.0-inplace:Primes
In order, the following will be built:
- eta-init-1.0 (lib) (first run)
creating C:\daten\prog\eta\eta-init\build\eta\main\dist\build
creating C:\daten\prog\eta\eta-init\build\eta\main\dist\tmp
creating
C:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0
creating
C:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0\cache
Using self-exec internal setup method with build-type Simple and args:
["act-as-setup","--build-type=Simple","--","configure","--verbose=2","--builddir=C:\\daten\\prog\\eta\\eta-init\\build\\eta\\main\\dist\\build\\eta-0.8.0.2\\eta-init-1.0","--
eta","--prefix=C:\\Users\\joachim\\AppData\\Roaming\\etlas","--bindir=C:\\Users\\joachim\\AppData\\Roaming\\etlas\\bin","--libdir=C:\\Users\\joachim\\AppData\\Roaming\\etlas\
\eta-0.8.0.2\\eta-init-1.0-inplace","--libsubdir=","--dynlibdir=C:\\Users\\joachim\\AppData\\Roaming\\etlas\\eta-0.8.0.2","--libexecdir=C:\\Users\\joachim\\AppData\\Roaming\\
etlas\\eta-init-1.0-inplace","--datadir=C:\\Users\\joachim\\AppData\\Roaming\\etlas\\eta-0.8.0.2\\eta-init-1.0","--datasubdir=","--docdir=C:\\Users\\joachim\\AppData\\Roaming
\\etlas\\doc\\eta-0.8.0.2\\eta-init-1.0","--htmldir=C:\\Users\\joachim\\AppData\\Roaming\\etlas\\doc\\eta-0.8.0.2\\eta-init-1.0\\html","--haddockdir=C:\\Users\\joachim\\AppDa
ta\\Roaming\\etlas\\doc\\eta-0.8.0.2\\eta-init-1.0\\html","--etadocdir=C:\\Users\\joachim\\AppData\\Roaming\\etlas\\doc\\eta-0.8.0.2\\eta-init-1.0\\html","--sysconfdir=C:\\Us
ers\\joachim\\AppData\\Roaming\\etlas\\etc","--disable-library-vanilla","--disable-library-profiling","--enable-shared","--enable-executable-dynamic","--disable-uberjar-mode"
,"--disable-profiling","--profiling-detail=default","--library-profiling-detail=default","--enable-optimization","--disable-debug-info","--disable-library-for-ghci","--disabl
e-split-objs","--disable-executable-stripping","--disable-library-stripping","--package-db=clear","--package-db=global","--package-db=C:\\Users\\joachim\\AppData\\Roaming\\et
las\\store\\eta-0.8.0.2\\package.db","--package-db=C:\\daten\\prog\\eta\\eta-init\\build\\eta\\main\\dist\\packagedb\\eta-0.8.0.2","--cid=eta-init-1.0-inplace","--extra-prog-
path=C:\\Users\\joachim\\AppData\\Roaming\\etlas\\bin","--dependency=base=base-4.8.2.0-IPFDtZjmEfh5tPXF10v5hF","--disable-coverage","--exact-configuration","--disable-verify"
,"--with-eta=C:\\Users\\joachim\\AppData\\Roaming\\etlas\\binaries\\cdnverify.eta-lang.org\\eta-0.8.0.2\\binaries\\x86_64-windows\\eta.exe","--with-eta-pkg=C:\\Users\\joachim
\\AppData\\Roaming\\etlas\\binaries\\cdnverify.eta-lang.org\\eta-0.8.0.2\\binaries\\x86_64-windows\\eta-pkg.exe","--with-java=C:\\dev\\java10\\bin\\java.exe","--with-javac=C:
\\dev\\java10\\bin\\javac.exe","--eta-option=-cp","--eta-option=C:\\Users\\joachim\\.gradle\\caches\\etlas\\eta-0802\\base\\4.8.2.0-IPFDtZjmEfh5tPXF10v5hF\\base-4.8.2.0-IPFDt
ZjmEfh5tPXF10v5hF.jar;C:\\Users\\joachim\\.gradle\\caches\\etlas\\eta-0802\\integer\\0.5.1.0-ACyqTmAMUMGGvisLFeQbAm\\integer-0.5.1.0-ACyqTmAMUMGGvisLFeQbAm.jar;C:\\Users\\joa
chim\\.gradle\\caches\\etlas\\eta-0802\\ghc-prim\\0.4.0.0-Jhi6UgHuZdoBZWUpVo3WKE\\ghc-prim-0.4.0.0-Jhi6UgHuZdoBZWUpVo3WKE.jar;C:\\Users\\joachim\\.gradle\\caches\\etlas\\eta-
0802\\rts\\0.1.0.0-5Dj4qf1Wx9cCeYbpni5T1w\\rts-0.1.0.0-5Dj4qf1Wx9cCeYbpni5T1w.jar;C:\\daten\\prog\\eta\\eta-init\\build\\classes\\java\\main","lib:eta-init"]
C:\Users\joachim\.gradle\caches\etlas\1.4.0.0\etlas.exe act-as-setup
--build-type=Simple -- configure --verbose=2
--builddir=C:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0
--eta --prefix=C:\Users\joachim\AppData\Roaming\etlas
--bindir=C:\Users\joachim\AppData\Roaming\etlas\bin
--libdir=C:\Users\joachim\AppData\Roaming\etlas\eta-0.8.0.2\eta-init-1.0-inplace
--libsubdir= --dynlibdir=C:\Users\joachim\AppData\Roaming\etlas\eta-0.8.0.2
--libexecdir=C:\Users\joachim\AppData\Roaming\etlas\eta-init-1.0-inplace
--datadir=C:\Users\joachim\AppData\Roaming\etlas\eta-0.8.0.2\eta-init-1.0
--datasubdir=
--docdir=C:\Users\joachim\AppData\Roaming\etlas\doc\eta-0.8.0.2\eta-init-1.0
--htmldir=C:\Users\joachim\AppData\Roaming\etlas\doc\eta-0.8.0.2\eta-init-1.0\html
--haddockdir=C:\Users\joachim\AppData\Roaming\etlas\doc\eta-0.8.0.2\eta-init-1.0\html
--etadocdir=C:\Users\joachim\AppData\Roaming\etlas\doc\eta-0.8.0.2\eta-init-1.0\html
--sysconfdir=C:\Users\joachim\AppData\Roaming\etlas\etc
--disable-library-vanilla --disable-library-profiling --enable-shared
--enable-executable-dynamic --disable-uberjar-mode --disable-profiling
--profiling-detail=default --library-profiling-detail=default
--enable-optimization --disable-debug-info --disable-library-for-ghci
--disable-split-objs --disable-executable-stripping
--disable-library-stripping --package-db=clear --package-db=global
--package-db=C:\Users\joachim\AppData\Roaming\etlas\store\eta-0.8.0.2\package.db
--package-db=C:\daten\prog\eta\eta-init\build\eta\main\dist\packagedb\eta-0.8.0.2
--cid=eta-init-1.0-inplace
--extra-prog-path=C:\Users\joachim\AppData\Roaming\etlas\bin
--dependency=base=base-4.8.2.0-IPFDtZjmEfh5tPXF10v5hF --disable-coverage
--exact-configuration --disable-verify
--with-eta=C:\Users\joachim\AppData\Roaming\etlas\binaries\cdnverify.eta-lang.org\eta-0.8.0.2\binaries\x86_64-windows\eta.exe
--with-eta-pkg=C:\Users\joachim\AppData\Roaming\etlas\binaries\cdnverify.eta-lang.org\eta-0.8.0.2\binaries\x86_64-windows\eta-pkg.exe
--with-java=C:\dev\java10\bin\java.exe
--with-javac=C:\dev\java10\bin\javac.exe --eta-option=-cp
--eta-option=C:\Users\joachim\.gradle\caches\etlas\eta-0802\base\4.8.2.0-IPFDtZjmEfh5tPXF10v5hF\base-4.8.2.0-IPFDtZjmEfh5tPXF10v5hF.jar;C:\Users\joachim\.gradle\caches\etlas\
eta-0802\integer\0.5.1.0-ACyqTmAMUMGGvisLFeQbAm\integer-0.5.1.0-ACyqTmAMUMGGvisLFeQbAm.jar;C:\Users\joachim\.gradle\caches\etlas\eta-0802\ghc-prim\0.4.0.0-Jhi6UgHuZdoBZWUpVo3
WKE\ghc-prim-0.4.0.0-Jhi6UgHuZdoBZWUpVo3WKE.jar;C:\Users\joachim\.gradle\caches\etlas\eta-0802\rts\0.1.0.0-5Dj4qf1Wx9cCeYbpni5T1w\rts-0.1.0.0-5Dj4qf1Wx9cCeYbpni5T1w.jar;C:\da
ten\prog\eta\eta-init\build\classes\java\main
lib:eta-init
Configuring library for eta-init-1.0..
Dependency base ==4.8.2.0: using base-4.8.2.0
Source component graph: component lib
Configured component graph:
component eta-init-1.0-inplace
include base-4.8.2.0-IPFDtZjmEfh5tPXF10v5hF
include base-4.8.2.0-IPFDtZjmEfh5tPXF10v5hF
Linked component graph:
unit eta-init-1.0-inplace
include base-4.8.2.0-IPFDtZjmEfh5tPXF10v5hF
include base-4.8.2.0-IPFDtZjmEfh5tPXF10v5hF
Primes=eta-init-1.0-inplace:Primes
Ready component graph:
definite eta-init-1.0-inplace
depends base-4.8.2.0-IPFDtZjmEfh5tPXF10v5hF
Using Cabal-2.1.0.0 compiled by ghc-7.10
Using compiler: eta-0.8.0.2
Using install prefix: C:\Users\joachim\AppData\Roaming\etlas
Binaries installed in: C:\Users\joachim\AppData\Roaming\etlas\bin
Libraries installed in:
C:\Users\joachim\AppData\Roaming\etlas\eta-0.8.0.2\eta-init-1.0-inplace
Dynamic Libraries installed in:
C:\Users\joachim\AppData\Roaming\etlas\eta-0.8.0.2
Private binaries installed in:
C:\Users\joachim\AppData\Roaming\etlas\eta-init-1.0-inplace
Data files installed in:
C:\Users\joachim\AppData\Roaming\etlas\eta-0.8.0.2\eta-init-1.0
Documentation installed in:
C:\Users\joachim\AppData\Roaming\etlas\doc\eta-0.8.0.2\eta-init-1.0
Configuration files installed in: C:\Users\joachim\AppData\Roaming\etlas\etc
Using alex version 3.2.1 found on system at: C:\dev\Haskell
Platform\8.2.1\lib\extralibs\bin\alex.exe
Using eta version 0.8.0.2 given by user at:
C:\Users\joachim\AppData\Roaming\etlas\binaries\cdnverify.eta-lang.org\eta-0.8.0.2\binaries\x86_64-windows\eta.exe
Using eta-pkg version 0.8.0.2 given by user at:
C:\Users\joachim\AppData\Roaming\etlas\binaries\cdnverify.eta-lang.org\eta-0.8.0.2\binaries\x86_64-windows\eta-pkg.exe
No etadoc found
Using git version 2.17.1 found on system at: C:\dev\Git\cmd\git.exe
Using happy version 1.19.5 found on system at: C:\dev\Haskell
Platform\8.2.1\lib\extralibs\bin\happy.exe
Using jar version 0 found on system at: C:\dev\java10\bin\jar.exe
Using java version 10.0.1 given by user at: C:\dev\java10\bin\java.exe
Using javac version 10.0.1 given by user at: C:\dev\java10\bin\javac.exe
Using tar found on system at: C:\WINDOWS\SYSTEM32\tar.exe
Using self-exec internal setup method with build-type Simple and args:
["act-as-setup","--build-type=Simple","--","build","--verbose=2","--builddir=C:\\daten\\prog\\eta\\eta-init\\build\\eta\\main\\dist\\build\\eta-0.8.0.2\\eta-init-1.0"]
C:\Users\joachim\.gradle\caches\etlas\1.4.0.0\etlas.exe act-as-setup
--build-type=Simple -- build --verbose=2
--builddir=C:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0
Component build order: library
"C:\Users\joachim\AppData\Roaming\etlas\binaries\cdnverify.eta-lang.org\eta-0.8.0.2\binaries\x86_64-windows\eta-pkg.exe" "init" "C:\daten\prog\eta\eta-init\build\eta\main\dis
t\build\eta-0.8.0.2\eta-init-1.0\package.conf.inplace"
creating
C:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0\build
creating
C:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0\build\autogen
creating
C:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0\build\autogen
Preprocessing library for eta-init-1.0..
Building library for eta-init-1.0..
creating
C:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0\build
"C:\Users\joachim\AppData\Roaming\etlas\binaries\cdnverify.eta-lang.org\eta-0.8.0.2\binaries\x86_64-windows\eta.exe" "--make" "-staticlib" "-fbuilding-cabal-package" "-O" "-g
0" "-outputdir" "C:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0\build" "-odir" "C:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.
2\eta-init-1.0\build" "-hidir" "C:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0\build" "-stubdir" "C:\daten\prog\eta\eta-init\build\eta\main\dis
t\build\eta-0.8.0.2\eta-init-1.0\build" "-i" "-iC:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0\build" "-iC:\daten\prog\eta\eta-init\src\main\et
a" "-iC:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0\build\autogen" "-iC:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-ini
t-1.0\build\global-autogen" "-IC:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0\build\autogen" "-IC:\daten\prog\eta\eta-init\build\eta\main\dist\
build\eta-0.8.0.2\eta-init-1.0\build\global-autogen" "-IC:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0\build" "-optP-include" "-optPC:\daten\pr
og\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0\build\autogen\cabal_macros.h" "-this-unit-id" "eta-init-1.0-inplace" "-hide-all-packages" "-no-user-package
-db" "-package-db" "C:\Users\joachim\AppData\Roaming\etlas\store\eta-0.8.0.2\package.db" "-package-db" "C:\daten\prog\eta\eta-init\build\eta\main\dist\packagedb\eta-0.8.0.2"
"-package-db" "C:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0\package.conf.inplace" "-package-id" "base-4.8.2.0-IPFDtZjmEfh5tPXF10v5hF" "-XHask
ell2010" "Primes" "-o" "C:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0\build\eta-init-1.0-inplace.jar" "-pgmjavac" "C:\dev\java10\bin\javac.exe
" "-pgmi" "C:\Users\joachim\AppData\Roaming\etlas\binaries\cdnverify.eta-lang.org\eta-0.8.0.2\binaries\x86_64-windows\eta-serv.jar" "-cp" "C:\Users\joachim\AppData\Roaming\et
las\eta-0.8.0.2\base-4.8.2.0-IPFDtZjmEfh5tPXF10v5hF\base-4.8.2.0-IPFDtZjmEfh5tPXF10v5hF.jar;C:\Users\joachim\AppData\Roaming\etlas\eta-0.8.0.2\ghc-prim-0.4.0.0-Jhi6UgHuZdoBZW
UpVo3WKE\ghc-prim-0.4.0.0-Jhi6UgHuZdoBZWUpVo3WKE.jar;C:\Users\joachim\AppData\Roaming\etlas\eta-0.8.0.2\integer-0.5.1.0-ACyqTmAMUMGGvisLFeQbAm\integer-0.5.1.0-ACyqTmAMUMGGvis
LFeQbAm.jar;C:\Users\joachim\AppData\Roaming\etlas\eta-0.8.0.2\rts-0.1.0.0-5Dj4qf1Wx9cCeYbpni5T1w\rts-0.1.0.0-5Dj4qf1Wx9cCeYbpni5T1w.jar" "-cp" "C:\Users\joachim\.gradle\cach
es\etlas\eta-0802\base\4.8.2.0-IPFDtZjmEfh5tPXF10v5hF\base-4.8.2.0-IPFDtZjmEfh5tPXF10v5hF.jar;C:\Users\joachim\.gradle\caches\etlas\eta-0802\integer\0.5.1.0-ACyqTmAMUMGGvisLF
eQbAm\integer-0.5.1.0-ACyqTmAMUMGGvisLFeQbAm.jar;C:\Users\joachim\.gradle\caches\etlas\eta-0802\ghc-prim\0.4.0.0-Jhi6UgHuZdoBZWUpVo3WKE\ghc-prim-0.4.0.0-Jhi6UgHuZdoBZWUpVo3WK
E.jar;C:\Users\joachim\.gradle\caches\etlas\eta-0802\rts\0.1.0.0-5Dj4qf1Wx9cCeYbpni5T1w\rts-0.1.0.0-5Dj4qf1Wx9cCeYbpni5T1w.jar;C:\daten\prog\eta\eta-init\build\classes\java\m
ain"
? Successfully built 1 module. Mission Accomplished!
Using self-exec internal setup method with build-type Simple and args:
["act-as-setup","--build-type=Simple","--","register","--verbose=2","--builddir=C:\\daten\\prog\\eta\\eta-init\\build\\eta\\main\\dist\\build\\eta-0.8.0.2\\eta-init-1.0","--i
nplace","--gen-pkg-config=C:\\daten\\prog\\eta\\eta-init\\build\\eta\\main\\dist\\tmp\\package-registration--14876\\pkgConf"]
C:\Users\joachim\.gradle\caches\etlas\1.4.0.0\etlas.exe act-as-setup
--build-type=Simple -- register --verbose=2
--builddir=C:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0
--inplace
--gen-pkg-config=C:\daten\prog\eta\eta-init\build\eta\main\dist\tmp\package-registration--14876\pkgConf
name: eta-init
version: 1.0
id: eta-init-1.0-inplace
key: eta-init-1.0-inplace
license: UnspecifiedLicense
exposed: True
indefinite: False
exposed-modules:
Primes
abi: inplace
trusted: False
import-dirs:
C:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0\build
library-dirs:
C:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0\build
dynamic-library-dirs:
C:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0\build
data-dir: C:\daten\prog\eta\eta-init\build\eta\main
hs-libraries: eta-init-1.0-inplace
depends:
base-4.8.2.0-IPFDtZjmEfh5tPXF10v5hF
abi-depends: base-4.8.2.0-IPFDtZjmEfh5tPXF10v5hF=IPFDtZjmEfh5tPXF10v5hF
haddock-interfaces:
C:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0\doc\html\eta-init\eta-init.etadoc
haddock-html:
C:\daten\prog\eta\eta-init\build\eta\main\dist\build\eta-0.8.0.2\eta-init-1.0\doc\html\eta-init
Creating package registration file:
C:\daten\prog\eta\eta-init\build\eta\main\dist\tmp\package-registration--14876\pkgConf
"C:\Users\joachim\AppData\Roaming\etlas\binaries\cdnverify.eta-lang.org\eta-0.8.0.2\binaries\x86_64-windows\eta-pkg.exe" "update" "-" "--global" "--no-user-package-db" "--pac
kage-db=C:\Users\joachim\AppData\Roaming\etlas\store\eta-0.8.0.2\package.db" "--package-db=C:\daten\prog\eta\eta-init\build\eta\main\dist\packagedb\eta-0.8.0.2"
So my suspicion is that you run into one of the command length limitations from windows (8191 chars for command line, or 32767 chars for createProcess), which will breaks all builds with big classpaths.
For reference, build.gradle looks like this:
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'com.typelead.eta' version '0.7.9'
id "org.jetbrains.intellij" version "0.3.6"
}
eta {
preInstallDependencies = true
version = '0.8.0b2'
etlasVersion = '1.4.0.0'
}
apply plugin: 'idea'
apply plugin: 'org.jetbrains.intellij'
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
intellij {
version 'IC-2018.2'
plugins 'coverage'
pluginName 'treadmill'
}
group 'de.johoop'
version '1.0'
dependencies {
compile eta('base:4.8.2.0')
}
I'm on Windows 10, and I tried using gradle-eta together with an Intellij plugin build (there might be many more things wrong with my build, but I identified one specific one here).
gradlew.bat compileEta
fails with the following output:With
--info
, it tells me additionally:So I tried to execute this exact etlas command line, but with an added
-v
, manually (probably skip down for now instead of checking the detail, the problem is very probably just the length...):I now manually edited
cabal.project.local
(in `build/eta/main´) and checked the classpath. All files listed in there seem to exist in my file system. - So then I removed a big part of the classpath from the file to make it way smaller.After that change, it works smoothly (because I don't need everything from the classpath yet):
So my suspicion is that you run into one of the command length limitations from windows (8191 chars for command line, or 32767 chars for
createProcess
), which will breaks all builds with big classpaths.For reference,
build.gradle
looks like this: