Macroparadise: Macro annotation expansion
I've search everywhere to find the answer to this with no luck.
Does the built-in macro expansion require scala-meta? Or, should it work with just macroparadise + scala? Are there specific settings I need to set so Intellij can resolve my macros? I've seen tickets like
https://youtrack.jetbrains.com/issue/SCL-11099
resolved, but Intellij always underlines references to variables generated by macros.
For example, in
// @Hello adds val hello to the annotated object
@Hello
object A {}
A.hello
the IDE would complain (underline A.hello in red) that A has no member "hello" even though everything compiles and runs. My setup is as follows:
MacroParadise:
org.scalamacros
paradise_2.11.8
version 2.1.0
Scala Library/Compiler/Reflect:
version 2.11.8
Intellij IDEA:
version 2017.2
Scala IDE:
2017.2.5
请先登录再写评论。