Why Does IntelliJ With Scala Plugin auto-build worksheet on each edit, even adding space character?
When these auto-builds happen, and the Build Tool window is not hidden, this bug renders the IDE unusable as you must keep moving cursor focus back to Editor window on every character change.
Hiding the Build Tool window allows the cursor focus to remain in Editor window for all edits.
Is there a way to turn off auto builds for scala worksheets?
IntelliJ IDEA 2022.1.2 (Community Edition)
Build #IC-221.5787.30, built on May 31, 2022
Runtime version: 11.0.15+10-b2043.56 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.4
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Registry:
scala.erase.compiler.process.jdk.once=false
Non-Bundled Plugins:
org.intellij.scala (2022.1.16)
Kotlin: 221-1.6.21-release-337-IJ5787.30
请先登录再写评论。
Hi Branco,
What are the worksheet's settings?
Also, what are Scala compiler settings? Preferences | Build, Execution, Deployment | Compiler | Scala Compiler
Hi Arina,
Here are my worksheet and compiler settings.
Thanks Ken. Let me go over this and get back to you.
Hi Ken,
It is a known bug: https://youtrack.jetbrains.com/issue/SCL-19621
I added your case to the bunch (privately) for the developers' reference. They'll look into it.
Not with Scala 3 I'm afraid. The only workaround is to close the Build tool window so that it doesn't steal focus.