CodeGraph plugin: how to use?

I'm trying out the CodeGraph plugin, but when I right-click and select
CodeGraph -> Add Element, nothing happens. I tried -> Add Project (though I
was hesitant because the project is fairly large) and after some work, it
threw an exception:

No message
java.lang.NullPointerException
at
net.swengineer.codegraph.graph.model.CodeGraphNode.hashCode(CodeGraphNode.java:97)
at
net.swengineer.codegraph.graph.model.CodeGraphEdge.hashCode(CodeGraphEdge.java:62)
at java.util.HashMap.put(HashMap.java:372)
at java.util.HashSet.add(HashSet.java:200)
at
net.swengineer.codegraph.graph.model.CodeGraphDataModel.addEdge(CodeGraphDataModel.java:82)
at
net.swengineer.codegraph.plugin.actions.AddEntireProjectAction.addAllUsages(AddEntireProjectAction.java:95)
at
net.swengineer.codegraph.plugin.actions.AddEntireProjectAction.addMethodUsages(AddEntireProjectAction.java:84)
at
net.swengineer.codegraph.plugin.actions.AddEntireProjectAction.access$200(AddEntireProjectAction.java:29)
at
net.swengineer.codegraph.plugin.actions.AddEntireProjectAction$2.execute(AddEntireProjectAction.java:65)
at
net.swengineer.codegraph.plugin.actions.AddEntireProjectAction$2.execute(AddEntireProjectAction.java:60)
at
com.intellij.psi.impl.search.PsiSearchHelperImpl$9$1.compute(PsiSearchHelperImpl.java:1)
at
com.intellij.psi.impl.search.PsiSearchHelperImpl$9$1.compute(PsiSearchHelperImpl.java:0)
at
com.intellij.openapi.application.impl.ApplicationImpl$12.run(ApplicationImpl.java:2)
at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:286)
at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:105)
at
com.intellij.psi.impl.search.PsiSearchHelperImpl$9.processFile(PsiSearchHelperImpl.java:1)
at
com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:30)
at
com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
at
com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
at
com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
at
com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
at
com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
at
com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
at
com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
at
com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
at
com.intellij.openapi.roots.impl.ProjectFileIndexImpl.iterateContent(ProjectFileIndexImpl.java:86)
at
com.intellij.psi.impl.search.PsiSearchHelperImpl.a(PsiSearchHelperImpl.java:202)
at
com.intellij.psi.impl.search.PsiSearchHelperImpl.processAllClasses(PsiSearchHelperImpl.java:159)
at
net.swengineer.codegraph.plugin.actions.AddEntireProjectAction.addAllUsages(AddEntireProjectAction.java:74)
at
net.swengineer.codegraph.plugin.actions.AddEntireProjectAction.doAction(AddEntireProjectAction.java:54)
at
net.swengineer.codegraph.plugin.actions.AddEntireProjectAction.access$000(AddEntireProjectAction.java:29)
at
net.swengineer.codegraph.plugin.actions.AddEntireProjectAction$1.run(AddEntireProjectAction.java:37)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:1)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:75)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:90)
at
com.intellij.openapi.application.impl.ApplicationImpl$7$1.run(ApplicationImpl.java:3)
at
com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:7)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at
com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:6)


7 comments

Other exception...
IDEA 7.0.2 JDK 6 linux ubuntu


No message
java.lang.NullPointerException
at com.intellij.psi.search.PsiSearchScopeUtil.isInScope(PsiSearchScopeUtil.java:78)
at net.swengineer.codegraph.finders.MethodUsageFinder$2.visitMethodCallExpression(MethodUsageFinder.java:92)
at com.intellij.psi.impl.source.tree.java.PsiMethodCallExpressionImpl.accept(PsiMethodCallExpressionImpl.java:11)
at com.intellij.psi.impl.source.tree.CompositePsiElement.acceptChildren(CompositePsiElement.java:48)
at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:37)
at com.intellij.psi.JavaElementVisitor.visitStatement(JavaElementVisitor.java:292)
at com.intellij.psi.JavaElementVisitor.visitReturnStatement(JavaElementVisitor.java:288)
at com.intellij.psi.impl.source.tree.java.PsiReturnStatementImpl.accept(PsiReturnStatementImpl.java:6)
at com.intellij.psi.impl.source.tree.CompositePsiElement.acceptChildren(CompositePsiElement.java:48)
at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:37)
at com.intellij.psi.JavaElementVisitor.visitCodeBlock(JavaElementVisitor.java:76)
at com.intellij.psi.impl.source.tree.java.PsiCodeBlockImpl.accept(PsiCodeBlockImpl.java:45)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.acceptChildren(TreeWrapperPsiElement.java:54)
at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:37)
at com.intellij.psi.JavaElementVisitor.visitMethod(JavaElementVisitor.java:200)
at com.intellij.psi.impl.source.PsiMethodImpl.accept(PsiMethodImpl.java:64)
at net.swengineer.codegraph.finders.MethodUsageFinder.getCalledMethodUsages(MethodUsageFinder.java:98)
at net.swengineer.codegraph.finders.MethodUsageFinder.getAllUsages(MethodUsageFinder.java:38)
at net.swengineer.codegraph.plugin.actions.AddEntireProjectAction.addMethodUsages(AddEntireProjectAction.java:83)
at net.swengineer.codegraph.plugin.actions.AddEntireProjectAction.access$200(AddEntireProjectAction.java:29)
at net.swengineer.codegraph.plugin.actions.AddEntireProjectAction$2.execute(AddEntireProjectAction.java:65)
at net.swengineer.codegraph.plugin.actions.AddEntireProjectAction$2.execute(AddEntireProjectAction.java:60)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$9$1.compute(PsiSearchHelperImpl.java:1)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$9$1.compute(PsiSearchHelperImpl.java)
at com.intellij.openapi.application.impl.ApplicationImpl$12.run(ApplicationImpl.java:2)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:286)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:105)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$9.processFile(PsiSearchHelperImpl.java:1)
at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:30)
at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
at com.intellij.openapi.roots.impl.ProjectFileIndexImpl.iterateContent(ProjectFileIndexImpl.java:86)
at com.intellij.psi.impl.search.PsiSearchHelperImpl.a(PsiSearchHelperImpl.java:202)
at com.intellij.psi.impl.search.PsiSearchHelperImpl.processAllClasses(PsiSearchHelperImpl.java:159)
at net.swengineer.codegraph.plugin.actions.AddEntireProjectAction.addAllUsages(AddEntireProjectAction.java:74)
at net.swengineer.codegraph.plugin.actions.AddEntireProjectAction.doAction(AddEntireProjectAction.java:54)
at net.swengineer.codegraph.plugin.actions.AddEntireProjectAction.access$000(AddEntireProjectAction.java:29)
at net.swengineer.codegraph.plugin.actions.AddEntireProjectAction$1.run(AddEntireProjectAction.java:37)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:1)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:75)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:90)
at com.intellij.openapi.application.impl.ApplicationImpl$7$1.run(ApplicationImpl.java:3)
at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:7)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:6)

0

is there a chance the project had compilation errors ?

0

yes. it's possible. But I don't I am not sure for 100%

0

i had quite a few problems with project with compilation errors
i think i'll just won't allow that until i can figure out how to deal with it

0

fixed the first problem
working on the second one, hopefuly i'll be done today

0

i just checked that this plugin does not load on IDEA 6.0.6 ? is this correct.

0

yes, i developed this over intellij 7 , i dont think everything i used is in 6.06 also

0

Please sign in to leave a comment.