Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up Scaladoc for IntelliJ

When creating a new Scala project using IntelliJ, i get the scaladoc warning.

How can this be rectified please?

enter image description here

like image 615
James Raitsev Avatar asked Dec 08 '12 21:12

James Raitsev


People also ask

How do I add Scala framework support in IntelliJ?

To add Scala support to existing module:Right-click the module in Project View, choose “Add Framework Support…” Check “Scala” in technologies list (unavailable if module has Scala facet attached) Provide a path to Scala installation (if not detected)

How do I create a Scala jar in IntelliJ?

IntelliJ IDEA enables creation of JAR as an artifact of a project. Do the following steps. From the Project Structure window, navigate to Artifacts > the plus symbol + > JAR > From modules with dependencies.... In the Create JAR from Modules window, select the folder icon in the Main Class text box.


1 Answers

I'll go ahead and answer my own question here

  1. Navigate to Scala download page and download appropriate API
  2. Unpack the archive and move contents into your Scala's installation (I ran sudo mkdir scaladoc to create /Library/Scala/2.10.0-RC2/scaladoc)
  3. Update module to point to the right location

enter image description here

You can quickly verify installation by typing

object Main extends App {
}

Once you Ctrl+J on the App, you should see the scaladoc which matches the online version

enter image description here

like image 173
James Raitsev Avatar answered Oct 02 '22 09:10

James Raitsev