Inline Documentation Displays "Cannot Find Macro" for List.head ()

Inline Documentation (use Ctrl+Q to open a popup) in IntelliJ IDEA (2016.3.4) there is a problem when the JavaDoc contains variables, for example:

 /** Selects the first element of this $coll. * $orderDependent * @return the first element of this $coll. * @throws NoSuchElementException if the $coll is empty. */ 

Instead of parsing these variables, it displays: [Cannot find macro: $coll.] . The Scala API parses it correctly and changes $coll to an iterable collection .

Is there a way to fix this problem in IntelliJ IDEA?

+5
source share
1 answer

This is a known bug in the IntelliJ IDEA Scala module:

  • SCL-9720 Viewing documentation is unreadable if @define placeholders are used
+3
source

Source: https://habr.com/ru/post/1264675/


All Articles