Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scaladoc for just src/reflect crashes #6424

Closed
scabug opened this issue Sep 25, 2012 · 3 comments
Closed

scaladoc for just src/reflect crashes #6424

scabug opened this issue Sep 25, 2012 · 3 comments
Assignees
Milestone

Comments

@scabug
Copy link

@scabug scabug commented Sep 25, 2012

  <target name="docs.lib" depends="docs.pre-lib" unless="docs.library.available">
    <stopwatch name="docs.lib.timer"/>
    <mkdir dir="${build-docs.dir}/library"/>
    <scaladoc
      destdir="${build-docs.dir}/library"
      doctitle="Scala Standard Library API (Scaladoc)"
      docversion="${version.number}"
      docfooter="epfl"
      docsourceurl="${scaladoc.url}€{FILE_PATH}.scala#L1"
      docUncompilable="${src.dir}/library-aux"
      skipPackages="scala.reflect.macros.internal:scala.reflect.internal:scala.reflect.runtime:scala.reflect.io"
      sourcepath="${src.dir}"
      classpathref="pack.classpath"
      addparams="${scalac.args.all}"
      docRootContent="${src.dir}/library/rootdoc.txt"
      implicits="on"
      diagrams="off"
      groups="on"
      rawOutput="${scaladoc.raw.output}"
      noPrefixes="${scaladoc.no.prefixes}">
      <src>
<!--         <files includes="${src.dir}/actors-migration"/>
        <files includes="${src.dir}/actors"/>
        <files includes="${src.dir}/library"/>
 -->        <files includes="${src.dir}/reflect"/>
<!--         <files includes="${src.dir}/swing"/>
        <files includes="${src.dir}/continuations/library"/>
 -->      </src>
      <include name="**/*.scala"/>
      <exclude name="reflect/Code.scala"/>
      <exclude name="reflect/Print.scala"/>
      <exclude name="reflect/Symbol.scala"/>
      <exclude name="reflect/Tree.scala"/>
      <exclude name="reflect/Type.scala"/>
      <exclude name="runtime/*$.scala"/>
      <exclude name="runtime/ScalaRunTime.scala"/>
      <exclude name="runtime/StringAdd.scala"/>
    </scaladoc>
    <touch file="${build-docs.dir}/library.complete" verbose="no"/>
    <stopwatch name="docs.lib.timer" action="total"/>
  </target>
myke menu C:\Projects\Kepler\e 
git: branch = topic/reflection-docs, commit = 9e6ebcad54 docs.pre-lib now checks for mods in reflect (Eugene Burmako, 25.09.2012 17:52:21 +02:00)
psi: filename = cmd.exe, arguments = /C ant -Dscalac.args="""""" docs.lib -buildfile build.xml, home = C:\Projects\Kepler
Buildfile: C:\Projects\Kepler\build.xml

init.jars.check:

init.jars:

init.maven.tasks:

init.maven.jars:
[artifact:dependencies] There were no dependencies specified

init.hasbuildnum:

init.build.snapshot:

init.build.release:

init.build.nopatch.release:

init.build.patch.release:

init.hasmavensuffix:

init.osgi.suffix:

init.osgi.suffix.final:

init.osgi.suffix.snapshot:

init.build.suffix.done:

init.version.git:

init.version.release:

init.version.snapshot:

init.version.done:

init.testjava6:

init.fail.bad.jdk:

init.warn.jdk7:

init.extra.tasks:
[artifact:dependencies] [WARNING] POM for 'biz.aQute:bndlib:pom:1.43.0:compile' is invalid.
[artifact:dependencies] 
[artifact:dependencies] Its dependencies (if any) will NOT be available to the current build.

init:
     [echo]        build time: 25 September 2012, 17:59:08
     [echo]      java version: Java HotSpot(TM) 64-Bit Server VM 1.6.0_33 (1.6)
     [echo]         java args: -Xss128m -Xms3072m -Xmx3072m -XX:+UseParallelGC -XX:MaxPermSize=1024M 
     [echo]        javac args: 
     [echo]       scalac args: -Yreify-copypaste  
     [echo] scalac quick args: -Yreify-copypaste   
     [echo]          git date: 20120925-175221
     [echo]          git hash: 9e6ebcad54
     [echo]     maven version: 2.10.0-SNAPSHOT
     [echo]      OSGi version: 2.10.0.v20120925-175221-9e6ebcad54
     [echo] canonical version: 2.10.0-20120925-175221-9e6ebcad54

