Blankman
Blankman

Reputation: 267040

play command doesn't work when inside of an existing sbt project

So I have an existing sbt project setup:

common
services
project/build.scala
build.sbt

Now when inside this folder, I want to create a play application called 'web'.

I get this error:

error] Not a valid command: new (similar: set)
[error] Not a valid project ID: new
[error] Expected ':' (if selecting a configuration)
[error] Not a valid key: new (similar: name, run, runner)
[error] new
[error]    ^

The play command works just fine if I try the same thing in a new folder.

How can I get the play command to work inside of an existing sbt project?

I'm using sbt .13

Upvotes: 0

Views: 318

Answers (1)

WeaponsGrade
WeaponsGrade

Reputation: 878

Why not create the project outside of the current structure, then move the created directory where you want it to live?

Upvotes: 1

Related Questions