Rebuild IntelliJ project indexes

前端 未结 2 2066
悲哀的现实
悲哀的现实 2020-12-28 11:42

IntelliJ IDEA 10.5.1 is reporting zero usages for all method, classes etc.

Can I force IntelliJ to rebuild the project indexes?

相关标签:
2条回答
  • 2020-12-28 11:47

    File -> Invalidate caches...

    (Force rebuild of all caches and indices on next startup)

    Restart IntelliJ IDEA.

    Caution: This might Remove local history.

    0 讨论(0)
  • 2020-12-28 11:53

    Restarting IntelliJ fixed this in my case (Ultimate 2019.1) -- on restarting, it rebuild the indexes by itself.

    An interesting side effect, apart from all imports and non-local references coming up as errors, was the error reported on all string literals:

    Incompatible types. 
    Required: java.lang.String 
    Found: java.lang.String
    
    0 讨论(0)
提交回复
热议问题