asm.start:

asm.lib:

asm.done:

forkjoin.start:

forkjoin.lib:

forkjoin.pack:

forkjoin.done:

fjbg.init:

fjbg.lib:

fjbg.pack:

fjbg.done:

locker.start:

locker.pre-lib:

locker.lib:

locker.pre-reflect:

locker.reflect:

locker.pre-comp:

locker.comp:

locker.done:

quick.start:

quick.pre-lib:

quick.lib:

quick.swing:

quick.lib.done:

quick.pre-reflect:

quick.reflect:

quick.pre-comp:

quick.comp:

quick.pre-plugins:

quick.plugins:

quick.pre-actors-migration:

quick.actors-migration:

quick.pre-scalacheck:

quick.scalacheck:

quick.pre-scalap:

quick.scalap:

quick.pre-partest:

quick.partest:

quick.pre-bin:

quick.bin:

quick.done:

pack.start:

pack.pre-lib:

pack.lib:

pack.swing:

pack.pre-reflect:

pack.reflect:

pack.pre-comp:

pack.comp:

pack.pre-plugins:

pack.plugins:

pack.scalacheck:

pack.pre-partest:

pack.partest:

pack.pre-scalap:

pack.scalap:

pack.pre-bin:

pack.bin:

pack.done:

docs.start:
     [echo] Scaladoc will point to https://github.com/scala/scala/tree/9e6ebcad54/src for source files.

docs.pre-lib:

docs.lib:
 [scaladoc] Documenting 125 source files to C:\Projects\Kepler\build\scaladoc\library
 [scaladoc] warning: there were 2 feature warnings; re-run with -feature for details
 [scaladoc] model contains 246 documentable templates
 [scaladoc] warning: Could not find any member to link for "scala.collection".
 [scaladoc] warning: Could not find any member to link for "scala.collection.immutable".
 [scaladoc] warning: Could not find any member to link for "scala.collection.mutable".
 [scaladoc] warning: Could not find any member to link for "scala.collection.parallel".
 [scaladoc] warning: Could not find any member to link for "scala.actors".
 [scaladoc] warning: Could not find any member to link for "scala.io".
 [scaladoc] warning: Could not find any member to link for "scala.math".
 [scaladoc] warning: Could not find any member to link for "scala.sys".
 [scaladoc] warning: Could not find any member to link for "scala.util.matching".
 [scaladoc] warning: Could not find any member to link for "scala.util.parsing.combinator".
 [scaladoc] warning: Could not find any member to link for "scala.xml".
 [scaladoc] warning: Could not find any member to link for "scala.Predef".
 [scaladoc] warning: Could not find any member to link for "scala.collection.immutable.List".
 [scaladoc] java.util.NoSuchElementException: key not found: scala.Unit
 [scaladoc]   at scala.collection.MapLike$class.default(MapLike.scala:228)
 [scaladoc]   at scala.collection.AbstractMap.default(Map.scala:58)
 [scaladoc]   at scala.collection.MapLike$class.apply(MapLike.scala:141)
 [scaladoc]   at scala.collection.AbstractMap.apply(Map.scala:58)
 [scaladoc]   at scala.tools.nsc.doc.model.diagram.DiagramFactory$$anonfun$12$$anonfun$apply$2.apply(DiagramFactory.scala:154)
 [scaladoc]   at scala.tools.nsc.doc.model.diagram.DiagramFactory$$anonfun$12$$anonfun$apply$2.apply(DiagramFactory.scala:154)
 [scaladoc]   at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)

BUILD FAILED
C:\Projects\Kepler\build.xml:2349: Document failed because of an internal documenter error (key not found: scala.Unit); see the error output for details.
 [scaladoc]   at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)

 [scaladoc]   at scala.collection.immutable.List.foreach(List.scala:309)
 [scaladoc]   at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
 [scaladoc]   at scala.collection.AbstractTraversable.map(Traversable.scala:105)
 [scaladoc]   at scala.tools.nsc.doc.model.diagram.DiagramFactory$$anonfun$12.apply(DiagramFactory.scala:154)
 [scaladoc]   at scala.tools.nsc.doc.model.diagram.DiagramFactory$$anonfun$12.apply(DiagramFactory.scala:154)
 [scaladoc]   at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
 [scaladoc]   at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
