Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 897
fpearsall Avatar asked Nov 02 '12 21:11

fpearsall


1 Answers

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

like image 176
Sai Hegde Avatar answered Oct 21 '22 07:10

Sai Hegde