JetBrains-Research / RefactorInsight

An IntelliJ IDEA plugin that detects refactorings in Git commits
https://plugins.jetbrains.com/plugin/14704-refactorinsight
MIT License
104 stars 11 forks source link

SIOOBE: TextUtils.functionSimpleName #113

Closed onewhl closed 1 year ago

onewhl commented 1 year ago

java.lang.StringIndexOutOfBoundsException: begin 63, end -1, length 71 at java.base,java.lang.String.checkBoundsBeginEnd([String.java:4604](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.lang.String:4603)) at java.base,java.lang.String.substring([String.java:2707](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.lang.String:2706)) at org.jetbrains.research.refactorinsight.utils.TextUtils.functionSimpleName([TextUtils.java:115](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=org.jetbrains.research.refactorinsight.utils.TextUtils:114)) at org.jetbrains.research.refactorinsight.folding.handlers.ExtractOperationFoldingHandler.getFolds([ExtractOperationFoldingHandler.java:26](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=org.jetbrains.research.refactorinsight.folding.handlers.ExtractOperationFoldingHandler:25)) at org.jetbrains.research.refactorinsight.folding.RefactoringFolder.lambda$modifyEditor$2([RefactoringFolder.java:141](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=org.jetbrains.research.refactorinsight.folding.RefactoringFolder:140)) at java.base,java.util.stream.ReferencePipeline$7$1.accept([ReferencePipeline.java:273](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.util.stream.ReferencePipeline$7$1:272)) at java.base,java.util.ArrayList$ArrayListSpliterator.forEachRemaining([ArrayList.java:1625](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.util.ArrayList$ArrayListSpliterator:1624)) at java.base,java.util.stream.AbstractPipeline.copyInto([AbstractPipeline.java:509](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.util.stream.AbstractPipeline:508)) at java.base,java.util.stream.AbstractPipeline.wrapAndCopyInto([AbstractPipeline.java:499](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.util.stream.AbstractPipeline:498)) at java.base,java.util.stream.ReduceOps$ReduceOp.evaluateSequential([ReduceOps.java:921](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.util.stream.ReduceOps$ReduceOp:920)) at java.base,java.util.stream.AbstractPipeline.evaluate([AbstractPipeline.java:234](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.util.stream.AbstractPipeline:233)) at java.base,java.util.stream.ReferencePipeline.collect([ReferencePipeline.java:682](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.util.stream.ReferencePipeline:681)) at org.jetbrains.research.refactorinsight.folding.RefactoringFolder.modifyEditor([RefactoringFolder.java:143](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=org.jetbrains.research.refactorinsight.folding.RefactoringFolder:142)) at org.jetbrains.research.refactorinsight.folding.RefactoringFolder.foldRefactorings([RefactoringFolder.java:117](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=org.jetbrains.research.refactorinsight.folding.RefactoringFolder:116)) at org.jetbrains.research.refactorinsight.folding.RefactoringFolder.foldRefactorings([RefactoringFolder.java:98](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=org.jetbrains.research.refactorinsight.folding.RefactoringFolder:97)) at org.jetbrains.research.refactorinsight.ui.windows.DiffWindow.onViewerCreated([DiffWindow.java:195](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=org.jetbrains.research.refactorinsight.ui.windows.DiffWindow:194)) at com.intellij.diff.impl.DiffRequestProcessor.createState([DiffRequestProcessor.java:335](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.diff.impl.DiffRequestProcessor:334)) at com.intellij.diff.impl.DiffRequestProcessor.lambda$doApplyRequest$4([DiffRequestProcessor.java:408](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.diff.impl.DiffRequestProcessor:407)) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeNonCancelableSection$3([CoreProgressManager.java:226](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.progress.impl.CoreProgressManager:225)) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun([CoreProgressManager.java:666](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.progress.impl.CoreProgressManager:665)) at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress([CoreProgressManager.java:622](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.progress.impl.CoreProgressManager:621)) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$computeInNonCancelableSection$4([CoreProgressManager.java:234](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.progress.impl.CoreProgressManager:233)) at com.intellij.openapi.progress.Cancellation.computeInNonCancelableSection([Cancellation.java:99](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.progress.Cancellation:98)) at com.intellij.openapi.progress.impl.CoreProgressManager.computeInNonCancelableSection([CoreProgressManager.java:234](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.progress.impl.CoreProgressManager:233)) at com.intellij.openapi.progress.impl.CoreProgressManager.executeNonCancelableSection([CoreProgressManager.java:225](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.progress.impl.CoreProgressManager:224)) at com.intellij.diff.impl.DiffRequestProcessor.lambda$doApplyRequest$5([DiffRequestProcessor.java:402](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.diff.impl.DiffRequestProcessor:401)) at com.intellij.diff.util.DiffUtil.runPreservingFocus([DiffUtil.java:800](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.diff.util.DiffUtil:799)) at com.intellij.diff.impl.DiffRequestProcessor.doApplyRequest([DiffRequestProcessor.java:390](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.diff.impl.DiffRequestProcessor:389)) at com.intellij.diff.impl.DiffRequestProcessor.lambda$applyRequest$3([DiffRequestProcessor.java:372](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.diff.impl.DiffRequestProcessor:371)) at com.intellij.openapi.wm.impl.FocusManagerImpl.lambda$doWhenFocusSettlesDown$3([FocusManagerImpl.java:173](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.wm.impl.FocusManagerImpl:172)) at com.intellij.util.ui.EdtInvocationManager.invokeLaterIfNeeded([EdtInvocationManager.java:33](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.util.ui.EdtInvocationManager:32)) at com.intellij.ide.IdeEventQueue.ifFocusEventsInTheQueue([IdeEventQueue.java:176](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.ide.IdeEventQueue:175)) at com.intellij.ide.IdeEventQueue.executeWhenAllFocusEventsLeftTheQueue([IdeEventQueue.java:129](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.ide.IdeEventQueue:128)) at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown([FocusManagerImpl.java:169](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.wm.impl.FocusManagerImpl:168)) at com.intellij.diff.impl.DiffRequestProcessor.applyRequest([DiffRequestProcessor.java:380](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.diff.impl.DiffRequestProcessor:379)) at com.intellij.diff.impl.DiffRequestProcessor.applyRequest([DiffRequestProcessor.java:359](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.diff.impl.DiffRequestProcessor:358)) at com.intellij.diff.impl.CacheDiffRequestProcessor.lambda$updateRequest$0([CacheDiffRequestProcessor.java:117](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.diff.impl.CacheDiffRequestProcessor:116)) at com.intellij.openapi.progress.util.BackgroundTaskUtil.finish([BackgroundTaskUtil.java:113](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.progress.util.BackgroundTaskUtil:112)) at com.intellij.openapi.progress.util.BackgroundTaskUtil.executeAndTryWait([BackgroundTaskUtil.java:101](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.progress.util.BackgroundTaskUtil:100)) at com.intellij.diff.util.DiffTaskQueue.executeAndTryWait([DiffTaskQueue.java:47](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.diff.util.DiffTaskQueue:46)) at com.intellij.diff.util.DiffTaskQueue.executeAndTryWait([DiffTaskQueue.java:38](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.diff.util.DiffTaskQueue:37)) at com.intellij.diff.impl.CacheDiffRequestProcessor.updateRequest([CacheDiffRequestProcessor.java:112](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.diff.impl.CacheDiffRequestProcessor:111)) at com.intellij.diff.impl.CacheDiffRequestProcessor.updateRequest([CacheDiffRequestProcessor.java:91](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.diff.impl.CacheDiffRequestProcessor:90)) at com.intellij.diff.impl.DiffRequestProcessor.updateRequest([DiffRequestProcessor.java:242](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.diff.impl.DiffRequestProcessor:241)) at com.intellij.diff.impl.DiffRequestProcessor.updateRequest([DiffRequestProcessor.java:237](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.diff.impl.DiffRequestProcessor:236)) at com.intellij.openapi.vcs.changes.ChangeViewDiffRequestProcessor.setCurrentChange([ChangeViewDiffRequestProcessor.java:231](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.vcs.changes.ChangeViewDiffRequestProcessor:230)) at com.intellij.openapi.vcs.changes.ChangeViewDiffRequestProcessor.refresh([ChangeViewDiffRequestProcessor.java:216](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.vcs.changes.ChangeViewDiffRequestProcessor:215)) at com.intellij.openapi.vcs.changes.ChangeViewDiffRequestProcessor.updatePreview([ChangeViewDiffRequestProcessor.java:137](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.vcs.changes.ChangeViewDiffRequestProcessor:136)) at com.intellij.vcs.log.ui.frame.VcsLogChangeProcessor.updatePreview([VcsLogChangeProcessor.java:80](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.vcs.log.ui.frame.VcsLogChangeProcessor:79)) at com.intellij.vcs.log.ui.frame.VcsLogChangeProcessor.lambda$updatePreviewLater$2([VcsLogChangeProcessor.java:75](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.vcs.log.ui.frame.VcsLogChangeProcessor:74)) at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed([TransactionGuardImpl.java:209](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.application.TransactionGuardImpl:208)) at com.intellij.openapi.application.TransactionGuardImpl.access$100([TransactionGuardImpl.java:21](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.application.TransactionGuardImpl:20)) at com.intellij.openapi.application.TransactionGuardImpl$1.run([TransactionGuardImpl.java:191](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.application.TransactionGuardImpl$1:190)) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread([ApplicationImpl.java:813](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.application.impl.ApplicationImpl:812)) at com.intellij.openapi.application.impl.ApplicationImpl$3.run([ApplicationImpl.java:429](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.application.impl.ApplicationImpl$3:428)) at com.intellij.openapi.application.impl.FlushQueue.doRun([FlushQueue.java:74](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.application.impl.FlushQueue:73)) at com.intellij.openapi.application.impl.FlushQueue.runNextEvent([FlushQueue.java:114](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.application.impl.FlushQueue:113)) at com.intellij.openapi.application.impl.FlushQueue.flushNow([FlushQueue.java:36](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.application.impl.FlushQueue:35)) at java.desktop,java.awt.event.InvocationEvent.dispatch([InvocationEvent.java:318](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.awt.event.InvocationEvent:317)) at java.desktop,java.awt.EventQueue.dispatchEventImpl([EventQueue.java:779](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.awt.EventQueue:778)) at java.desktop,java.awt.EventQueue$4.run([EventQueue.java:730](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.awt.EventQueue$4:729)) at java.desktop,java.awt.EventQueue$4.run([EventQueue.java:724](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.awt.EventQueue$4:723)) at java.base,java.security.AccessController.doPrivileged([AccessController.java:399](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.security.AccessController:398)) at java.base,java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege([ProtectionDomain.java:86](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.security.ProtectionDomain$JavaSecurityAccessImpl:85)) at java.desktop,java.awt.EventQueue.dispatchEvent([EventQueue.java:749](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.awt.EventQueue:748)) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent([IdeEventQueue.java:909](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.ide.IdeEventQueue:908)) at com.intellij.ide.IdeEventQueue._dispatchEvent([IdeEventQueue.java:756](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.ide.IdeEventQueue:755)) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$5([IdeEventQueue.java:437](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.ide.IdeEventQueue:436)) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized([CoreProgressManager.java:774](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.progress.impl.CoreProgressManager:773)) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6([IdeEventQueue.java:436](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.ide.IdeEventQueue:435)) at com.intellij.openapi.application.TransactionGuardImpl.performActivity([TransactionGuardImpl.java:105](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.application.TransactionGuardImpl:104)) at com.intellij.ide.IdeEventQueue.performActivity([IdeEventQueue.java:615](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.ide.IdeEventQueue:614)) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7([IdeEventQueue.java:434](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.ide.IdeEventQueue:433)) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread([ApplicationImpl.java:813](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.openapi.application.impl.ApplicationImpl:812)) at com.intellij.ide.IdeEventQueue.dispatchEvent([IdeEventQueue.java:480](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=com.intellij.ide.IdeEventQueue:479)) at java.desktop,java.awt.EventDispatchThread.pumpOneEventForFilters([EventDispatchThread.java:207](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.awt.EventDispatchThread:206)) at java.desktop,java.awt.EventDispatchThread.pumpEventsForFilter([EventDispatchThread.java:128](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.awt.EventDispatchThread:127)) at java.desktop,java.awt.EventDispatchThread.pumpEventsForHierarchy([EventDispatchThread.java:117](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.awt.EventDispatchThread:116)) at java.desktop,java.awt.EventDispatchThread.pumpEvents([EventDispatchThread.java:113](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.awt.EventDispatchThread:112)) at java.desktop,java.awt.EventDispatchThread.pumpEvents([EventDispatchThread.java:105](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.awt.EventDispatchThread:104)) at java.desktop,java.awt.EventDispatchThread.run([EventDispatchThread.java:92](https://engine.exa.aws.intellij.net/jbRedirect/idea/navigate/reference?project=intellij&fqn=java.awt.EventDispatchThread:91))

onewhl commented 1 year ago

@anchouls could you please take a look at it?