Custom language "Find usage..." and DefaultWordsScanner

Hello again.
Have a problem with "Find usages...":
1. Ctrl+shift+f7 on a definition works, highlighting all the right usages.
2. Ctrl+shift+f7 on a usage works, highlighting all the right usages.
3. Ctrl+f7 works, but highlightingonly definition.
4. Using "Find usages..." on a difinition find only definition.
4. Using "Find usages..." on a usage says "No usages found".

What a problem can be with it?

1 comment
Comment actions Permalink

Have an error while running debug instance of IDEA:

ERROR - api.project.CacheUpdateSession - Error while indexing D:\work\firmware\test.lisp
To reindex this file IDEA has to be restarted
java.lang.NullPointerException
    at com.intellij.lang.cacheBuilder.DefaultWordsScanner.processWords(DefaultWordsScanner.java:70)
    at com.intellij.psi.impl.cache.impl.id.IdTableBuilding$WordsScannerFileTypeIdIndexerAdapter.map(IdTableBuilding.java:248)
    at com.intellij.psi.impl.cache.impl.id.IdTableBuilding$WordsScannerFileTypeIdIndexerAdapter.map(IdTableBuilding.java:236)
    at com.intellij.psi.impl.cache.impl.id.IdIndex$4.map(IdIndex.java:77)
    at com.intellij.psi.impl.cache.impl.id.IdIndex$4.map(IdIndex.java:72)
    at com.intellij.util.indexing.MapReduceIndex.update(MapReduceIndex.java:200)
    at com.intellij.util.indexing.FileBasedIndex$21.run(FileBasedIndex.java:1377)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeNonCancelableSection(ProgressManagerImpl.java:142)
    at com.intellij.util.indexing.FileBasedIndex.updateSingleIndex(FileBasedIndex.java:1374)
    at com.intellij.util.indexing.FileBasedIndex.indexFileContent(FileBasedIndex.java:1340)
    at com.intellij.util.indexing.UnindexedFilesUpdater.processFile(UnindexedFilesUpdater.java:60)
    at com.intellij.openapi.project.CacheUpdateSession.processFile(CacheUpdateSession.java:102)
    at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable$1.run(CacheUpdateRunner.java:223)
    at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.run(CacheUpdateRunner.java:230)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:205)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:233)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:196)
    at com.intellij.openapi.project.CacheUpdateRunner.processSomeFilesWhileUserIsInactive(CacheUpdateRunner.java:144)
    at com.intellij.openapi.project.CacheUpdateRunner.processFiles(CacheUpdateRunner.java:97)
    at com.intellij.openapi.project.DumbServiceImpl.scheduleCacheUpdate(DumbServiceImpl.java:153)
    at com.intellij.openapi.project.DumbServiceImpl.queueCacheUpdate(DumbServiceImpl.java:106)
    at com.intellij.ide.startup.impl.StartupManagerImpl.startCacheUpdate(StartupManagerImpl.java:175)
    at com.intellij.ide.startup.impl.StartupManagerImpl.access$500(StartupManagerImpl.java:47)
    at com.intellij.ide.startup.impl.StartupManagerImpl$1.run(StartupManagerImpl.java:120)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:757)
    at com.intellij.ide.startup.impl.StartupManagerImpl.runStartupActivities(StartupManagerImpl.java:108)
    at com.intellij.openapi.project.impl.ProjectManagerImpl$4.run(ProjectManagerImpl.java:385)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$3.run(ProgressManagerImpl.java:255)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:482)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$4.run(ProgressManagerImpl.java:267)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:205)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:233)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:196)
    at com.intellij.openapi.application.impl.ApplicationImpl$8$1.run(ApplicationImpl.java:575)
    at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:383)
    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:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
    at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:131)
[  13563]  ERROR - api.project.CacheUpdateSession - IntelliJ IDEA 10.0.3  Build #IC-103.255
[  13563]  ERROR - api.project.CacheUpdateSession - JDK: 1.6.0_21
[  13563]  ERROR - api.project.CacheUpdateSession - VM: Java HotSpot(TM) Client VM
[  13563]  ERROR - api.project.CacheUpdateSession - Vendor: Sun Microsystems Inc.
[  13563]  ERROR - api.project.CacheUpdateSession - OS: Windows XP
[  13563]  ERROR - api.project.CacheUpdateSession - Last Action:


Any ideas?

======

Fixed

Find usage questions is still actual.

0

Please sign in to leave a comment.