IntelliJ: Scala worksheet don't pick up code changes without restart

前端 未结 2 2100
名媛妹妹
名媛妹妹 2021-01-04 02:11

If I have the contents of an object imported at the top of a Scala worksheet in Intellij, when I add new things to the object, they cannot be found in the worksheet. Even af

2条回答
  •  长情又很酷
    2021-01-04 02:21

    In case others end up here as bewildered as I was and find that the above doesn't resolve the issue, try unchecking the "Use external compile server for scala" tick box in Preferences > Build, Execution, Deployment > Compiler > Scala Compiler > Scala Compile Server (you can also get to this view from the speedometer-like icon in the bottom right of Intellij).

    Combined with "Make project" on the Scala worksheet view, this seems to ensure that changes are properly compiled and visible from within the worksheet.

提交回复
热议问题