silly-refrigerator-91543
11/17/2018, 8:20 AMscalac_plugins
in the [compile.zinc]
section in the pants.ini
file, but that approach complains that there's no such option.
EDIT: Any help debugging this (e.g. flags I can use to show the compiler options actually being used, etc.) would be greatly appreciated.aloof-angle-91616
11/18/2018, 6:32 AM./pants options | grep -i --color scalac_plugin
. in this case, i think the option moved from [compile.zinc]
to [scala]
(which you should be able to verify by running that command).aloof-angle-91616
11/18/2018, 6:34 AMaloof-angle-91616
11/18/2018, 6:34 AMaloof-angle-91616
11/18/2018, 6:36 AMcompiler_option_sets
which can be specified per-target, which key into fields of the dicts in compiler_option_sets_enabled_args
and compiler_option_sets_disabled_args
. these options are available in multiple scopes (javac, zinc compile, etc)aloof-angle-91616
11/18/2018, 6:37 AMsilly-refrigerator-91543
11/19/2018, 9:44 AMaloof-angle-91616
11/20/2018, 12:29 AMsilly-refrigerator-91543
11/25/2018, 1:55 PM[scala]
. I've submitted a PR fixing that: https://github.com/pantsbuild/pants/pull/6807
The other issue is that I misunderstood the documentation about adding 'scalac-plugin-deps'. For some reason it didn't click that the plugin name one is supposed to use in the scalac_plugins list has nothing to do with the name of the 'target' name which points to the external jar.silly-refrigerator-91543
11/25/2018, 1:57 PMaloof-angle-91616
11/27/2018, 2:00 AMaloof-angle-91616
11/27/2018, 2:00 AMaloof-angle-91616
11/27/2018, 2:00 AMaloof-angle-91616
11/27/2018, 2:02 AMscalac_plugins
code makes sense to someone who has written scalac plugins before but there could be another sentence about what those args actually correspond toaloof-angle-91616
11/27/2018, 2:02 AMsilly-refrigerator-91543
11/29/2018, 8:22 AM