This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Problems with Colladoc

1 reply
David Christiansen
Joined: 2010-11-22,
User offline. Last seen 42 years 45 weeks ago.

Hi folks,

Myself and a friend would like to make some improvements to Colladoc's
search features, but we've so far been unable to get it running. I was
hoping that someone here might be able to help.

When running the application from sbt (using container:start), I get
java.lang.reflect.InvocationTargetException with a gigantic stack
trace. According to the Colladoc wiki, this should be due to using the
wrong properties or having a misconfigured Postgres. I'm not using
Postgres, so that shouldn't be an issue.

The project was cloned from Github, the submodules pulled in, and it
all compiled just fine. I also ran the included script to create a
default set of properties, in which I pointed Colladoc at the Scala
compiler that it used as well as the sources to said compiler.

My default.props contains:

# Default properties
-doc-title=Colladoc
-doc-version=1.0-SNAPSHOT
-sourcepath=/home/drc/Documents/typesearch/colladoc/scala/src
-classpath=/home/drc/Documents/typesearch/colladoc/scala/build/pack/lib/scala-compiler.jar:/home/drc/Documents/typesearch/colladoc/scala/build/pack/lib/scala-library.jar:/home/drc/Documents/typesearch/colladoc/scala/build/pack/lib/jline.jar:/home/drc/Documents/typesearch/colladoc/scala/build/pack/lib/scalacheck.jar:/home/drc/Documents/typesearch/colladoc/scala/build/pack/lib/scala-compiler.jar:/home/drc/Documents/typesearch/colladoc/scala/build/pack/lib/scala-dbc.jar:/home/drc/Documents/typesearch/colladoc/scala/build/pack/lib/scala-library.jar:/home/drc/Documents/typesearch/colladoc/scala/build/pack/lib/scala-partest.jar:/home/drc/Documents/typesearch/colladoc/scala/build/pack/lib/scalap.jar:/home/drc/Documents/typesearch/colladoc/scala/build/pack/lib/scala-swing.jar:/home/drc/Documents/typesearch/colladoc/scala/build/pack/lib/target:

I've also tried it with the following default.props, which looks more
like the one in the wiki:

# Default properties
-doc-title=Colladoc
-doc-version=1.0-SNAPSHOT
-sourcepath=/home/drc/Documents/typesearch/colladoc/scala/src
-classpath=/home/drc/Documents/typesearch/colladoc/scala/build/pack/lib/scala-compiler.jar:/home/drc/Documents/typesearch/colladoc/scala/build/pack/lib/scala-library.jar

As it seems that the Scaladoc fork runs when calling publish-local
from sbt, I also do that.

Can anyone tell me what I'm doing wrong?

Thanks in advance!

/David Christiansen

petrh
Joined: 2011-03-15,
User offline. Last seen 1 year 32 weeks ago.
Re: Problems with Colladoc
Hi David,
Great to see you're interested in contributing to Colladoc! Just out of curiosity (if that's not a secret), what are you up to?
Your configuration seems to be correct. Have you made any changes to the codebase or are you running the "vanilla" version? Could you please attach last few lines from the exception stack trace?
Cheers,Petr

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland