MetricsReloaded: NoSuchMethodError

Hey Dave,

I was running some high-level metrics (project/module/some packages)
and got this exception, with #3229.

java.lang.NoSuchMethodError:
com.intellij.psi.PsiClass.getUseScope()Lcom/intellij/psi/search/GlobalSearch
Scope;
at
com.siyeh.metrics.execution.MetricsExecutionContextImpl$2.run(MetricsExecuti
onContextImpl.java:139)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressMa
nagerImpl.java:19)
at
com.siyeh.metrics.execution.MetricsExecutionContextImpl.findClassReferences(
MetricsExecutionContextImpl.java:145)
at
com.siyeh.metrics.execution.BaseMetricsCalculator.findClassReferences(BaseMe
tricsCalculator.java:197)
at
com.siyeh.metrics.packageCalculators.EncapsulationRatioPackageCalculator.isI
nternal(EncapsulationRatioPackageCalculator.java:50)
at
com.siyeh.metrics.packageCalculators.EncapsulationRatioPackageCalculator.bef
oreClass(EncapsulationRatioPackageCalculator.java:42)
at com.siyeh.metrics.execution.Traversal.visitClass(Traversal.java:227)
at com.intellij.psi.impl.source.PsiClassImpl.accept(PsiClassImpl.java:208)
at
com.intellij.psi.impl.source.TreeWrapperPsiElement.acceptChildren(TreeWrappe
rPsiElement.java:72)
at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElement
Visitor.java:11)
at
com.intellij.psi.JavaElementVisitor.visitFile(JavaElementVisitor.java:130)
at com.siyeh.metrics.execution.Traversal.visitFile(Traversal.java:219)
at
com.intellij.psi.JavaElementVisitor.visitJavaFile(JavaElementVisitor.java:33
0)
at com.siyeh.metrics.execution.Traversal.visitJavaFile(Traversal.java:151)
at
com.intellij.psi.impl.source.PsiJavaFileBaseImpl.accept(PsiJavaFileBaseImpl.
java:186)
at
com.siyeh.metrics.execution.MetricsExecutionContextImpl$1.run(MetricsExecuti
onContextImpl.java:78)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressMa
nagerImpl.java:19)
at
com.intellij.openapi.application.impl.ApplicationImpl$1MyThread.run(Applicat
ionImpl.java:9)

Vince.


Please sign in to leave a comment.