【发布时间】:2014-07-18 13:37:55
【问题描述】:
我正在使用 Scala 完成 Play 2 框架的教程,并在尝试编译时遇到此错误:
[playProducts] $ compile
[trace] Stack trace suppressed: run last compile:managedSources for the full output.
[error] (compile:managedSources) java.io.FileNotFoundException:
/Users/peterbecich/scala/playProducts/app/views/tags/.#barcode.scala.html
(No such file or directory)
托管来源列表不可见。
[playProducts] $ show managedSources
[trace] Stack trace suppressed: run last compile:managedSources for the full output.
[error] (compile:managedSources) java.io.FileNotFoundException:
/Users/peterbecich/scala/playProducts/app/views/tags/.#barcode.scala.html (No such file or directory)
非托管源是可见的,并且没有列出临时文件。
[playProducts] $ show unmanagedSources
[info] ArrayBuffer(/Users/peterbecich/scala/playProducts/app/controllers/Application.scala, /Users/peterbecich/scala/playProducts/app/controllers/Barcodes.scala, /Users/peterbecich/scala/playProducts/app/controllers/Products.scala, /Users/peterbecich/scala/playProducts/app/models/Product.scala)
解决方案是否类似于在 build.sbt 中包含类似的内容?这并没有解决它,显然不是所有临时文件的解决方案。你可以在 SBT 配置文件中使用正则表达式吗?
excludeFilter in managedSources := ".#barcode.scala.html"
我在 Mavericks 上使用 Oracle JDK 8。我应该降级到 JDK 6 还是 7? SBT 是 0.13.5,Play 是 2.2.3,Scala 是 2.10.3。
这是完整的编译错误:http://pastebin.com/gGGmUE3f
感谢您的反馈!
【问题讨论】:
标签: playframework-2.0 sbt