Skip to content

index cache not working after project update #1079

Closed

Description

@martinlippert

The symbol cache doesn't update itself anymore when changing files after a project update (like changing the pom.xml) file. The reason for that is that the cache key for the beans is calculated from the classpath entries and this computation includes the output folders of a project.

While this is not totally wrong on its own, the timestamp of the output folders are changed in a somewhat unpredictable fashion. In the case described above it appears to be the case that the timestamp of the output folder is changed after the first Java source file save event after a project update. That causes the confusion that the symbol machinery gets a single file update event (for the changed java source file), but the cache key is different from what the symbol cache knows about from the project update event.

The solution to this is to not include the output folders in the cache key computation anymore - which doesn't make a lot of sense anyway since the source files are tracked in the symbol cache anyway.

Activity

  1. added this to the 4.19.1.RELEASE milestone on Jul 24, 2023
  2. added a commit that references this issue on Jul 24, 2023
  3. added
    for: vscode
    on Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: eclipsefor: vscodetheme: performancetheme: spring index & symbolstype: bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions