As a IDEasy user, I want to use IntelliJ properly and fast so that I can work efficiently.
Actual situation
- IDEasy opens the workspace as toplevel folder in the
Project view of IntelliJ
- IDEasy generates an
idea.properties file in the workspace that relocated the configuration locations of IntelliJ so they are inside a .intellij subfolder of the workspace
- As a result every workspace has its own
.intellij subfolder which in my case is 6.60 GB (7,092,398,951 bytes) and for having 6 workspaces I have this 6 times
- Even worse that
.intellij folder is indexed by Intellij that by default indexes everything under the root folder that is opened in IntelliJ. As a result indexing writes an updated index inside .intellij so IntelliJ again notices that files have changed that need to be reindexed and also in the search I can find all the internal intellij files storing what I searched and did run giving me confusing results.
Suggested solution
We should redirect idea.log.path, and idea.system.path to be outside of the workspace.
So in other words .intellij/system folder should be in $IDE_HOME rather than in $IDE_HOME/workspaces/$WORKSPACE.
We cannot move idea.config.path or the idea.properties outside of the workspace since our automatic IDE configuration is merging configurations into the workspace. Therefore we did put .intellij into the workspace, so that we can reuse our existing mechanism (this is also how it worked for eclipse from the start that has this concept of workspaces and uses a .metadata folder for everything just like we do with .intellij folder but for Eclipse this is the default behaviour not tweaked by IDEasy).
Currently it is not possible to configure something outside of the workspace with our auto configuration (workspace configurator aka merger).
All this comes from here:
https://github.com/devonfw/ide-settings/blob/9551c1a222b64e958cdf1e8b01a952fa537241a6/intellij/workspace/update/idea.properties#L1-L4
Migration
Since projects have already started with IDEasy such change would not reach them but only new projects starting from scratch.
Therefore, we should consider writing a migration that checks the idea.properties file in the settings and migrates them automatically.
Alternatively we could manually approach the IDEasy projects and suggest them to update their settings accordingly.
Workaround
If you are reading this and struggling with the indexing, you can do the following quickfix:
Right-click .intellij folder in Project view of IntelliJ and select Mark Directory as > Excluded.
As a IDEasy user, I want to use IntelliJ properly and fast so that I can work efficiently.
Actual situation
Projectview of IntelliJidea.propertiesfile in the workspace that relocated the configuration locations of IntelliJ so they are inside a.intellijsubfolder of the workspace.intellijsubfolder which in my case is 6.60 GB (7,092,398,951 bytes) and for having 6 workspaces I have this 6 times.intellijfolder is indexed by Intellij that by default indexes everything under the root folder that is opened in IntelliJ. As a result indexing writes an updated index inside.intellijso IntelliJ again notices that files have changed that need to be reindexed and also in the search I can find all the internal intellij files storing what I searched and did run giving me confusing results.Suggested solution
We should redirect
idea.log.path, andidea.system.pathto be outside of the workspace.So in other words
.intellij/systemfolder should be in$IDE_HOMErather than in$IDE_HOME/workspaces/$WORKSPACE.We cannot move
idea.config.pathor theidea.propertiesoutside of the workspace since our automatic IDE configuration is merging configurations into the workspace. Therefore we did put.intellijinto the workspace, so that we can reuse our existing mechanism (this is also how it worked for eclipse from the start that has this concept of workspaces and uses a.metadatafolder for everything just like we do with.intellijfolder but for Eclipse this is the default behaviour not tweaked by IDEasy).Currently it is not possible to configure something outside of the workspace with our auto configuration (workspace configurator aka merger).
All this comes from here:
https://github.com/devonfw/ide-settings/blob/9551c1a222b64e958cdf1e8b01a952fa537241a6/intellij/workspace/update/idea.properties#L1-L4
Migration
Since projects have already started with IDEasy such change would not reach them but only new projects starting from scratch.
Therefore, we should consider writing a migration that checks the
idea.propertiesfile in thesettingsand migrates them automatically.Alternatively we could manually approach the IDEasy projects and suggest them to update their
settingsaccordingly.Workaround
If you are reading this and struggling with the indexing, you can do the following quickfix:
Right-click
.intellijfolder inProjectview of IntelliJ and selectMark Directory as > Excluded.