48 lines
1.5 KiB
Markdown
48 lines
1.5 KiB
Markdown
# IntelliJ setup and troubleshooting
|
|
|
|
**NB!** Please ensure that Intellij uses the same java installation as you do for building this
|
|
project from command line. This ensures that Gradle task avoidance and build cache work properly and
|
|
can greatly reduce build time.
|
|
|
|
Suggested plugins and settings:
|
|
|
|
## [google-java-format](https://plugins.jetbrains.com/plugin/8527-google-java-format)
|
|
|
|
Installation:
|
|
|
|

|
|
|
|
Configuration:
|
|
|
|

|
|
|
|
|
|
## [Save Actions](https://plugins.jetbrains.com/plugin/7642-save-actions)
|
|
|
|
Installation:
|
|
|
|

|
|
|
|
Configuration:
|
|
|
|

|
|
|
|
## Troubleshooting
|
|
|
|
Occassionally, Intellij gets confused, maybe due to the number of modules in this project,
|
|
maybe due ot other reasons. In any case, here's some things that might help:
|
|
|
|
### Invalidate Caches > "Just restart"
|
|
|
|
* Go to File > Invalidate Caches...
|
|
* Unselect all the options
|
|
* Click the "Just restart" link
|
|
|
|
This seems to fix more issues than just closing and re-opening Intellij :shrug:.
|
|
|
|
### Delete your `.idea` directory
|
|
|
|
* Close Intellij
|
|
* Delete the `.idea` directory in the root directory of your local repository
|
|
* Open Intellij
|