Aladdin - Scala Bugtracking
[#638] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Lex Stephane fixed 2006-06-22 12:41:23.0
subject scaladoc fails on library code
code
cd <svn-checkout-of-scala>
mkdir ttt
scaladoc -d ttt $(find src/library/ -name '*.scala')
what happened
[Fatal Error] :1:1: Content is not allowed in prolog.
Exception in thread "main" org.xml.sax.SAXParseException: Content is not allowed in prolog.
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1269)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
        at scala.xml.parsing.FactoryAdapter.loadXML(FactoryAdapter.scala:299)
        at scala.xml.parsing.NoBindingFactoryAdapter.loadXML(NoBindingFactoryAdapter.scala:55)
        at scala.xml.XML$.load(XML.scala:66)
        at scala.tools.nsc.doc.DocUtil$.load(DocUtil.scala:25)
        at scala.tools.nsc.doc.DocGenerator.(DocGenerator.scala:116)
        at scala.tools.nsc.Main$generator$1$.(Main.scala:78)
        at scala.tools.nsc.Main$.generator$0(Main.scala:78)
        at scala.tools.nsc.Main$.process(Main.scala:84)
        at scala.tools.nsc.Main$.main(Main.scala:98)
        at scala.tools.nsc.Main.main(Main.scala)
what expected This seems like a straightforward use of scaladoc. SABUS succeeds here, but scaladoc from the script does not.
[back to overview]
Changes of this bug report
Stephane  edited on  2006-06-22 13:04:51.0
scala.tools.nsc.doc.DocUtil.load needs to be fixed
Stephane  edited on  2006-06-22 17:07:26.0