BasLeijdekkers/MetricsReloaded — Issue #17: NoSuchMethodError on IntelliJ IDEA 11
Author: chrisyco
Created: 2011-12-21 04:50:22+00:00
State: open

The plugin crashes with the following message:

```
com.intellij.psi.PsiManager.getSearchHelper()Lcom/intellij/psi/search/PsiSearchHelper;: com.intellij.psi.PsiManager.getSearchHelper()Lcom/intellij/psi/search/PsiSearchHelper;
java.lang.NoSuchMethodError: com.intellij.psi.PsiManager.getSearchHelper()Lcom/intellij/psi/search/PsiSearchHelper;
at com.sixrr.stockmetrics.utils.TodoUtil.isTodoComment(TodoUtil.java:34)
at com.sixrr.stockmetrics.projectCalculators.TodoCommentCountProjectCalculator$Visitor.visitComment(TodoCommentCountProjectCalculator.java:32)
at com.intellij.psi.impl.source.tree.PsiCoreCommentImpl.accept(PsiCoreCommentImpl.java:25)
at com.intellij.psi.impl.source.tree.LazyParseablePsiElement.acceptChildren(LazyParseablePsiElement.java:105)
at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:39)
at com.intellij.psi.impl.source.tree.java.PsiCodeBlockImpl.accept(PsiCodeBlockImpl.java:205)
at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:175)
at com.intellij.psi.impl.source.JavaStubPsiElement.acceptChildren(JavaStubPsiElement.java:173)
at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:39)
at com.intellij.psi.impl.source.PsiMethodImpl.accept(PsiMethodImpl.java:329)
at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:175)
at com.intellij.psi.impl.source.JavaStubPsiElement.acceptChildren(JavaStubPsiElement.java:173)
at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:39)
at com.intellij.psi.impl.source.PsiClassImpl.accept(PsiClassImpl.java:450)
at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:175)
at com.intellij.psi.impl.source.PsiFileImpl.acceptChildren(PsiFileImpl.java:757)
at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:39)
at com.intellij.psi.PsiElementVisitor.visitFile(PsiElementVisitor.java:32)
at com.intellij.psi.PsiRecursiveElementVisitor.visitFile(PsiRecursiveElementVisitor.java:58)
at com.intellij.psi.impl.source.PsiJavaFileBaseImpl.accept(PsiJavaFileBaseImpl.java:396)
at com.sixrr.stockmetrics.execution.BaseMetricsCalculator.processFile(BaseMetricsCalculator.java:65)
at com.sixrr.metrics.metricModel.MetricsExecutionContextImpl$1$1.visitFile(MetricsExecutionContextImpl.java:83)
at com.intellij.psi.impl.source.PsiJavaFileBaseImpl.accept(PsiJavaFileBaseImpl.java:396)
at com.intellij.analysis.AnalysisScope.doProcessFile(AnalysisScope.java:377)
at com.intellij.analysis.AnalysisScope.processFile(AnalysisScope.java:353)
at com.intellij.analysis.AnalysisScope.processFile(AnalysisScope.java:331)
at com.intellij.analysis.AnalysisScope.access$300(AnalysisScope.java:56)
at com.intellij.analysis.AnalysisScope$7.processFile(AnalysisScope.java:317)
at com.intellij.openapi.roots.impl.FileIndexImplUtil$1.visitFile(FileIndexImplUtil.java:38)
at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:167)
at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:179)
at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:179)
at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:179)
at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:179)
at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:179)
at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:179)
at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:179)
at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:160)
at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:33)
at com.intellij.openapi.roots.impl.ProjectFileIndexImpl.iterateContent(ProjectFileIndexImpl.java:71)
at com.intellij.analysis.AnalysisScope.accept(AnalysisScope.java:315)
at com.intellij.analysis.AnalysisScope.accept(AnalysisScope.java:238)
at com.sixrr.metrics.metricModel.MetricsExecutionContextImpl$1.run(MetricsExecutionContextImpl.java:73)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$4.run(ProgressManagerImpl.java:264)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:457)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$5.run(ProgressManagerImpl.java:276)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:206)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:169)
at com.intellij.openapi.application.impl.ApplicationImpl$8$1.run(ApplicationImpl.java:617)
at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:410)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:135)
```

This probably arose because of changes in the plugin API.