<error> appears in the documentation prepared by sbt doc

I am trying to create documentation for some code that I wrote in sbt / scala.

Here is the sbt configuration file

 name := "My project" version := "1.0" libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value libraryDependencies += "org.apache.spark" %% "spark-core" % "1.2.0" libraryDependencies += "org.apache.spark" %% "spark-graphx" % "1.2.0" 

The documentation is generated without errors, but the generated documentation files contain something like this:

 def getGraph(): <error> def getLabelMap(): HashMap[<error>, String] def setGraph(graph: <error>): Unit def setLabelMap(map: HashMap[<error>, String]): Unit 

All <error> fields belong to the org.apache.spark.graphx and org.apache.spark packages (in the above lines, instead of <error> I should get Graph , VertexId , etc.) ..

What should be added to the sbt configuration file to fix this? Greetings

+7
source share
1 answer

For everyone who is interested, I found the answer, I had to add something like this

 scalacOptions in (Compile, doc) := Seq( "-external-urls:scala=https://spark.apache.org/docs/1.1.0/api/scala", "-external-urls:org.apache.spark=https://spark.apache.org/docs/0.9.1/api/graphx" ) 
0
source

All Articles