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

Use cases and links crash scaladoc #4898

Closed
scabug opened this issue Aug 10, 2011 · 2 comments
Closed

Use cases and links crash scaladoc #4898

scabug opened this issue Aug 10, 2011 · 2 comments

Comments

@scabug
Copy link

scabug commented Aug 10, 2011

Adding a use case and a link in the same comment crashes scaladoc:

package test
class A {
  /** This will crash scaladoc: [[test.A]]
   * @usecase def f(t:Int):Int
   */
  def f[T](t:T): T = t
}

results in:

sun@sun-laptop:~/Desktop$ ~/scala-trunk/build/pack/bin/scaladoc test.scala 
Exception in thread "main" java.lang.RuntimeException: cannot find template in unfinished universe
	at scala.sys.package$.error(package.scala:27)
	at scala.tools.nsc.doc.model.ModelFactory.findTemplate(ModelFactory.scala:62)
        ...
@scabug
Copy link
Author

scabug commented Aug 10, 2011

Imported From: https://issues.scala-lang.org/browse/SI-4898?orig=1
Reporter: @VladUreche
Attachments:

  • test.scala (created on Aug 10, 2011 9:10:25 PM UTC, 131 bytes)

@scabug
Copy link
Author

scabug commented Nov 22, 2011

Commit Message Bot (anonymous) said:
(ureche in r26048) Changed the way use cases are handled in scaladoc.

If use cases are present, the original member disappears from the list. References #5054, but needs more work on the html part.
If use cases are present along with links, scaladoc doesn't crash anymore. Closes #4898.

Review by kzys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant