OSX Play Framework Auto-Reload

前端 未结 2 1849
粉色の甜心
粉色の甜心 2021-01-21 03:29

I\'ve been scouring the internet for hours now, there is lots of \"helpful\" advice...that cause nothing but problems.

This is me, almost exactly:

Play framework

2条回答
  •  后悔当初
    2021-01-21 04:26

    Ok, more internet scouring, and I finally broke down and dug through the Play! Framework github to find their test built.sbt, which happened to be using the new option.

    Apparently, buried deep in the migration guide this was noted. (Took me a while to retrospectively find it.)

    My mistake, apparently, lied in the assumption that 2.4.0 was included in 2.3.2+, without checking the well-hidden (in my humble opinion) documentation. For anyone else who comes stumbling along with a similar situation, look no further:

    PlayKeys.fileWatchService := play.sbtplugin.run.PlayWatchService.sbt(pollInterval.value)
    

    This is the new syntax for the play polling, as of 2.4.0. Check the migration reports up to the version you are using if this causes another error to see if they've changed it again.


    Just wondering, am I crazy to have expected some sort of This is Deprecated message to be spit out instead of just blind condemnation of all that I've done? That seems like something that would be good to add for the future.

提交回复
热议问题