Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index cache not working after project update #1079

Closed
martinlippert opened this issue Jul 24, 2023 · 0 comments
Closed

index cache not working after project update #1079

martinlippert opened this issue Jul 24, 2023 · 0 comments
Labels
for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode theme: performance theme: spring index & symbols type: bug

Comments

@martinlippert
Copy link
Member

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.

@martinlippert martinlippert added this to the 4.19.1.RELEASE milestone Jul 24, 2023
martinlippert added a commit that referenced this issue Jul 24, 2023
…re to avoid confusion caused by random output folders timestamp changes
@martinlippert martinlippert added the for: vscode something that is specific for VSCode label Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode theme: performance theme: spring index & symbols type: bug
Projects
None yet
Development

No branches or pull requests

1 participant