Skip to content

update command results in NoClassDefFoundError after successful installation #2

@heldercorreia

Description

@heldercorreia

When trying to update to the latest version on macOS, I got this:

$ composables update
Installing Composables CLI...
Fetching latest version...
Latest version: 0.4.1
Downloading from https://github.com/composablehorizons/composables-cli/releases/download/0.4.1/composables.jar...
######################################################################## 100.0%
✓ Downloaded composables.jar
Creating wrapper script...
Composables CLI already in PATH
Testing installation...
✓ Composables CLI installed successfully!

Usage:
  composables --help               - Show all available commands

Note: Restart your terminal or run 'source /Users/helder/.bash_profile' to use composables from anywhere
Exception in thread "main" java.lang.NoClassDefFoundError: kotlin/jdk7/AutoCloseableKt
	at com.github.ajalt.clikt.core.CoreCliktCommandKt.parse(CoreCliktCommand.kt:119)
	at com.github.ajalt.clikt.core.CoreCliktCommandKt.main(CoreCliktCommand.kt:78)
	at com.github.ajalt.clikt.core.CoreCliktCommandKt.main(CoreCliktCommand.kt:90)
	at com.composables.cli.CliKt.main(Cli.kt:25)
	at com.composables.cli.CliKt$main$2.invoke(Cli.kt)
	at com.composables.cli.CliKt$main$2.invoke(Cli.kt)
	at kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt$createCoroutineUnintercepted$$inlined$createCoroutineFromSuspendFunction$IntrinsicsKt__IntrinsicsJvmKt$1.invokeSuspend(IntrinsicsJvm.kt:270)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
	at kotlin.coroutines.ContinuationKt.startCoroutine(Continuation.kt:115)
	at kotlin.coroutines.jvm.internal.RunSuspendKt.runSuspend(RunSuspend.kt:19)
	at com.composables.cli.CliKt.main(Cli.kt)
Caused by: java.lang.ClassNotFoundException: kotlin.jdk7.AutoCloseableKt
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
	... 11 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions