Configuring Javadoc for Scala projects in IntelliJ

After setting up my Scaladoc, I see that some documentation is still missing from the IDE

It seems to me (thanks to Peter for noticing this):

  • Non-bold functions do not have documentation
  • bold functions have a minimum minimum
  • underlined functions have full documentation

No documentation (plain bold) enter image description here

Small minimal documentation (bold) enter image description here

Full documentation (underlined) enter image description here

For recording, my skydiver is set as follows

doc ├── scala-devel-docs │  └── api │  ├── index │  ├── lib │  └── scala │  ├── actors │  │  ├── remote │  │  └── scheduler │  ├── annotation │  │  ├── meta │  │  └── unchecked 

and configured as follows:

enter image description here

EDIT:

Downloaded Javadoc from Oracle and placed in /Library/Scala/2.10.0-RC2/doc/javadoc

 javadoc/api ├── index-files ├── java │  ├── applet │  │  └── class-use │  ├── awt │  │  ├── class-use │  │  ├── color │  │  │  └── class-use │  │  ├── datatransfer │  │  │  └── class-use 

Added 1 more entry in IDEA:

enter image description here

It doesn't seem to help.

Please clarify

+3
source share
1 answer

You should also install Javadocs - these bold methods actually contain a lot of documentation because they come from Java. By the value of the highlight, I answered a different topic.

To add JavaDocs, take a look at the image below: Snapshot from IDEA 12 configuration .

From your snapshot, I was tempted to assume that you added them next to ScalaDocs for the same library. However, JavaDocs / ScalaDocs are associated with a specific library, so you must undo the step you took. IDEA will only search for Scala class library documents within the paths you specify. The figure shows that in the "Project Structure" dialog box, you need to go to the SDK, select the Java SDK that you use, go to the documentation path and click one of the "+" buttons at the bottom. The figure shows how to add a link to the documentation on the Internet, but using the other “+” button you can add the downloaded local documentation (which will be faster for access). The path you indicated seems to be correct.

+2
source

All Articles