https://pantsbuild.org/ logo
s

silly-refrigerator-91543

11/17/2018, 8:04 AM
Anyone know if global scalac plugins are broken? I have a very simple case where I just want a global plugin, so per the documentation I have
Copy code
jar_library(
    name = 'scalac-plugin-dep',
    jars = [
        scala_jar('org.spire-math', 'kind-projector', '0.9.7'),
    ],
)
in my BUILD.tools. (I'm using 1.11.0rc1.) Unfortunately it seems to have no effect whatsoever. FWIW, if I 'misdeclare' the dependency, e.g. by misspelling the group name (org.spire-math) is does result in resolution errors, so it's at least going through ivy resolution. It just doesn't seem to have any effect on compilation and I get compilation errors where none would be expected. (I have a fully working SBT build, so I know for a fact that the code all compiles). (Aside: Would scalac plugins be expected to work with the pants IDEA plugin and/or project generation? If not then the above question is irrelevant 🙂 )
a

aloof-angle-91616

11/18/2018, 6:34 AM
i believe pants is doing the compilation, but i'm not sure how it interacts with intellij's incremental compiler. i have not tried it but i have no reason to believe scalac plugins wouldn't work -- sorry i cannot be more specific, i could probably dive into the pants repo a little more