Total time: 38 seconds
 [scaladoc]   at scala.collection.immutable.List.foreach(List.scala:309)
 [scaladoc]   at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
 [scaladoc]   at scala.collection.AbstractTraversable.map(Traversable.scala:105)
 [scaladoc]   at scala.tools.nsc.doc.model.diagram.DiagramFactory$class.makeContentDiagram(DiagramFactory.scala:154)
 [scaladoc]   at scala.tools.nsc.doc.DocFactory$$anon$1.makeContentDiagram(DocFactory.scala:81)
 [scaladoc]   at scala.tools.nsc.doc.model.ModelFactory$DocTemplateImpl.contentDiagram(ModelFactory.scala:486)
 [scaladoc]   at scala.tools.nsc.doc.html.page.Template.memberToCommentBodyHtml(Template.scala:656)
 [scaladoc]   at scala.tools.nsc.doc.html.page.Template.memberToCommentHtml(Template.scala:302)
 [scaladoc]   at scala.tools.nsc.doc.html.page.Template.<init>(Template.scala:113)
 [scaladoc]   at scala.tools.nsc.doc.html.HtmlFactory.scala$tools$nsc$doc$html$HtmlFactory$$writeTemplate$1(HtmlFactory.scala:144)
 [scaladoc]   at scala.tools.nsc.doc.html.HtmlFactory$$anonfun$scala$tools$nsc$doc$html$HtmlFactory$$writeTemplate$1$2.apply(HtmlFactory.scala:146)
 [scaladoc]   at scala.tools.nsc.doc.html.HtmlFactory$$anonfun$scala$tools$nsc$doc$html$HtmlFactory$$writeTemplate$1$2.apply(HtmlFactory.scala:146)
 [scaladoc]   at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
 [scaladoc]   at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
 [scaladoc]   at scala.collection.immutable.List.foreach(List.scala:309)
 [scaladoc]   at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
 [scaladoc]   at scala.collection.AbstractTraversable.map(Traversable.scala:105)
 [scaladoc]   at scala.tools.nsc.doc.html.HtmlFactory.scala$tools$nsc$doc$html$HtmlFactory$$writeTemplate$1(HtmlFactory.scala:146)
 [scaladoc]   at scala.tools.nsc.doc.html.HtmlFactory.writeTemplates(HtmlFactory.scala:150)
 [scaladoc]   at scala.tools.nsc.doc.html.HtmlFactory.generate(HtmlFactory.scala:129)
 [scaladoc]   at scala.tools.nsc.doc.html.Doclet.generateImpl(Doclet.scala:16)
 [scaladoc]   at scala.tools.nsc.doc.doclet.Generator.generate(Generator.scala:24)
 [scaladoc]   at scala.tools.nsc.doc.DocFactory.generate$1(DocFactory.scala:134)
 [scaladoc]   at scala.tools.nsc.doc.DocFactory.document(DocFactory.scala:137)
 [scaladoc]   at scala.tools.ant.Scaladoc.execute(Scaladoc.scala:674)
 [scaladoc]   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
 [scaladoc]   at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
 [scaladoc]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [scaladoc]   at java.lang.reflect.Method.invoke(Method.java:597)
 [scaladoc]   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
 [scaladoc]   at org.apache.tools.ant.Task.perform(Task.java:348)
 [scaladoc]   at org.apache.tools.ant.Target.execute(Target.java:390)
 [scaladoc]   at org.apache.tools.ant.Target.performTasks(Target.java:411)
 [scaladoc]   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
 [scaladoc]   at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
 [scaladoc]   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
 [scaladoc]   at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
 [scaladoc]   at org.apache.tools.ant.Main.runBuild(Main.java:809)
 [scaladoc]   at org.apache.tools.ant.Main.startAnt(Main.java:217)
 [scaladoc]   at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
 [scaladoc]   at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
@scabug
Copy link
Author

@scabug scabug commented Sep 25, 2012

@scabug
Copy link
Author

@scabug scabug commented Sep 25, 2012

@VladUreche said:
TODO: Also replace docDiagrams.isSetByUser by docDiagrams.value and refactor the duplicated code around diagram creation in Template.scala.

@scabug
Copy link
Author

@scabug scabug commented May 14, 2013

@scabug scabug closed this May 17, 2013
@scabug scabug added this to the 2.10.2-RC1 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants