Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interactive List Selection doesn't work in Termux #247

Open
juraj-hrivnak opened this issue Jan 4, 2025 · 0 comments
Open

Interactive List Selection doesn't work in Termux #247

juraj-hrivnak opened this issue Jan 4, 2025 · 0 comments

Comments

@juraj-hrivnak
Copy link

screen-20250104-141147.mp4

Using:

  • OpenJDK 17
  • clikt:5.0.1
  • mordant-jvm-jna:3.0.1

Previously it threw this exception when :mordant-jvm-jna was not used:

Exception in thread "main" java.lang.UnsupportedOperationException: Cannot find terminal interface that supports raw mode. You need at least one of the :mordant-jvm-* modules on your classpath.
The :mordant module includes all of them as transitive dependencies.
If you're using :mordant-core instead, you need to add one or more manually. If you're using only :mordant-jvm-ffm, make sure you're running with JVM 22+, and are passing
--enable-native-access=ALL-UNNAMED as a JVM argument.

    at com.github.ajalt.mordant.internal.DumbTerminalInterface.enterRawMode(MppInternal.jvm.kt:173)
    at com.github.ajalt.mordant.input.RawModeKt.enterRawMode(RawMode.kt:19)
    at com.github.ajalt.mordant.input.ReceiveEventsKt.receiveEvents(ReceiveEvents.kt:16)
    at com.github.ajalt.mordant.input.InteractiveSelectListKt.interactiveSelectListString(InteractiveSelectList.kt:110)
    at teksturepako.pakku.cli.cmd.Init$run$1.invokeSuspend(Init.kt:75)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101)
    at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
    at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:95)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:69)
    at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
    at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:47)
    at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
    at teksturepako.pakku.cli.cmd.Init.run(Init.kt:19)
    at com.github.ajalt.clikt.core.CoreCliktCommandKt.parse(CoreCliktCommand.kt:107)
    at com.github.ajalt.clikt.core.CoreCliktCommandKt.main(CoreCliktCommand.kt:78)
    at com.github.ajalt.clikt.core.CoreCliktCommandKt.main(CoreCliktCommand.kt:90)
    at teksturepako.pakku.MainKt.main(Main.kt:33)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant