6

When I execute sbt run and refresh, localhost:9000 will show my changes. If i change something else, save my project and hit refresh again localhost:9000 does not show my changes. If i try sbt ~run I can see sbt recompiling every time i change a file and save, however refreshing localhost:9000 does not show any updates. Only if I terminate the sbt process and restart it can I see my changes.

My setup:

Windows 8.1

Play 2.6

sbt 1.0.2

scala 2.12.3

Intellij 2017.2.5

plamb
  • 5,636
  • 1
  • 18
  • 31
  • I am having the same problem. For me, it happens mostly when I amake a change to a view. Play hot reload does not seem to be able to catch it unless I restart the app – jrook Oct 31 '17 at 19:48
  • Looks like a known issue https://groups.google.com/d/msg/play-framework/N1ozDOe5sU4/jKkSLhZ1AQAJ – mfirry Oct 31 '17 at 20:04
  • Can confirm the answer in the thread that rolling back to sbt to 0.13.16 fixes the problem. You do this in /project/build.properties – plamb Oct 31 '17 at 20:19
  • 1
    Try with Play 2.6.7 please. – marcospereira Nov 02 '17 at 16:29
  • As @marcospereira suggested, try again with the latest release of Play. File reloading issues is something that we're actively working on. – Rich Dougherty Nov 05 '17 at 23:53

1 Answers1

1

Try updating Play's file watcher by adding this to build.sbt:

libraryDependencies += "com.lightbend.play" %% "play-file-watch" % "1.1.3"
Aunmag
  • 852
  • 12
  • 17