当 JavaDoc 包含变量时,IntelliJ IDEA (2016.3.4) 中的内联文档(使用 Ctrl+Q
打开它的弹出窗口)会出现问题,例如:
/** Selects the first element of this $coll.
* $orderDependent
* @return the first element of this $coll.
* @throws NoSuchElementException if the $coll is empty.
*/
它不解析这些变量,而是显示:
[Cannot find macro: $coll.]
.斯卡拉 API正确解析并更改 $coll
进入 iterable collection
.有没有办法在 IntelliJ IDEA 中解决这个问题?
最佳答案
这是 IntelliJ IDEA Scala 插件中的一个已知错误:
关于scala - 内联文档显示 List.head() 的 'Cannot find macro',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42436541/