Skip to content

Instantly share code, notes, and snippets.

@pvorb
Created November 28, 2012 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvorb/4161306 to your computer and use it in GitHub Desktop.
Save pvorb/4161306 to your computer and use it in GitHub Desktop.
sbt doc fails with java annotation
[info] Loading global plugins from C:\Users\Paul\.sbt\plugins
[info] Set current project to cataract (in build file:/C:/Dev/Scala/cataract/)
[info] Loading global plugins from C:\Users\Paul\.sbt\plugins
[debug] Running task... Cancelable: false, check cycles: false
[debug]
[debug] Initial source changes:
[debug] removed:Set()
[debug] added: Set()
[debug] modified: Set()
[debug] Removed products: Set()
[debug] Modified external sources: Set()
[debug] Modified binary dependencies: Set()
[debug] Initial directly invalidated sources: Set()
[debug]
[debug] Sources indirectly invalidated by:
[debug] product: Set()
[debug] binary dep: Set()
[debug] external source: Set()
[debug] Initially invalidated: Set()
[debug] Copy resource mappings:
[debug]
[debug] Other repositories:
[debug] Default repositories:
[debug] Raw(ProjectResolver(inter-project, mapped: ))
[debug] URLRepository(typesafe-ivy-releases,sbt.Patterns@fc48ce)
[debug] URLRepository(sbt-plugin-releases,sbt.Patterns@10fdc46)
[debug] FileRepository(local,FileConfiguration(true,None),sbt.Patterns@469b16)
[debug] public: http://repo1.maven.org/maven2/
[debug] Using inline dependencies specified in Scala.
[debug] post 1.3 ivy file: using exact as default matcher
[info] Set current project to cataract (in build file:/C:/Dev/Scala/cataract/)
[info] Generating Scala API documentation for main sources to C:\Dev\Scala\cataract\target\scala-2.9.2\api...
[warn] there were 2 deprecation warnings; re-run with -deprecation for details
model contains 38 documentable templates
java.lang.AssertionError: assertion failed
at scala.Predef$.assert(Predef.scala:146)
at scala.tools.nsc.doc.model.ModelFactory$$anon$15.<init>(ModelFactory.scala:438)
at scala.tools.nsc.doc.model.ModelFactory.makeAnnotation(ModelFactory.scala:425)
at scala.tools.nsc.doc.model.ModelFactory$EntityImpl$$anonfun$annotations$1.apply(ModelFactory.scala:79)
at scala.tools.nsc.doc.model.ModelFactory$EntityImpl$$anonfun$annotations$1.apply(ModelFactory.scala:79)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:76)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:233)
at scala.collection.immutable.List.map(List.scala:76)
at scala.tools.nsc.doc.model.ModelFactory$EntityImpl.annotations(ModelFactory.scala:79)
at scala.tools.nsc.doc.html.page.Template.memberToCommentBodyHtml(Template.scala:359)
at scala.tools.nsc.doc.html.page.Template.memberToCommentHtml(Template.scala:234)
at scala.tools.nsc.doc.html.page.Template.memberToHtml(Template.scala:220)
at scala.tools.nsc.doc.html.page.Template$$anonfun$body$3.apply(Template.scala:121)
at scala.tools.nsc.doc.html.page.Template$$anonfun$body$3.apply(Template.scala:121)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:76)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:233)
at scala.collection.immutable.List.map(List.scala:76)
at scala.tools.nsc.doc.html.page.Template.body(Template.scala:121)
at scala.tools.nsc.doc.html.page.Template.body(Template.scala:14)
at scala.tools.nsc.doc.html.HtmlPage.writeFor(HtmlPage.scala:42)
at scala.tools.nsc.doc.html.HtmlFactory$$anonfun$generate$2.apply(HtmlFactory.scala:112)
at scala.tools.nsc.doc.html.HtmlFactory$$anonfun$generate$2.apply(HtmlFactory.scala:112)
at scala.tools.nsc.doc.html.HtmlFactory.writeTemplate$1(HtmlFactory.scala:124)
at scala.tools.nsc.doc.html.HtmlFactory$$anonfun$writeTemplate$1$1.apply(HtmlFactory.scala:126)
at scala.tools.nsc.doc.html.HtmlFactory$$anonfun$writeTemplate$1$1.apply(HtmlFactory.scala:126)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:76)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:233)
at scala.collection.immutable.List.map(List.scala:76)
at scala.tools.nsc.doc.html.HtmlFactory.writeTemplate$1(HtmlFactory.scala:126)
at scala.tools.nsc.doc.html.HtmlFactory$$anonfun$writeTemplate$1$1.apply(HtmlFactory.scala:126)
at scala.tools.nsc.doc.html.HtmlFactory$$anonfun$writeTemplate$1$1.apply(HtmlFactory.scala:126)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:76)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:233)
at scala.collection.immutable.List.map(List.scala:76)
at scala.tools.nsc.doc.html.HtmlFactory.writeTemplate$1(HtmlFactory.scala:126)
at scala.tools.nsc.doc.html.HtmlFactory$$anonfun$writeTemplate$1$1.apply(HtmlFactory.scala:126)
at scala.tools.nsc.doc.html.HtmlFactory$$anonfun$writeTemplate$1$1.apply(HtmlFactory.scala:126)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:76)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:233)
at scala.collection.immutable.List.map(List.scala:76)
at scala.tools.nsc.doc.html.HtmlFactory.writeTemplate$1(HtmlFactory.scala:126)
at scala.tools.nsc.doc.html.HtmlFactory.writeTemplates(HtmlFactory.scala:130)
at scala.tools.nsc.doc.html.HtmlFactory.generate(HtmlFactory.scala:112)
at scala.tools.nsc.doc.html.Doclet.generateImpl(Doclet.scala:16)
at scala.tools.nsc.doc.doclet.Generator.generate(Generator.scala:24)
at scala.tools.nsc.doc.DocFactory.generate$1(DocFactory.scala:123)
at scala.tools.nsc.doc.DocFactory.document(DocFactory.scala:126)
at xsbt.Runner.run(ScaladocInterface.scala:30)
at xsbt.ScaladocInterface.run(ScaladocInterface.scala:11)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:73)
at sbt.compiler.AnalyzingCompiler.doc(AnalyzingCompiler.scala:54)
at sbt.compiler.AnalyzingCompiler.doc(AnalyzingCompiler.scala:50)
at sbt.Scaladoc$$anonfun$apply$3.apply(Doc.scala:62)
at sbt.Scaladoc$$anonfun$apply$3.apply(Doc.scala:62)
at sbt.Doc$class.generate(Doc.scala:36)
at sbt.Scaladoc.generate(Doc.scala:58)
at sbt.Scaladoc.apply(Doc.scala:62)
at sbt.Doc$$anonfun$1$$anonfun$apply$1.apply(Doc.scala:50)
at sbt.Doc$$anonfun$1$$anonfun$apply$1.apply(Doc.scala:48)
at sbt.Tracked$$anonfun$outputChanged$1.apply(Tracked.scala:57)
at sbt.Tracked$$anonfun$outputChanged$1.apply(Tracked.scala:52)
at sbt.Doc$class.cached(Doc.scala:55)
at sbt.Scaladoc.cached(Doc.scala:58)
at sbt.Defaults$$anonfun$docTaskSettings$1.apply(Defaults.scala:546)
at sbt.Defaults$$anonfun$docTaskSettings$1.apply(Defaults.scala:540)
at sbt.Scoped$$anonfun$hf5$1.apply(Structure.scala:581)
at sbt.Scoped$$anonfun$hf5$1.apply(Structure.scala:581)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:49)
at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:41)
at sbt.std.Transform$$anon$5.work(System.scala:71)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:238)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[error] (compile:doc) java.lang.AssertionError: assertion failed
[error] Total time: 5 s, completed 28.11.2012 14:23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment