https://kotlinlang.org logo
Title
s

snowe

03/11/2021, 2:18 AM
@sam I'm having trouble finding how to build the project. I want to work on the Quarkus extension, but can't for the life of me figure out which gradle tasks I should be building.
s

sam

03/11/2021, 2:20 AM
./gradlew check from root should do it
That's what the CI does for example
s

snowe

03/11/2021, 2:23 AM
hm. running that command gives a failure.
> Task :kotest-common:compileKotlinIosX64 FAILED
xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH
e: org.jetbrains.kotlin.konan.MissingXcodeException: An error occurred during an xcrun execution. Make sure that Xcode and its command line tools are properly installed.
        at org.jetbrains.kotlin.konan.target.CurrentXcode.xcrun(Xcode.kt:77)
        at org.jetbrains.kotlin.konan.target.CurrentXcode.access$xcrun(Xcode.kt:45)
        at org.jetbrains.kotlin.konan.target.CurrentXcode$version$2.invoke(Xcode.kt:70)
        at org.jetbrains.kotlin.konan.target.CurrentXcode$version$2.invoke(Xcode.kt:45)
        at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
        at org.jetbrains.kotlin.konan.target.CurrentXcode.getVersion(Xcode.kt)
        at org.jetbrains.kotlin.konan.target.AppleConfigurablesImpl$xcodePartsProvider$2.invoke(Apple.kt:71)
        at org.jetbrains.kotlin.konan.target.AppleConfigurablesImpl$xcodePartsProvider$2.invoke(Apple.kt:24)
        at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
        at org.jetbrains.kotlin.konan.target.AppleConfigurablesImpl.getXcodePartsProvider(Apple.kt)
        at org.jetbrains.kotlin.konan.target.AppleConfigurablesImpl.getDependencies(Apple.kt:58)
        at org.jetbrains.kotlin.konan.util.DependencyProcessor.<init>(DependencyProcessor.kt:117)
        at org.jetbrains.kotlin.konan.util.DependencyProcessor.<init>(DependencyProcessor.kt:114)
        at org.jetbrains.kotlin.konan.properties.KonanPropertiesLoader$dependencyProcessor$2.invoke(KonanProperties.kt:79)
        at org.jetbrains.kotlin.konan.properties.KonanPropertiesLoader$dependencyProcessor$2.invoke(KonanProperties.kt:37)
        at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
        at org.jetbrains.kotlin.konan.properties.KonanPropertiesLoader.getDependencyProcessor(KonanProperties.kt)
        at org.jetbrains.kotlin.konan.properties.KonanPropertiesLoader.downloadDependencies(KonanProperties.kt:58)
        at org.jetbrains.kotlin.konan.target.Platform.downloadDependencies(Platform.kt)
        at org.jetbrains.kotlin.backend.konan.KonanConfig.<init>(KonanConfig.kt:66)
        at org.jetbrains.kotlin.cli.bc.K2Native.doExecute(K2Native.kt:64)
        at org.jetbrains.kotlin.cli.bc.K2Native.doExecute(K2Native.kt:35)
        at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:88)
        at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:44)
        at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:98)
        at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:76)
        at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:45)
        at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit(CLITool.kt:227)
        at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit$default(CLITool.kt:222)
        at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMain(CLITool.kt:214)
        at org.jetbrains.kotlin.cli.bc.K2Native$Companion$main$1.invoke(K2Native.kt:273)
        at org.jetbrains.kotlin.cli.bc.K2Native$Companion$main$1.invoke(K2Native.kt:270)
        at org.jetbrains.kotlin.util.UtilKt.profileIf(Util.kt:27)
        at org.jetbrains.kotlin.util.UtilKt.profile(Util.kt:21)
        at org.jetbrains.kotlin.cli.bc.K2Native$Companion.main(K2Native.kt:272)
        at org.jetbrains.kotlin.cli.bc.K2NativeKt.main(K2Native.kt:484)
        at org.jetbrains.kotlin.cli.utilities.MainKt$main$1.invoke(main.kt:41)
        at org.jetbrains.kotlin.cli.utilities.MainKt$main$1.invoke(main.kt)
        at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:17)
        at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:41)
