fpearsall
fpearsall

Reputation: 637

Scala Play framework: Duplicate mappings of compiled css files

I completed the todolist tutorial and tried to extend it by adding a main.less stylesheet in app/assets/stylesheets. However, when I try to view the project in the browser with any or no rules in main.less I get this error, nicely displayed by the browser:

Unexpected exception

RuntimeException: Duplicate mappings: /Users/franklinpearsall/Documents/Programming/play-2.0.4/todolist/target/scala-2.9.1/classes/public/stylesheets/main.css

from

/Users/franklinpearsall/Documents/Programming/play-2.0.4/todolist/public/stylesheets/main.css

/Users/franklinpearsall/Documents/Programming/play-2.0.4/todolist/target/scala-2.9.1/resource_managed/main/public/stylesheets/main.css

For one, it seems weird that are css files inside target/scala-2.9.1/classes. Why is this happening? I googled around and couldn't find anything relevant. Any help is much appreciated!

Upvotes: 13

Views: 3212

Answers (1)

Sai Hegde
Sai Hegde

Reputation: 623

Remove the main.css from the public/stylesheets directory. Seems like you already have a main.less file elsewhere.

Upvotes: 20

Related Questions