Background compilation stopped working around 2018.2
Answered
Well, the topic title says it all. Not a single java project compiles in the background anymore for me. Not since around IntelliJ IDEA 2018.2. Currently using 2019.2.3. No processes are running. Are there any undocumented prerequisites to it working?
Please sign in to leave a comment.
Please see https://zeroturnaround.com/software/jrebel/quickstart/intellij/enable-automatic-compilation-in-intellij-idea/ and https://intellij-support.jetbrains.com/hc/en-us/community/posts/360003328879-Can-t-get-devtools-auto-build-service-working-on-Windows-?page=1#community_comment_360000427059.
Thanks Serge. Ticking compiler.document.save.enabled solved it. So natural question here is, why would this functionality require enabling an internal flag that’s not exposed anywhere in the settings dialog?
Not everyone wants a compilation to occur on typing without saving. Almost the same behavior can be achieved with the autosave setting.
See the discussion at https://youtrack.jetbrains.com/issue/IDEA-141128 .
OK, so the new default behaviour is to effectively trigger compilation by force-saving then? I was missing that link. Automake is triggered by saving and there are a few ways that can trigger saving. Thanks, pretty clear now.