-
Notifications
You must be signed in to change notification settings - Fork 26
Troubleshooting IntelliJ IDEA
OCS builds can break in IntelliJ IDEA when upgrading IDEA plugins, the JDK, the OCS version or IDEA itself. Here are some tips you can try more or less to follow in order to try to fix it.
-
Make sure in
File->Project Structure->SDKsthe JDK home path is correctly selected. With a JDK version upgrade sometimes this path changes, so try to use a symlink (i. e./Library/Java/Homeif using the java homebrew cask) for the most current JDK home path. -
Try
File->Invalidate Caches / Restart. -
Try in
sbt:ocsBundleIdeaModule. -
Before running
ocsBundleIdeaModuleremove all.imlfiles:find . -iname '*.iml' | xargs rm -
If you get OOM errors you should increase the memory allocation parameters for the JVM in your sbt configuration file, but here is a oneliner from which you can start fiddling until you find the ones that work for you:
sbt -J-Xmx12G -J-Xms12G -J-XX:ReservedCodeCacheSize=1024m -J-XX:MaxMetaspaceSize=4096m.
If you are working with different ODB versions and do a sbt clean you'll have to rebuild the ODB versions not specified in the build.sbt file.