Trying out <Zipline> on a new project following th...
# squarelibraries
j
Trying out Zipline on a new project following the ReadMe, but facing the following issue when running
./gradlew -p lib serveDevelopmentZipline --info --continuous
. Do I have to run any tasks before this one in order to have
lib/build/compileSync
generated?
Copy code
A problem was found with the configuration of task ':lib:compileDevelopmentExecutableKotlinJsZipline' (type 'ZiplineCompileTask').
  - Type 'app.cash.zipline.gradle.ZiplineCompileTask' property 'inputDir' specifies directory '/Users/.../lib/build/compileSync/js/main/developmentExecutable/kotlin' which doesn't exist.
    
    Reason: An input file was expected to be present but it doesn't exist.
    
    Possible solutions:
      1. Make sure the directory exists before the task is called.
      2. Make sure that the task which produces the directory is declared as an input.
    
    For more information, please refer to <https://docs.gradle.org/8.2.1/userguide/validation_problems.html#input_file_does_not_exist> in the Gradle documentation.
Please ask if any other info about project setup/versions etc would be required to understand whats going on.
a
I think you might need to run a
./gradlew build
to get the directory populated first
Otherwise the README might be out of date
j
Running
./gradlew build
didn't fix it either. Don't see the
/build/compileSync
folder being generated. I'm also on the k2 compiler. would it have anything to do with that? Not seeing any errors post the build tho.
zipline version -
1.1.0
jdk -
18
kotlin -
1.9.0
with K2 enabled
downgraded to
1.8.21
, no K2, issue still persists.
j
What’s the javascript {} block in your build.gradle file look like?
j
Almost, this is what I have -
Copy code
js(IR) {
        browser()
        binaries.executable()
    }
Using legacy compiler (without
IR
or with
LEGACY
) breaks the build.
Anything else you'd like for me to try folks?
j
Hmmm … can you list the lib/build directory and paste that?
👌 1
Zipline attempts to build from where the compiled JS lands and it’s not finding it
I wonder why
j
this is all I get after
./gradlew -p lib build
j
Hmmmmm
Try lib:compileDevelopmentExecutable ?
j
Copy code
$ ./gradlew lib:compileDevelopmentExecutable

FAILURE: Build failed with an exception.

* What went wrong:
Cannot locate tasks that match 'lib:compileDevelopmentExecutable' as task 'compileDevelopmentExecutable' is ambiguous in project ':lib'. Candidates are: 'compileDevelopmentExecutableKotlinJs', 'compileDevelopmentExecutableKotlinJsZipline', 'compileTestDevelopmentExecutableKotlinJs'.
$ ./gradlew lib:compileDevelopmentExecutableKotlinJsZipline
produces the original error.
$ ./gradlew lib:compileDevelopmentExecutableKotlinJs
passes, but no changes to
lib/build
dir contents.
j
Iiiinteresting
j
Any other ideas @jessewilson?
j
I’d like to figure out what’s different between your project and ours. Kotlin version? Gradle properties related to JS builds? I’m surprised building the executable doesn’t produce a file
j
I'm sure its something silly thats breaking. 😅 Tried with kotlin
1.8.22
, same as whats used by the sample, issue persists. attaching ss of gradle properties and build files. Also, If its okay and if it'll help, I can zip and dm the project since its only a skeleton for now and no actual code. lmk.
j
Yes please!
👍 1