java.util.NoSuchElementException: List is empty.
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start with the stack-trace locations in BeatSaberReferenceManager.kt:112 and BeatSaberReferenceGeneratorAction.kt:27, then compare this report with issue #8. Reproduce the action in Rider 2024.3.3 or 2024.3.6 and verify that the empty-list case no longer raises java.util.NoSuchElementException.
Written by the indexing model from the issue text.
Description
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]
- Dominant language
- C#
- Stars
- 25
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Similar issues
-
documentation
Difficulty 1/5 1-3 hours Newbie friendliness 62/100
-
bug misleading tooling trivial
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Docs example projects pinned to a literal library version instead of 3.*Possibly taken @DaveSkender claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
facioquo/stock-indicators-dotnet#2372 ·
Maintainers usually reply within 1 day
-
[Docs] officecli-docx SKILL.md still describes `\n` as a soft line break after #262Possibly taken @giprime claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Facepunch/sbox-public#12097 ·
Maintainers usually reply within 2 days