-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
bugSomething isn't workingSomething isn't workinglang:javaIssues relating to Java language supportIssues relating to Java language supportlang:kotlinRelated to Kotlin lang supportRelated to Kotlin lang supportplatform:jvmPRs and issues relating to JVM support.PRs and issues relating to JVM support.
Milestone
Description
Expected Behavior
(having set JAVA_HOME before)
(1) elide run ./some-kotlin-or-java.kts
(2) It runs on regular JVM
(3) unset JAVA_HOME
(4) It runs due to Elide supporting JVM via Espresso
Actual Behaviour
(having set JAVA_HOME before)
(1) elide run ./some-kotlin-or-java.kts
(2) It runs on regular JVM
(3) unset JAVA_HOME
(4) Elide crashes
Stacktrace
java.lang.IllegalStateException: No suitable JVM runner found
at elide.tool.cli.cmd.repl.ToolShellCommand$executeWithJvmRunner$1.invokeSuspend(ToolShellCommand.kt:1379)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:48)
at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
at elide.tool.cli.cmd.repl.ToolShellCommand.executeWithJvmRunner(ToolShellCommand.kt:1359)
at elide.tool.cli.cmd.repl.ToolShellCommand.executeWithJvmRunner$default(ToolShellCommand.kt:1355)
at elide.tool.cli.cmd.repl.ToolShellCommand.compileEntrypoint$lambda$38(ToolShellCommand.kt:1424)
at elide.tool.cli.cmd.repl.ToolShellCommand.executeCompiled(ToolShellCommand.kt:1890)
at elide.tool.cli.cmd.repl.ToolShellCommand.invoke$lambda$198$lambda$181(ToolShellCommand.kt:2899)
at elide.tool.cli.AbstractSubcommand.withDeferredContext(AbstractSubcommand.kt:686)
at elide.tool.cli.AbstractSubcommand.withDeferredContext$default(AbstractSubcommand.kt:680)
at elide.tool.cli.cmd.repl.ToolShellCommand.invoke(ToolShellCommand.kt:2789)
at elide.tool.cli.cmd.repl.ToolShellCommand$invoke$1.invokeSuspend(ToolShellCommand.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:48)
at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
at elide.tool.cli.AbstractToolCommand.call(AbstractToolCommand.kt:297)
at elide.tool.cli.AbstractToolCommand.call(AbstractToolCommand.kt:57)
at picocli.CommandLine.executeUserObject(CommandLine.java:2031)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2469)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2461)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2423)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2425)
at picocli.CommandLine.execute(CommandLine.java:2174)
at elide.tool.cli.Elide$Companion.entry(Elide.kt:596)
at elide.tool.cli.MainKt.main(main.kt:346)
at [email protected]/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
Exiting with code -1 due to uncaught java.lang.IllegalStateException: No suitable JVM runner found
Steps To Reproduce
See above
Environment Information
- Operating System: Linux (Ubuntu)
- Architecture: x86-64
Runtime
Native
Language
JVM
Example Application
No response
Version
1.0.0-beta8
Metadata
Metadata
Labels
bugSomething isn't workingSomething isn't workinglang:javaIssues relating to Java language supportIssues relating to Java language supportlang:kotlinRelated to Kotlin lang supportRelated to Kotlin lang supportplatform:jvmPRs and issues relating to JVM support.PRs and issues relating to JVM support.
Type
Projects
Status
In Progress