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

修复使用 Console 扩展时,对于扩展的函数返回非 null 值报错的情况 #2528

Merged
merged 1 commit into from
Feb 24, 2023

Conversation

NoMathExpectation
Copy link
Contributor

2023-02-24 01:03:20 E/Chat Command: Exception in coroutine Plugin net.mamoe.mirai.console.chat-command of Chat Command
net.mamoe.mirai.console.extension.ExtensionException: Exception while executing extension 'NoMathExpectation.NMEBoot.commands.InterceptingCommandCall' provided by plugin 'NMEBoot', registered for 'net.mamoe.mirai.console.extensions.CommandCallInterceptorProvider'
	at net.mamoe.mirai.console.internal.extension.AbstractConcurrentComponentStorage.throwExtensionException$mirai_console(ComponentStorageInternal.kt:133)
	at net.mamoe.mirai.console.command.resolve.CommandCallInterceptor$Companion.intercepted(CommandCallInterceptor.kt:211)
	at net.mamoe.mirai.console.internal.command.CommandManagerImplKt.executeCommandImpl(CommandManagerImpl.kt:142)
	at net.mamoe.mirai.console.command.CommandManager.executeCommand$suspendImpl(CommandManager.kt:130)
	at net.mamoe.mirai.console.command.CommandManager.executeCommand(CommandManager.kt)
	at net.mamoe.mirai.console.command.CommandManager$INSTANCE.executeCommand(CommandManager.kt)
	at net.mamoe.mirai.console.command.CommandManager.executeCommand$default(CommandManager.kt:125)
	at chat-command-0.5.1.jar//net.mamoe.mirai.console.plugins.chat.command.PluginMain.handleCommand(PluginMain.kt:86)
	at chat-command-0.5.1.jar//net.mamoe.mirai.console.plugins.chat.command.PluginMain$onEnable$2$1.invokeSuspend(PluginMain.kt:69)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: java.lang.AssertionError: Reached an unexpected branch.
	at net.mamoe.mirai.console.command.resolve.CommandCallInterceptor$Companion.intercepted(CommandCallInterceptor.kt:209)
	... 13 more

@Him188 Him188 added t:bug 类型: bug M 优先级: 主要 s:console 子系统: mirai-console labels Feb 23, 2023
@Him188 Him188 added this to the 2.15.0-RC milestone Feb 23, 2023
@NoMathExpectation
Copy link
Contributor Author

草,不小心按错了

@Him188 Him188 merged commit a6afd95 into mamoe:dev Feb 24, 2023
@Him188 Him188 removed their request for review February 24, 2023 02:16
@Him188 Him188 modified the milestones: 2.15.0-RC, 2.15.0-M1 Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
M 优先级: 主要 s:console 子系统: mirai-console t:bug 类型: bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants