Endless loop: Performing code analysis
已回答
Whenever I open a specific source file, the IDE goes into an endless loop saying: "Performing code analysis". How to stop that?
This is written to the log, also in an endless loop:
2022-12-11 10:24:29,054 [ 56157] ERROR - stubs.StubProcessingHelperBase - Exception 'java.lang.Throwable: unable to get stub builder for file with file = jrt://C:/Program Files/Android/Android Studio/jre!/java.base/vectorOutlinedButtonTokens.ktArrowDropDown.ktRectHelper.android.ktCheckboxTokens.ktStar.kt BlendMode.ktTypefa/rs/szi/.gradle/caches/modules-2/files-2.1/com.google.firebase/firebase-annotations/16.0.0/dbeae20d6c9/-mnc670-bevalues-mcc310-mnc660-cavalues-mcc310-m/.class9AndroidInputDispatcher$enqueueRotaryScroll/setsPadding_androidKt$statusBarsPadding$$inlined$windowInsetsPadding$1.class(ActionsKt$performSemanticsAction$/assExpect_jvmKt.classArrangement$aligned$2.class3BoundsAssertionsKt$getUnclippedBoundsInRoot$1.classArran, file type = com.intellij.openapi.fileTypes.UnknownFileType@36431728, indexed file type = com.intellij.openapi.fileTypes.UnknownFileType@36431728, , stubBindingRoot = PsiBinaryFileImpl, languages = [], fileTypes = [UNKNOWN], files = [PsiBinaryFileImpl], roots = [], indexingInfo = indexing timestamp = 1664489682000, binary = true, byte size = 846, char size = -1, isTooLarge = false' was reported 70 times
2022-12-11 10:24:29,054 [ 56157] INFO - tellij.psi.stubs.StubIndexImpl - data for java.class.shortname will be wiped for a some files because of internal stub processing error
2022-12-11 10:24:29,530 [ 56633] INFO - tellij.psi.stubs.StubIndexImpl - data for java.class.shortname will be wiped for a some files because of internal stub processing error
2022-12-11 10:24:30,010 [ 57113] INFO - tellij.psi.stubs.StubIndexImpl - data for java.class.shortname will be wiped for a some files because of internal stub processing error
2022-12-11 10:24:30,483 [ 57586] INFO - tellij.psi.stubs.StubIndexImpl - data for java.class.shortname will be wiped for a some files because of internal stub processing error
2022-12-11 10:24:30,953 [ 58056] INFO - tellij.psi.stubs.StubIndexImpl - data for java.class.shortname will be wiped for a some files because of internal stub processing error
2022-12-11 10:24:31,428 [ 58531] INFO - tellij.psi.stubs.StubIndexImpl - data for java.class.shortname will be wiped for a some files because of internal stub processing error
2022-12-11 10:24:31,889 [ 58992] INFO - tellij.psi.stubs.StubIndexImpl - data for java.class.shortname will be wiped for a some files because of internal stub processing error
2022-12-11 10:24:32,361 [ 59464] INFO - tellij.psi.stubs.StubIndexImpl - data for java.class.shortname will be wiped for a some files because of internal stub processing error
2022-12-11 10:24:32,822 [ 59925] INFO - tellij.psi.stubs.StubIndexImpl - data for java.class.shortname will be wiped for a some files because of internal stub processing error
2022-12-11 10:24:33,289 [ 60392] INFO - tellij.psi.stubs.StubIndexImpl - data for java.class.shortname will be wiped for a some files because of internal stub processing error
BTW: why is there no timeout for such buggy code?
请先登录再写评论。
https://youtrack.jetbrains.com/issue/KTIJ-23925/Endless-loop-Performing-code-analysis
Hi Yaroslav Bedrov , sorry to necro this issue.
The related ticket you mentioned looks relative to Kotlin, which I don't use.
However, on Intellij, I succeed to have the endless code analysis performing with the following code :
It seems to be a combinaison of the `$.each` with `data[i].city`.
I've checked jsp, html and js files. They all trigger the issue.
For me at the moment, this issue is not critical because the cause has been identified and refactored, however, until we noticed something when draining cpu, identified the cause, and localized the location in the code, resources has been wasted :(
The version I use :
IntelliJ IDEA 2023.3.3 (Ultimate Edition) - Build #IU-233.14015.106, built on January 25, 2024
Runtime version: 17.0.9+7-b1087.11 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Hopefully you will be able to reproduce and fix this issue.
Please report JavaScript specific issues at https://youtrack.jetbrains.com/newIssue?project=WEB . Make sure to attach a sample file to reproduce and the logs (Help | Collect Logs and Diagnostic Data).
See if it's still happening in https://www.jetbrains.com/idea/nextversion/ .