Since upgrading to IntelliJ IDEA 2024.1 I’ve had a constant problem where even if I Invalidate Caches (with all options checked) and delete .idea, things work for a little bit but then suddenly all the files and directories under the Project view disappear and I get several messages in notifications such as
Cannot load settings from file ‘/Users/acheong/Library/Application Support/JetBrains/IntelliJIdea2024.1/options/databaseSettings.xml’: /Users/acheong/Library/Application Support/JetBrains/IntelliJIdea2024.1/options/databaseSettings.xml: Too many open files File content will be recreated
and a few of
Unable to save settings
Failed to save settings. Please restart IntelliJ IDEA
as well as
Local History is broken
Local History storage file has become corrupted and will be rebuilt.
Re-installing IntelliJ from scratch appeared to fix the issue for a while but after a few days the same thing started happening again.
I highly doubt this is relevant but the only other thing I can think of that I changed is upgrading my Java SDK to 21 (which is the reason I needed to upgrade to a newer version of IntelliJ in the first place).