Skip to content

java.util.NoSuchElementException: List is empty. #11

@TheBlackParrot

Description

@TheBlackParrot

Looks like the same exact exception as #8

Using the latest release of BSMT-Rider, occurs in Rider 2024.3.3 and 2024.3.6.

Unhandled exception in [ComponentManager(ProjectImpl@880266938), com.intellij.codeWithMe.ClientIdContextElementPrecursor@6eaf7bc0, CoroutineName(com.github.fernthedev.bsmt_rider.helpers.BeatSaberReferenceManager), Dispatchers.Default]

java.util.NoSuchElementException: List is empty.
	at kotlin.collections.CollectionsKt___CollectionsKt.first(_Collections.kt:221)
	at com.github.fernthedev.bsmt_rider.helpers.BeatSaberReferenceManager.askToAddReferences(BeatSaberReferenceManager.kt:112)
	at com.github.fernthedev.bsmt_rider.actions.BeatSaberReferenceGeneratorAction$actionPerformed$1$1.invokeSuspend(BeatSaberReferenceGeneratorAction.kt:27)
	at com.github.fernthedev.bsmt_rider.actions.BeatSaberReferenceGeneratorAction$actionPerformed$1$1.invoke(BeatSaberReferenceGeneratorAction.kt)
	at com.github.fernthedev.bsmt_rider.actions.BeatSaberReferenceGeneratorAction$actionPerformed$1$1.invoke(BeatSaberReferenceGeneratorAction.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:163)
	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
	at com.intellij.platform.util.progress.ProgressPipeImpl.collectProgressUpdates(ProgressPipe.kt:43)
	at com.intellij.openapi.progress.impl.PlatformTaskSupport$withBackgroundProgressInternalOld$2.invokeSuspend(PlatformTaskSupport.kt:157)
	at com.intellij.openapi.progress.impl.PlatformTaskSupport$withBackgroundProgressInternalOld$2.invoke(PlatformTaskSupport.kt)
	at com.intellij.openapi.progress.impl.PlatformTaskSupport$withBackgroundProgressInternalOld$2.invoke(PlatformTaskSupport.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
	at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:261)
	at com.intellij.openapi.progress.impl.PlatformTaskSupport.withBackgroundProgressInternalOld(PlatformTaskSupport.kt:150)
	at com.intellij.openapi.progress.impl.PlatformTaskSupport.access$withBackgroundProgressInternalOld(PlatformTaskSupport.kt:57)
	at com.intellij.openapi.progress.impl.PlatformTaskSupport$withBackgroundProgressInternal$2.invokeSuspend(PlatformTaskSupport.kt:91)
	at com.intellij.openapi.progress.impl.PlatformTaskSupport$withBackgroundProgressInternal$2.invoke(PlatformTaskSupport.kt)
	at com.intellij.openapi.progress.impl.PlatformTaskSupport$withBackgroundProgressInternal$2.invoke(PlatformTaskSupport.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
	at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:261)
	at com.intellij.openapi.progress.impl.PlatformTaskSupport.withBackgroundProgressInternal(PlatformTaskSupport.kt:89)
	at com.intellij.platform.ide.progress.TasksKt.withBackgroundProgress(tasks.kt:56)
	at com.intellij.platform.ide.progress.TasksKt.withBackgroundProgress(tasks.kt:31)
	at com.github.fernthedev.bsmt_rider.actions.BeatSaberReferenceGeneratorAction$actionPerformed$1.invokeSuspend(BeatSaberReferenceGeneratorAction.kt:26)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [ComponentManager(ProjectImpl@880266938), com.intellij.codeWithMe.ClientIdContextElementPrecursor@6eaf7bc0, CoroutineName(com.github.fernthedev.bsmt_rider.helpers.BeatSaberReferenceManager), StandaloneCoroutine{Cancelled}@35397fca, Dispatchers.Default]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions