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
Labels

Comments

@scabug
Copy link

@scabug 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

This comment has been minimized.

Copy link
Author

@scabug 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

This comment has been minimized.

Copy link
Author

@scabug 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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.