Play subproject won't run

Paul Draper

I have a SBT project with several subprojects of various kinds.

Some of them are Play projects.

But I can't get them to run

project/build.properties

sbt.version=0.13.7

project/plugins.sbt

addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.7")

project/Build.scala

import play.PlayScala
import sbt._

object MyBuild extends Build {
    lazy val foo = Project("foo", file("foo")).enablePlugins(PlayScala)
}

After sbt foo/run and curl http://localhost:9000/, I get

! Internal server error, for (GET) [/] ->

java.util.NoSuchElementException: None.get
    at scala.None$.get(Option.scala:313) ~[scala-library.jar:na]
    at scala.None$.get(Option.scala:311) ~[scala-library.jar:na]
    at play.PlayReloader$$anon$1.reload(PlayReloader.scala:89) ~[na:na]
    at play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:122) ~[play_2.10-2.3.7.jar:2.3.7]
    at play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:120) ~[play_2.10-2.3.7.jar:2.3.7]

If I change file("foo") to file("."), it suddenly works.

Unfortunately, I have multiple Play projects, and this isn't a viable solution.

How do I run a Play server as an SBT project whose base is different than "."?

Paul Draper

This is a known bug.

It has been this way since at least Play 2.2.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Android Emulator: This app won't run without Google Play services

From Dev

App won't run until update Google Play Services

From Dev

Gradle subprojects won't compile with dependency on other subproject

From Dev

How to require updated play services and add "This app won't run unless you update Google Play services"

From Dev

Springseed won't run?

From Dev

Springseed won't run?

From Dev

Superhot won't run

From Dev

Don't show "This app won't run without google play services" dialog

From Dev

Play 2.3 subproject dependsOn

From Dev

Play 2.2 Filter in Subproject

From Dev

Video won't play correctly

From Dev

SKAudioNode won't play sound

From Dev

VLC won't play music

From Dev

Play button won't work

From Dev

Videos won't play in Chrome

From Dev

Video won't play correctly

From Dev

“App won't run unless you update Google Play services” with Google Maps API

From Dev

This app won't run unless you update Google Play services error

From Dev

“App won't run unless you update Google Play services” with Google Maps API android studio

From Dev

"This app won't run until you update Google Play Services" GameBaseUtils

From Dev

"This app won't run unless you update Google Play Services" when app is installed on real device

From Dev

AndroidStudio emulator "won't run unless you update Google Play Services"

From Dev

com.tools.fd.runtime.BootstrapApplication won't run unless you update Google Play services

From Dev

So when I deploy my code to CloudBees global.java won't run (Play Framework 2.1)

From Dev

“App won't run unless you update Google Play services” with Google Maps API

From Dev

This app won't run unless you update Google Play services error

From Dev

[Android]This app won't run unless you update google play services

From Dev

Google Map API Demo won't run unless you update Google Play services

From Dev

sbt: run task on subproject

Related Related

  1. 1

    Android Emulator: This app won't run without Google Play services

  2. 2

    App won't run until update Google Play Services

  3. 3

    Gradle subprojects won't compile with dependency on other subproject

  4. 4

    How to require updated play services and add "This app won't run unless you update Google Play services"

  5. 5

    Springseed won't run?

  6. 6

    Springseed won't run?

  7. 7

    Superhot won't run

  8. 8

    Don't show "This app won't run without google play services" dialog

  9. 9

    Play 2.3 subproject dependsOn

  10. 10

    Play 2.2 Filter in Subproject

  11. 11

    Video won't play correctly

  12. 12

    SKAudioNode won't play sound

  13. 13

    VLC won't play music

  14. 14

    Play button won't work

  15. 15

    Videos won't play in Chrome

  16. 16

    Video won't play correctly

  17. 17

    “App won't run unless you update Google Play services” with Google Maps API

  18. 18

    This app won't run unless you update Google Play services error

  19. 19

    “App won't run unless you update Google Play services” with Google Maps API android studio

  20. 20

    "This app won't run until you update Google Play Services" GameBaseUtils

  21. 21

    "This app won't run unless you update Google Play Services" when app is installed on real device

  22. 22

    AndroidStudio emulator "won't run unless you update Google Play Services"

  23. 23

    com.tools.fd.runtime.BootstrapApplication won't run unless you update Google Play services

  24. 24

    So when I deploy my code to CloudBees global.java won't run (Play Framework 2.1)

  25. 25

    “App won't run unless you update Google Play services” with Google Maps API

  26. 26

    This app won't run unless you update Google Play services error

  27. 27

    [Android]This app won't run unless you update google play services

  28. 28

    Google Map API Demo won't run unless you update Google Play services

  29. 29

    sbt: run task on subproject

HotTag

Archive