playframework - OSX Play Framework Auto-Reload -


i've been scouring internet hours now, there lots of "helpful" advice...that cause nothing problems.

this me, exactly:

play framework auto-loading in docker container

i'm running latest (i think, don't know how check downloaded < week ago) version of play! framework inside ubuntu docker container java 8, built following dockerfile:

from ubuntu:latest maintainer [redacted] run sudo apt-get update run sudo apt-get -y install software-properties-common run sudo apt-add-repository ppa:webupd8team/java run sudo apt-get update run echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections run sudo apt-get -y install oracle-java8-installer run java -version 

multiple sources across internet show same or similar issues, , more or less arrive @ same conclusion. i'm starting play application follows:

i'm not going repeat what's linked above, it's identical situation. (the file changes detected, it's showing compile, though webpage doesn't reflect changes.) further, i'm verifying correct compile decompiling generated .class files, it's showing correct code.

now, when magic words: adding following line build.sbt file

playkeys.playwatchservice := play.sbtplugin.run.playwatchservice.sbt(pollinterval.value) 

i overall build.sbt of:

name := """cms-work"""  version := "1.0-snapshot"  retrievemanaged := true  lazy val root = (project in file(".")).enableplugins(playjava)  scalaversion := "2.11.6"  librarydependencies ++= seq(   javajdbc,   cache,   javaws )  // play provides 2 styles of routers, 1 expects actions injected, // other, legacy style, accesses actions statically. routesgenerator := injectedroutesgenerator  // polling auto-reload, because networked filesystem. playkeys.playwatchservice := play.sbtplugin.run.playwatchservice.sbt(pollinterval.value) 

running ./activator in project directory causes reevaluate build file , generate following:

/root/cms-work/build.sbt:23: error: value playwatchservice not member of object play.sbt.play.autoimport.playkeys playkeys.playwatchservice := play.sbtplugin.run.playwatchservice.sbt(pollinterval.value)          ^ [error] type error in expression 

as apparent, one-size-fits-all solution no longer applicable. i've been stumped since. i've found absolutely no notice of changes since 2.3.x make command invalid. instead, see things mentioning "works after 2.3.2", am.

ps:

can explain odd ctrl-d behavior described @ end of linked post. i'm experiencing same, seems odd considering fact ctrl-d supposed exit...

ok, more internet scouring, , broke down , dug through play! framework github find test built.sbt, happened using new option.

apparently, buried deep in migration guide noted. (took me while retrospectively find it.)

my mistake, apparently, lied in assumption 2.4.0 included in 2.3.2+, without checking well-hidden (in humble opinion) documentation. else comes stumbling along similar situation, no further:

playkeys.filewatchservice := play.sbtplugin.run.playwatchservice.sbt(pollinterval.value) 

this new syntax play polling, of 2.4.0. check migration reports version using if causes error see if they've changed again.


just wondering, crazy have expected sort of this deprecated message spit out instead of blind condemnation of i've done? seems add future.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -