Go to Declaration works, but Find Usages doesn't

6 views
Skip to first unread message

Peter Yao

unread,
May 7, 2026, 8:42:10 PM (14 days ago) May 7
to Illuminated Cloud General Discussion
Hi Scott,

When I try to use the context menu to Find Usages, IJ reports "No usages found in Project Files", despite there being usages. This happens for most methods, but some work. Go to Declaration always seems to work. 

I tried to Invalidate Caches, regenerate the OST, Rebuild Caches and Indices from the IC menu, and Repair IDE. None of that worked so I uninstalled, reinstalled IJ and tried opening my git repository as a new project (though I didn't connect IC yet). I still see the same behavior, after deactivating most plugins as well.

When I uninstalled and reinstalled and opened the existing project, I noticed that I still had my old config (anonymous apex tabs, connections, etc), so maybe I didn't uninstall cleanly?

I didn't think this was an Illuminated Cloud issue, but this post made it sound like it could be a language issue?

Thanks for any ideas of other things I might try!
Peter


Scott Wells

unread,
May 7, 2026, 10:03:15 PM (14 days ago) May 7
to Illuminated Cloud General Discussion, peter...@gmail.com
Hi, Peter. I can't think of any good reason for find usages not to be working. At first I was thinking that perhaps you'd selected a more restrictive scope, but since you specified "in Project Files", that's unlikely to be the case.

Do you see any errors in idea.log around these attempts to find usages? Do you mind emailing me your project's .iml file so I can make sure there's not some simple project configuration issue that might be causing it? Note that I'm stepping away shortly so I may not be able to respond until tomrorow morning, but I'll provide any insights I might have.

Regards,
Scott Wells

Peter Yao

unread,
May 8, 2026, 10:56:40 AM (13 days ago) May 8
to Illuminated Cloud General Discussion
Scott - thanks for the help!

You said this part of the log was the suspicious:
2026-05-08 08:28:42,691 [ 207291]   WARN - #c.i.o.a.i.ExceptionsKt - Suppressed a frequent exception logged for the 2nd time: com/intellij/lang/javascript/psi/ecma6/TypeScriptModule
2026-05-08 08:28:42,691 [ 207291]   INFO - STDERR - Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/intellij/lang/javascript/psi/ecma6/TypeScriptModule
2026-05-08 08:28:42,691 [ 207291]   INFO - STDERR - at com.illuminatedcloud.intellij.lwc.navigation.LightningWebComponentsReferencesSearch.lambda$processQuery$0(SourceFile:257)
2026-05-08 08:28:42,691 [ 207291]   INFO - STDERR - at com.intellij.openapi.application.ReadAction.lambda$runBlocking$1(ReadAction.java:108)
2026-05-08 08:28:42,691 [ 207291]   INFO - STDERR - at com.intellij.openapi.application.impl.AppImplKt$rethrowCheckedExceptions$2.invoke(appImpl.kt:126)
2026-05-08 08:28:42,691 [ 207291]   INFO - STDERR - at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.runReadAction(NestedLocksThreadingSupport.kt:854)
2026-05-08 08:28:42,691 [ 207291]   INFO - STDERR - at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:1109)
2026-05-08 08:28:42,691 [ 207291]   INFO - STDERR - at com.intellij.openapi.application.ReadAction.computeBlocking(ReadAction.java:88)
2026-05-08 08:28:42,691 [ 207291]   INFO - STDERR - at com.intellij.openapi.application.ReadAction.runBlocking(ReadAction.java:107)
2026-05-08 08:28:42,691 [ 207291]   INFO - STDERR - at com.intellij.openapi.application.ReadAction.run(ReadAction.java:56)
2026-05-08 08:28:42,691 [ 207291]   INFO - STDERR - at com.illuminatedcloud.intellij.util.ReadAction.run(SourceFile:37)
2026-05-08 08:28:42,691 [ 207291]   INFO - STDERR - at com.illuminatedcloud.intellij.lwc.navigation.LightningWebComponentsReferencesSearch.processQuery(SourceFile:82)
2026-05-08 08:28:42,691 [ 207291]   INFO - STDERR - at com.illuminatedcloud.intellij.lwc.navigation.LightningWebComponentsReferencesSearch.processQuery(SourceFile:69)

I had the JavaScript and TypeScript plugin disabled, but all started working after enabling it!
image.png

Thanks again for the support -
Peter
Reply all
Reply to author
Forward
0 new messages