HoshinoYumemi - Plugin
-
为啥我加载成功了也没报红,咋机器人没反应
-
功能很多,谢谢大佬了
-
@JustinHuangber 应该会有报绿,因为我把大多数抛出异常的地方都给捕获了,所以报红比较少,你看应该会有正常的println输出,输出的是一行错误信息,一般来说是API没有设定的问题
-
@未来のミライ 理论上来说这个插件的功能和我们群友的需求成正相关()如果你们有啥意见都可以提,如果有BUG在我的GitHub提交就可以了()
-
此回复已被删除! -
报红了
2022-06-22 18:38:50 E/Bot.2351718332: java.lang.IllegalStateException: Exception while broadcasting event 'BotOnlineEvent'
java.lang.IllegalStateException: Exception while broadcasting event 'BotOnlineEvent'
at net.mamoe.mirai.internal.network.components.EventDispatcherImpl.broadcast$suspendImpl(EventDispatcher.kt:96)
at net.mamoe.mirai.internal.network.components.EventDispatcherImpl$broadcast$1.invokeSuspend(EventDispatcher.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:202)
at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:202)
at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
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:749)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: java.lang.IllegalStateException: 未找到异常处理器. 请继承 SimpleListenerHost 中的 handleException 方法, 或在构造 SimpleListenerHost 时提供 CoroutineExceptionHandlerCannot find exception handler from coroutineContext.
Please extend SimpleListenerHost.handleException or provide a CoroutineExceptionHandler to the constructor of SimpleListenerHost
at net.mamoe.mirai.event.SimpleListenerHost.handleException(JvmMethodListeners.kt:192)
at net.mamoe.mirai.event.SimpleListenerHost$special$$inlined$CoroutineExceptionHandler$1.handleException(CoroutineExceptionHandler.kt:111)
at net.mamoe.mirai.internal.event.Handler.onEvent(InternalEventListeners.kt:52)
at net.mamoe.mirai.internal.event.Handler$onEvent$1.invokeSuspend(InternalEventListeners.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
... 8 more
Caused by: net.mamoe.mirai.event.ExceptionInEventHandlerException: Exception in EventHandler
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callFunction(JvmMethodListenersInternal.kt:91)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.access$registerEventHandler$callFunction(JvmMethodListenersInternal.kt:1)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt$registerEventHandler$callFunction$1.invokeSuspend(JvmMethodListenersInternal.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
... 5 more
Caused by: kotlinx.serialization.MissingFieldException: Field 'testSpecialize' is required for type with serial name 'srh.shirakana.hoshinoyumemi.UserWorks.UserWorksData', but it was missing
at kotlinx.serialization.internal.PluginExceptionsKt.throwMissingFieldException(PluginExceptions.kt:20)
at HoshiniYumemi-0.0.2.mirai.jar//srh.shirakana.hoshinoyumemi.UserWorks$UserWorksData.<init>(Work.kt:15)
at HoshiniYumemi-0.0.2.mirai.jar//srh.shirakana.hoshinoyumemi.UserWorks$UserWorksData$$serializer.deserialize(Work.kt:15)
at HoshiniYumemi-0.0.2.mirai.jar//srh.shirakana.hoshinoyumemi.UserWorks$UserWorksData$$serializer.deserialize(Work.kt:15)
at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:59)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:36)
at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableValue(AbstractDecoder.kt:43)
at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableElement(AbstractDecoder.kt:70)
at kotlinx.serialization.encoding.CompositeDecoder$DefaultImpls.decodeSerializableElement$default(Decoding.kt:535)
at kotlinx.serialization.internal.ListLikeSerializer.readElement(CollectionSerializers.kt:80)
at kotlinx.serialization.internal.AbstractCollectionSerializer.readElement$default(CollectionSerializers.kt:51)
at kotlinx.serialization.internal.AbstractCollectionSerializer.merge(CollectionSerializers.kt:36)
at kotlinx.serialization.internal.AbstractCollectionSerializer.deserialize(CollectionSerializers.kt:43)
at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:59)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:36)
at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableValue(AbstractDecoder.kt:43)
at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableElement(AbstractDecoder.kt:70)
at HoshiniYumemi-0.0.2.mirai.jar//srh.shirakana.hoshinoyumemi.UserWorks$$serializer.deserialize(Work.kt:12)
at HoshiniYumemi-0.0.2.mirai.jar//srh.shirakana.hoshinoyumemi.UserWorks$$serializer.deserialize(Work.kt:12)
at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:59)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:36)
at kotlinx.serialization.json.Json.decodeFromString(Json.kt:100)
at HoshiniYumemi-0.0.2.mirai.jar//srh.shirakana.hoshinoyumemi.ShirakanaEventListener.handle0$HoshiniYumemi(NinnMu.kt:453)
at HoshiniYumemi-0.0.2.mirai.jar//srh.shirakana.hoshinoyumemi.ShirakanaEventListener$handle0$1.invokeSuspend(NinnMu.kt)
... 6 more -
不显示是为什么呢
-
@firefairy 字符集问题吧()
-
@JustinHuangber 在 HoshinoYumemi - Plugin 中说:
Caused by: kotlinx.serialization.MissingFieldException: Field 'testSpecialize' is required for type with serial name 'srh.shirakana.hoshinoyumemi.UserWorks.UserWorksData', but it was missing
Caused by: kotlinx.serialization.MissingFieldException: Field 'testSpecialize' is required for type with serial name 'srh.shirakana.hoshinoyumemi.UserWorks.UserWorksData', but it was missing,是在更新版本之后我将User类重写了,导致了以前的Json少了Field'testSpecialize'删掉srh.shirakana.hoshinoyumemi/UserWorks/UserWorksData.json就可以了
-
建议可以加一个是否启用腾讯云自然语言的开关(yysy那个好傻的)
-
@Sakurashiyo 确实挺傻,但是目前找不到另一个合适的。等以后加开关(这周考试周)
-
@yuudachi 添加了中文指令了,可以再翻一遍readme找到
-
@藤原白叶 更新0.0.3后貌似/eroImage g和s 都不好使了
-
@藤原白叶 2022-06-30 00:29:05 E/Bot.1085833743: java.lang.IllegalStateException: Exception while broadcasting event 'BotOnlineEvent'
java.lang.IllegalStateException: Exception while broadcasting event 'BotOnlineEvent'
at net.mamoe.mirai.internal.network.components.EventDispatcherImpl.broadcast$suspendImpl(EventDispatcher.kt:96)
at net.mamoe.mirai.internal.network.components.EventDispatcherImpl$broadcast$1.invokeSuspend(EventDispatcher.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:202)
at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:202)
at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
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:749)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: java.lang.IllegalStateException: 未找到异常处理器. 请继承 SimpleListenerHost 中的 handleException 方法, 或在 构造 SimpleListenerHost 时提供 CoroutineExceptionHandlerCannot find exception handler from coroutineContext.
Please extend SimpleListenerHost.handleException or provide a CoroutineExceptionHandler to the constructor of SimpleListenerHost
at net.mamoe.mirai.event.SimpleListenerHost.handleException(JvmMethodListeners.kt:192)
at net.mamoe.mirai.event.SimpleListenerHost$special$$inlined$CoroutineExceptionHandler$1.handleException(CoroutineExceptionHandler.kt:111)
at net.mamoe.mirai.internal.event.Handler.onEvent(InternalEventListeners.kt:52)
at net.mamoe.mirai.internal.event.Handler$onEvent$1.invokeSuspend(InternalEventListeners.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
... 8 more
Caused by: net.mamoe.mirai.event.ExceptionInEventHandlerException: Exception in EventHandler
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.registerEventHandler$callFunction(JvmMethodListenersInternal.kt:91)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt.access$registerEventHandler$callFunction(JvmMethodListenersInternal.kt:1)
at net.mamoe.mirai.internal.event.JvmMethodListenersInternalKt$registerEventHandler$callFunction$1.invokeSuspend(JvmMethodListenersInternal.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
... 5 more
Caused by: kotlinx.serialization.MissingFieldException: Field 'testSpecialize' is required for type with serial name 'srh.shirakana.hoshinoyumemi.UserWorks.UserWorksData', but it was missing
at kotlinx.serialization.internal.PluginExceptionsKt.throwMissingFieldException(PluginExceptions.kt:20)
at HoshiniYumemi-0.0.3.mirai.jar//srh.shirakana.hoshinoyumemi.UserWorks$UserWorksData.<init>(Work.kt:15)
at HoshiniYumemi-0.0.3.mirai.jar//srh.shirakana.hoshinoyumemi.UserWorks$UserWorksData$$serializer.deserialize(Work.kt:15)
at HoshiniYumemi-0.0.3.mirai.jar//srh.shirakana.hoshinoyumemi.UserWorks$UserWorksData$$serializer.deserialize(Work.kt:15)
at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:59)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:36)
at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableValue(AbstractDecoder.kt:43)
at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableElement(AbstractDecoder.kt:70)
at kotlinx.serialization.encoding.CompositeDecoder$DefaultImpls.decodeSerializableElement$default(Decoding.kt:535)
at kotlinx.serialization.internal.ListLikeSerializer.readElement(CollectionSerializers.kt:80)
at kotlinx.serialization.internal.AbstractCollectionSerializer.readElement$default(CollectionSerializers.kt:51)
at kotlinx.serialization.internal.AbstractCollectionSerializer.merge(CollectionSerializers.kt:36)
at kotlinx.serialization.internal.AbstractCollectionSerializer.deserialize(CollectionSerializers.kt:43)
at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:59)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:36)
at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableValue(AbstractDecoder.kt:43)
at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableElement(AbstractDecoder.kt:70)
at HoshiniYumemi-0.0.3.mirai.jar//srh.shirakana.hoshinoyumemi.UserWorks$$serializer.deserialize(Work.kt:12)
at HoshiniYumemi-0.0.3.mirai.jar//srh.shirakana.hoshinoyumemi.UserWorks$$serializer.deserialize(Work.kt:12)
at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:59)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:36)
at kotlinx.serialization.json.Json.decodeFromString(Json.kt:100)
at HoshiniYumemi-0.0.3.mirai.jar//srh.shirakana.hoshinoyumemi.ShirakanaEventListener.handle0$HoshiniYumemi(NinnMu.kt:463)
at HoshiniYumemi-0.0.3.mirai.jar//srh.shirakana.hoshinoyumemi.ShirakanaEventListener$handle0$1.invokeSuspend(NinnMu.kt)
... 6 more -
@yuudachi 这个问题就是从json构造类的时候,由于我重写了类,类名也有修改,所以无法载入field了,结局方法在前面说了
-
@藤原白叶 但是我没找到userworks文件夹(
-
@firefairy 这边是可以正常使用的,可能是你在用的时候正好lolicon炸了,或者是网络问题吧(髪国军礼滑稽)
-
@yuudachi 艹,路径说错了,说成内测版的路径了()
正确的路径是data\srh.shirakana.hoshinoyumemi.plugin\users.json -
此回复已被删除! -
2022-07-31 12:49:40 W/com.github.kloping.FlyChess: Linked class javax.xml.bind.annotation.XmlAccessorType in HoshiniYumemi-0.0.3.mirai.jar but plugin not depend on it.
2022-07-31 12:49:40 W/com.github.kloping.FlyChess: Class loading logic may change in feature.