KronicDeth / intellij-elixir

Elixir plugin for JetBrain's IntelliJ Platform (including Rubymine)
Other
1.83k stars 153 forks source link

java.lang.Throwable: Stub ids not found for key in index = elixir.all.name #2427

Open marcellanz opened 2 years ago

marcellanz commented 2 years ago

System

Plugin Version: 12.0.1 Application: IntelliJ IDEA Ultimate Edition (2021.3) Operating System: Mac OS X (12.1)

Event

Exception

Stacktrace

java.lang.Throwable: Stub ids not found for key in index = elixir.all.name, file = file:///Users/some_directory/eigr/massa/_build/test/lib/grpc/ebin/Elixir.GRPC.Transport.Utils.beam, file type = BEAM, indexed file type = BEAM
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:182)
    at com.intellij.psi.stubs.StubProcessingHelper.retrieveStubIdList(StubProcessingHelper.java:65)
    at com.intellij.psi.stubs.StubIndexImpl.lambda$processElements$4(StubIndexImpl.java:339)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
    at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:338)
    at com.intellij.psi.stubs.StubIndex.processElements(StubIndex.java:51)
    at org.elixir_lang.reference.resolver.Callable.nameArityInAnyModule(Callable.kt:185)
    at org.elixir_lang.reference.resolver.Callable.resolve(Callable.kt:90)
    at org.elixir_lang.reference.resolver.Callable.resolveAll(Callable.kt:84)
    at org.elixir_lang.reference.resolver.Callable.resolvePreferred(Callable.kt:74)
    at org.elixir_lang.reference.resolver.Callable.resolve(Callable.kt:39)
    at org.elixir_lang.reference.resolver.Callable.resolve(Callable.kt:35)
    at org.elixir_lang.reference.resolver.Callable.resolve(Callable.kt:30)
KronicDeth commented 2 years ago

I'm not sure why this wouldn't just return no results and instead error.

You can force the indexes to rebuild using the following steps:

  1. FIle > Invalidate Caches
  2. Click Invalidate and Restart.
marcellanz commented 2 years ago

I will try that next time. Many errors I got with the plugin recently, even let intellij tell me that the index/state of project is inconsistent or damaged (sorry I dont have the correct term it reported) and that I should restart, Then usually everything got indexed after the restart.