Caused by: org.jetbrains.kotlin.konan.KonanExternalToolFailure: The /usr/bin/xcrun command returned non-zero exit code: 72.
output:

        at org.jetbrains.kotlin.konan.exec.Command.handleExitCode(ExecuteCommand.kt:114)
        at org.jetbrains.kotlin.konan.exec.Command.getResult(ExecuteCommand.kt:103)
        at org.jetbrains.kotlin.konan.exec.Command.getOutputLines(ExecuteCommand.kt:82)
        at org.jetbrains.kotlin.konan.exec.Command.getOutputLines$default(ExecuteCommand.kt:81)
        at org.jetbrains.kotlin.konan.target.CurrentXcode.xcrun(Xcode.kt:75)
        ... 39 more


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':kotest-common:compileKotlinIosX64'.
> Process 'command '/Users/tyler/.sdkman/candidates/java/8.0.265.hs-adpt/bin/java'' finished with non-zero exit value 2

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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See <https://docs.gradle.org/6.8/userguide/command_line_interface.html#sec:command_line_warnings>

BUILD FAILED in 4s
2 actionable tasks: 1 executed, 1 up-to-date

kotest on  master via :coffee: v1.8.0 via 🅺 on :cloud:  (us-west-2) took 5s
❯ xcodebuild -h
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
i have xcodebuild installed.
s

sam

03/11/2021, 2:28 AM
No idea don't use a mac. I guess you need some library that xcode provides?
Sounds like your tooling isn't setup right
s

snowe

03/11/2021, 2:29 AM
I can try building on my windows box if you think it has a better chance there.
I'm not trying to build for native though. Quarkus is jvm and graalvm, so I should be able to just build for jvm right?
why should I need xcode?
s

sam

03/11/2021, 2:30 AM
Well I use linux but loads of other people use mac and windows. I don't know what xcode is
@Jim uses windows to work on kotest
Maybe @LeoColman uses a mac
l

LeoColman

03/11/2021, 2:31 AM
I don't, I use Linux
s

sam

03/11/2021, 2:32 AM
Ok
s

snowe

03/11/2021, 2:33 AM
I should be able to exclude these build targets though right? I don't care about compiling for ios/mac/etc. just jvm.
s

sam

03/11/2021, 2:34 AM
Right
Maybe that's why it fails
s

snowe

03/11/2021, 2:34 AM
but what command builds just for jvm?
jvm
?
jvmJar
?
s

sam

03/11/2021, 2:35 AM
It's long winded. Do a gradlew tasks to get the list
I'm on a phone atm
s

snowe

03/11/2021, 2:35 AM
I'm looking at it in intellij, it's just not clear which one does what.
oh tasks will give a description. got it.
s

sam

03/11/2021, 2:38 AM
Yeah gives you a list
There's probably something like compileJvm
s

snowe

03/11/2021, 2:39 AM
it's
jvm
or
jvmJar
. even the tasks task doesn't give a differentiating description.
s

sam

03/11/2021, 2:39 AM
Hmmm
Well I'll be home in an hour lol
s

snowe

03/11/2021, 2:40 AM
i tried jar and it built. or. well. it succeeded.
s

sam

03/11/2021, 2:40 AM
Oh ok
That's good
Or just install linux ;)
Join the dark side
s

snowe

03/11/2021, 2:40 AM
lol i have a vm I'm just lazy.
s

sam

03/11/2021, 2:42 AM
Haha
I think quercus will just work
s

snowe

03/11/2021, 2:45 AM
hm. ok. I can try haha. did y'all get further with the junit extension?
last time I had tried it failed.
s

sam

03/11/2021, 2:45 AM
But the demo project needs setting up so we have something to test on
s

snowe

03/11/2021, 2:45 AM
ah, in the examples repo?
s

sam

03/11/2021, 2:45 AM
Yeah there's another repo for it
s

snowe

03/11/2021, 2:46 AM
yeah I already cloned.
working on it right now.
s

sam

03/11/2021, 2:49 AM
Cool
c

christophsturm

03/11/2021, 7:53 AM
xcode-select --install
to install the commandline tools
👍 1
s

snowe

03/11/2021, 5:44 PM
Yeah they were already installed. if you look at the above error message you see I can call xcodebuild just fine.
c

christophsturm

03/11/2021, 8:41 PM
where does it show that you can run xcodebuild just fine? but it seems xcode-select --install is the wrong advice anyway. you need to go to xcode settings and set it there
s

snowe

03/12/2021, 5:44 PM
Sorry, I meant that xcodebuild is a command that is available. And yeah I don't have xcode actually installed. just the cli tools.