Skip to content

Troubleshooting IntelliJ IDEA

Danny Navarro edited this page Aug 9, 2017 · 7 revisions

OCS compilation frequently breaks in IntelliJ IDEA when doing upgrades. 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 -> SDKs the 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/Home if using the java homebrew cask) for the most current JDK home path.

  • Try File -> Invalidate Caches / Restart.

  • Try in sbt: ocsBundleIdeaModule.

  • Before running ocsBundleIdeaModule remove all .iml files: 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.

Clone this wiki locally