YiiGuxing / TranslationPlugin

Translation plugin for IntelliJ based IDEs/Android Studio.
https://intellij-translation.yiiguxing.top
MIT License
11.29k stars 785 forks source link

[Auto Generated]Plugin error occurred: Language: JavaScript != Language: ECMA Script Level 4 #5424

Closed intellij-translation-plugin-bot closed 7 months ago

intellij-translation-plugin-bot commented 7 months ago

:warning:[Auto Generated Report]-=90CD6A76FC0A65F03DABB91DC00065AE=-

Description

Language: JavaScript != Language: ECMA Script Level 4

Environments

Plugin version: 3.5.7

IntelliJ IDEA 2024.1 RC (Ultimate Edition) Build #IU-241.14494.158, built on March 21, 2024 Runtime version: 17.0.10+8-b1207.12 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Operating system: macOS 14.4.1 Last action id: SaveAll

Stack Trace

java.lang.AssertionError: Language: JavaScript != Language: ECMA Script Level 4
    at com.intellij.extapi.psi.PsiFileBase.<init>(PsiFileBase.java:30)
    at com.intellij.lang.javascript.psi.impl.JSFileBaseImpl.<init>(JSFileBaseImpl.java:46)
    at com.intellij.lang.javascript.psi.impl.JSFileImpl.<init>(JSFileImpl.java:42)
    at com.intellij.lang.javascript.JavascriptParserDefinition.createFile(JavascriptParserDefinition.java:93)
    at com.intellij.psi.AbstractFileViewProvider.createFile(AbstractFileViewProvider.java:139)
    at com.intellij.psi.AbstractFileViewProvider.createFile(AbstractFileViewProvider.java:124)
    at com.intellij.psi.AbstractFileViewProvider.createFile(AbstractFileViewProvider.java:114)
    at com.intellij.psi.SingleRootFileViewProvider.createFile(SingleRootFileViewProvider.java:144)
    at com.intellij.psi.SingleRootFileViewProvider.getPsiInner(SingleRootFileViewProvider.java:101)
    at com.intellij.psi.AbstractFileViewProvider.getPsi(AbstractFileViewProvider.java:185)
    at com.intellij.psi.impl.PsiFileFactoryImpl.trySetupPsiForFile(PsiFileFactoryImpl.java:107)
    at com.intellij.psi.impl.PsiFileFactoryImpl.createFileFromText(PsiFileFactoryImpl.java:74)
    at com.intellij.psi.impl.PsiFileFactoryImpl.createFileFromText(PsiFileFactoryImpl.java:59)
    at com.intellij.psi.impl.PsiFileFactoryImpl.createFileFromText(PsiFileFactoryImpl.java:53)
    at com.intellij.psi.impl.PsiFileFactoryImpl.createFileFromText(PsiFileFactoryImpl.java:47)
    at com.intellij.psi.PsiFileFactory.createFileFromText(PsiFileFactory.java:45)
    at com.intellij.openapi.editor.richcopy.HtmlSyntaxInfoUtil.appendHighlightedByLexerAndEncodedAsHtmlCodeSnippet(HtmlSyntaxInfoUtil.java:136)
    at com.intellij.openapi.editor.richcopy.HtmlSyntaxInfoUtil.appendHighlightedByLexerAndEncodedAsHtmlCodeSnippet(HtmlSyntaxInfoUtil.java:116)
    at com.intellij.lang.documentation.QuickDocHighlightingHelper.appendHighlightedCode(QuickDocHighlightingHelper.kt:323)
    at com.intellij.lang.documentation.QuickDocHighlightingHelper.appendStyledCodeBlock(QuickDocHighlightingHelper.kt:60)
    at com.intellij.lang.documentation.QuickDocHighlightingHelper.getStyledCodeBlock(QuickDocHighlightingHelper.kt:46)
    at com.intellij.markdown.utils.doc.impl.DocCodeBlockGeneratingProvider.processNode(DocGeneratingProviders.kt:62)
    at org.intellij.markdown.html.HtmlGenerator$HtmlGeneratingVisitor.visitNode(HtmlGenerator.kt:47)
    at org.intellij.markdown.ast.ASTNodeKt.accept(ASTNode.kt:15)
    at org.intellij.markdown.ast.ASTNodeKt.acceptChildren(ASTNode.kt:20)
    at org.intellij.markdown.html.HtmlGenerator$HtmlGeneratingVisitor.visitNode(HtmlGenerator.kt:48)
    at org.intellij.markdown.html.HtmlGenerator.generateHtml(HtmlGenerator.kt:41)
    at com.intellij.markdown.utils.doc.DocMarkdownToHtmlConverter.performConversion(DocMarkdownToHtmlConverter.kt:209)
    at com.intellij.markdown.utils.doc.DocMarkdownToHtmlConverter.convert(DocMarkdownToHtmlConverter.kt:136)
    at com.intellij.markdown.utils.doc.DocMarkdownToHtmlConverter.convert$default(DocMarkdownToHtmlConverter.kt:86)
    at com.intellij.markdown.utils.doc.DocMarkdownToHtmlConverter.convert(DocMarkdownToHtmlConverter.kt)
    at com.intellij.lang.javascript.documentation.JSDocBuilderSimpleInfo.convertMarkdownToHtml(JSDocBuilderSimpleInfo.java:63)
    at com.intellij.lang.javascript.documentation.JSDocumentationBuilder.postProcessDescription(JSDocumentationBuilder.java:123)
    at com.intellij.lang.javascript.documentation.JSDocumentationUtils.buildDescription(JSDocumentationUtils.java:235)
    at com.intellij.lang.javascript.psi.jsdoc.impl.JSDocDescriptionImpl.getDescriptionText(JSDocDescriptionImpl.java:66)
    at com.intellij.lang.javascript.documentation.JSDocumentationBuilder.visitDescription(JSDocumentationBuilder.java:129)
    at com.intellij.lang.javascript.psi.jsdoc.impl.JSDocCommentImpl.acceptChildren(JSDocCommentImpl.java:117)
    at com.intellij.lang.javascript.documentation.JSDocumentationUtils.processDocumentationTextFromComment(JSDocumentationUtils.java:152)
    at com.intellij.lang.javascript.documentation.JSDocumentationProvider.generateDoc(JSDocumentationProvider.java:344)
    at com.intellij.lang.javascript.documentation.JSDocumentationProvider.generateDoc(JSDocumentationProvider.java:246)
    at com.intellij.lang.documentation.CompositeDocumentationProvider.generateDoc(CompositeDocumentationProvider.java:135)
    at cn.yiiguxing.plugin.translate.provider.TranslatedDocumentationProvider$generateDoc$1$originalDoc$1.invoke(TranslatedDocumentationProvider.kt:38)
    at cn.yiiguxing.plugin.translate.provider.TranslatedDocumentationProvider$generateDoc$1$originalDoc$1.invoke(TranslatedDocumentationProvider.kt:38)
    at cn.yiiguxing.plugin.translate.provider.TranslatedDocumentationProvider$Companion.nullIfError(TranslatedDocumentationProvider.kt:145)
    at cn.yiiguxing.plugin.translate.provider.TranslatedDocumentationProvider$Companion.access$nullIfError(TranslatedDocumentationProvider.kt:113)
    at cn.yiiguxing.plugin.translate.provider.TranslatedDocumentationProvider$generateDoc$1.invoke(TranslatedDocumentationProvider.kt:38)
    at cn.yiiguxing.plugin.translate.provider.TranslatedDocumentationProvider$generateDoc$1.invoke(TranslatedDocumentationProvider.kt:36)
    at cn.yiiguxing.plugin.translate.provider.TranslatedDocumentationProvider$Companion.nullIfRecursive(TranslatedDocumentationProvider.kt:158)
    at cn.yiiguxing.plugin.translate.provider.TranslatedDocumentationProvider$Companion.access$nullIfRecursive(TranslatedDocumentationProvider.kt:113)
    at cn.yiiguxing.plugin.translate.provider.TranslatedDocumentationProvider.generateDoc(TranslatedDocumentationProvider.kt:36)
    at com.intellij.lang.documentation.DocumentationProvider.getDocumentationParts(DocumentationProvider.java:199)
    at com.intellij.lang.documentation.CompositeDocumentationProvider.getDocumentationParts(CompositeDocumentationProvider.java:295)
    at com.intellij.lang.documentation.psi.PsiElementDocumentationTarget.localDocParts(PsiElementDocumentationTarget.kt:115)
    at com.intellij.lang.documentation.psi.PsiElementDocumentationTarget.localDoc(PsiElementDocumentationTarget.kt:98)
    at com.intellij.lang.documentation.psi.PsiElementDocumentationTarget.doComputeDocumentation(PsiElementDocumentationTarget.kt:85)
    at com.intellij.lang.documentation.psi.PsiElementDocumentationTarget.access$doComputeDocumentation(PsiElementDocumentationTarget.kt:29)
    at com.intellij.lang.documentation.psi.PsiElementDocumentationTarget$computeDocumentation$1.invoke(PsiElementDocumentationTarget.kt:79)
    at com.intellij.lang.documentation.psi.PsiElementDocumentationTarget$computeDocumentation$1.invoke(PsiElementDocumentationTarget.kt:78)
    at com.intellij.openapi.progress.CoroutinesKt.jobToIndicator$lambda$2(coroutines.kt:422)
    at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:100)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:217)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:660)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:735)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:691)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:659)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:202)
    at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:100)
    at com.intellij.openapi.progress.CoroutinesKt.jobToIndicator(coroutines.kt:410)
    at com.intellij.openapi.progress.CoroutinesKt.contextToIndicator(coroutines.kt:402)
    at com.intellij.openapi.progress.CoroutinesKt.blockingContextToIndicator(coroutines.kt:381)
    at com.intellij.lang.documentation.psi.PsiElementDocumentationTarget.computeDocumentation(PsiElementDocumentationTarget.kt:78)
    at com.intellij.platform.backend.documentation.impl.ImplKt$computeDocumentation$2$documentationResult$1.invoke(impl.kt:29)
    at com.intellij.platform.backend.documentation.impl.ImplKt$computeDocumentation$2$documentationResult$1.invoke(impl.kt:28)
    at com.intellij.openapi.application.rw.InternalReadAction.insideReadAction(InternalReadAction.kt:108)
    at com.intellij.openapi.application.rw.InternalReadAction.access$insideReadAction(InternalReadAction.kt:16)
    at com.intellij.openapi.application.rw.InternalReadAction$tryReadCancellable$2.invoke(InternalReadAction.kt:95)
    at com.intellij.openapi.application.rw.InternalReadAction$tryReadCancellable$2.invoke(InternalReadAction.kt:94)
    at com.intellij.openapi.application.rw.CancellableReadActionKt$cancellableReadActionInternal$1.invoke$lambda$1$lambda$0(cancellableReadAction.kt:38)
    at com.intellij.openapi.application.impl.RwLockHolder.tryRunReadAction(RwLockHolder.kt:310)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:958)
    at com.intellij.openapi.application.rw.CancellableReadActionKt$cancellableReadActionInternal$1.invoke$lambda$1(cancellableReadAction.kt:36)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtilService.runActionAndCancelBeforeWrite(ProgressIndicatorUtilService.java:66)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:155)
    at com.intellij.openapi.application.rw.CancellableReadActionKt$cancellableReadActionInternal$1.invoke(cancellableReadAction.kt:34)
    at com.intellij.openapi.progress.CoroutinesKt.blockingContextInner(coroutines.kt:320)
    at com.intellij.openapi.progress.CoroutinesKt.blockingContext(coroutines.kt:309)
    at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal(cancellableReadAction.kt:31)
    at com.intellij.openapi.application.rw.InternalReadAction.tryReadCancellable(InternalReadAction.kt:94)
    at com.intellij.openapi.application.rw.InternalReadAction.tryReadAction(InternalReadAction.kt:78)
    at com.intellij.openapi.application.rw.InternalReadAction.readLoop(InternalReadAction.kt:65)
    at com.intellij.openapi.application.rw.InternalReadAction.access$readLoop(InternalReadAction.kt:16)
    at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$4.invokeSuspend(InternalReadAction.kt:44)
    at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$4.invoke(InternalReadAction.kt)
    at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$4.invoke(InternalReadAction.kt)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
    at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
    at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
    at com.intellij.openapi.application.rw.InternalReadAction.runReadAction(InternalReadAction.kt:40)
    at com.intellij.openapi.application.rw.PlatformReadWriteActionSupport.executeReadAction(PlatformReadWriteActionSupport.kt:38)
    at com.intellij.openapi.application.ReadWriteActionSupport.executeReadAction$default(ReadWriteActionSupport.kt:15)
    at com.intellij.openapi.application.CoroutinesKt.constrainedReadAction(coroutines.kt:58)
    at com.intellij.openapi.application.CoroutinesKt.readAction(coroutines.kt:25)
    at com.intellij.platform.backend.documentation.impl.ImplKt$computeDocumentation$2.invokeSuspend(impl.kt:28)
    at com.intellij.platform.backend.documentation.impl.ImplKt$computeDocumentation$2.invoke(impl.kt)
    at com.intellij.platform.backend.documentation.impl.ImplKt$computeDocumentation$2.invoke(impl.kt)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
    at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
    at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
    at com.intellij.platform.backend.documentation.impl.ImplKt.computeDocumentation(impl.kt:27)
    at com.intellij.lang.documentation.ide.impl.DocumentationPage.loadPage(DocumentationPage.kt:41)
    at com.intellij.lang.documentation.ide.impl.DocumentationBrowser.handleBrowserRequest(DocumentationBrowser.kt:98)
    at com.intellij.lang.documentation.ide.impl.DocumentationBrowser.access$handleBrowserRequest(DocumentationBrowser.kt:26)
    at com.intellij.lang.documentation.ide.impl.DocumentationBrowser$1$1.invokeSuspend(DocumentationBrowser.kt:54)
    at com.intellij.lang.documentation.ide.impl.DocumentationBrowser$1$1.invoke(DocumentationBrowser.kt)
    at com.intellij.lang.documentation.ide.impl.DocumentationBrowser$1$1.invoke(DocumentationBrowser.kt)
    at kotlinx.coroutines.flow.FlowKt__MergeKt$mapLatest$1.invokeSuspend(Merge.kt:217)
    at kotlinx.coroutines.flow.FlowKt__MergeKt$mapLatest$1.invoke(Merge.kt)
    at kotlinx.coroutines.flow.FlowKt__MergeKt$mapLatest$1.invoke(Merge.kt)
    at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1$2.invokeSuspend(Merge.kt:34)
    at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1$2.invoke(Merge.kt)
    at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1$2.invoke(Merge.kt)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:44)
    at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112)
    at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126)
    at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
    at kotlinx.coroutines.BuildersKt.launch(Unknown Source)
    at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:47)
    at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source)
    at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1.emit(Merge.kt:33)
    at kotlinx.coroutines.flow.SharedFlowImpl.collect$suspendImpl(SharedFlow.kt:382)
    at kotlinx.coroutines.flow.SharedFlowImpl.collect(SharedFlow.kt)
    at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3.invokeSuspend(Merge.kt:27)
    at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3.invoke(Merge.kt)
    at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3.invoke(Merge.kt)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
    at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:264)
    at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest.flowCollect(Merge.kt:25)
    at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collectTo$suspendImpl(ChannelFlow.kt:157)
    at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collectTo(ChannelFlow.kt)
    at kotlinx.coroutines.flow.internal.ChannelFlow$collectToFun$1.invokeSuspend(ChannelFlow.kt:60)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
github-actions[bot] commented 7 months ago

This issue has been automatically closed because it is not an issue for this project. If you think there are something really wrong, please reply this issue. Thanks for your cooperation.