<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>48076</bug_id>
          
          <creation_ts>2023-10-19 17:37:38 +0300</creation_ts>
          <short_desc>scaladoc не генерирует документацию html</short_desc>
          <delta_ts>2023-10-19 17:37:38 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>scala</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nikolai Zurabishvili">zurabishvilinn</reporter>
          <assigned_to name="viy">viy</assigned_to>
          <cc>cas</cc>
    
    <cc>viy</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>235226</commentid>
    <comment_count>0</comment_count>
    <who name="Nikolai Zurabishvili">zurabishvilinn</who>
    <bug_when>2023-10-19 17:37:38 +0300</bug_when>
    <thetext>В сизифе:
scala-library-2.13.9-alt3
scala-2.13.9-alt3

В p10 
scala-library-2.13.9-alt0.p10.1
scala-2.13.9-alt0.p10.1

Стенды (сизиф и p10):
kworkstation-10-2-x86-64
kworkstation-10-2-x86-64
На остальных скорее всего аналогично

Шаги:
1) Создать тестовый файл для проверки scaladoc:

$ mkdir testscaladoc &amp;&amp; cd testscaladoc
$ cat &gt; TestScaladoc.scala &lt;&lt;&apos;EOF&apos;
package com.acme.foo

/**
  * A class to represent a “human being.”
  *
  * Specify the `name`, `age`, and `weight` when creating a new `Person`,
  * then access the fields like this:
  * {{{
  * val p = Person(&quot;Al&quot;, 42, 200.0)
  * p.name
  * p.age
  * p.weight
  * }}}
  *
  * Did you know: The [[alvin.Employee]] extends this class.
  *
  * @constructor Create a new person with a `name`, `age`, and `weight`.
  * @param name The person&apos;s name.
  * @param age The person&apos;s age.
  * @param weight The person&apos;s weight.
  * @author Alvin Alexander
  * @version 1.0
  * @todo Add more functionality.
  * @see See [[http://alvinalexander.com alvinalexander.com]] for more
  * information.
  */
@deprecated(&quot;The `weight` field is going away&quot;, &quot;1.0&quot;)
class Person (var name: String, var age: Int, var weight: Double) {

  /**
   * @constructor This is an auxiliary constructor. Just need a `name` here.
   */
  def this(name: String) =
    this(name, 0, 0.0)

  /**
   * @return Returns a greeting based on the `name` field.
   */
  def greet = s&quot;Hello, my name is $name&quot;
}

/**
  * @constructor Create a new `Employee` by specifying their `name`, `age`,
  * and `role`.
  * @param name The employee’s name.
  * @param age The employee’s age.
  * @param role The employee’s role in the organization.
  * @example {{{val e = Employee(&quot;Al&quot;, 42, &quot;Developer&quot;)}}}
  */
class Employee(name: String, age: Int, role: String) extends Person(name, age, 0)
{
  /**
   * @throws boom Throws an Exception 100% of the time, be careful.
   */
  @throws(classOf[Exception])
  def boom = throw new Exception(&quot;boom&quot;)

  /**
   * @return Returns a greeting based on the `other` and `name` fields.
   * @param other The name of the person we&apos;re greeting.
   */
  def greet(other: String) = s&quot;Hello $other, my name is $name&quot;
}

EOF


2) $ scaladoc TestScaladoc.scala


Ожидаемый результат:
В папке появились html файлы включая файл index.html с документацией

Фактический результат:
Exception in thread &quot;main&quot; java.lang.AssertionError: assertion failed: /scala/tools/nsc/doc/html/resource/lib/class.svg
        at scala.Predef$.assert(Predef.scala:279)
        at scala.tools.nsc.doc.html.HtmlFactory$$anon$1.&lt;init&gt;(HtmlFactory.scala:84)
        at scala.tools.nsc.doc.html.HtmlFactory.copyResource$1(HtmlFactory.scala:81)
        at scala.tools.nsc.doc.html.HtmlFactory.$anonfun$generate$1(HtmlFactory.scala:121)
        at scala.tools.nsc.doc.html.HtmlFactory.$anonfun$generate$1$adapted(HtmlFactory.scala:121)
        at scala.collection.immutable.List.foreach(List.scala:333)
        at scala.tools.nsc.doc.html.HtmlFactory.generate(HtmlFactory.scala:121)
        at scala.tools.nsc.doc.html.Doclet.generateImpl(Doclet.scala:30)
        at scala.tools.nsc.doc.doclet.Generator.generate(Generator.scala:35)
        at scala.tools.nsc.doc.DocFactory.generate$1(DocFactory.scala:139)
        at scala.tools.nsc.doc.DocFactory.document(DocFactory.scala:142)
        at scala.tools.nsc.ScalaDoc.process(ScalaDoc.scala:48)
        at scala.tools.nsc.ScalaDoc$.main(ScalaDoc.scala:99)
        at scala.tools.nsc.ScalaDoc.main(ScalaDoc.scala)


Ошибка воспроизводится как с java 11 так и java 17</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>