https://pantsbuild.org/ logo
#general
Title
# general
w

witty-family-13337

12/28/2021, 1:09 PM
hi all, not sure if this the right channel, but facing and odd behaviour in 2.9.0rc1 when using global scalac plugins, in particular with
kind-projector
. Seeing the error
Missing required plugin: kind-projector
when trying to compile some files, but adding the the
-Xplugin-list
argument to
scalac.args
in
pants.toml
seems to fix it (or at least makes it go away). Funny thing is that we also use the
better-monadic-for
scalac plugin and we never see any error related to it (even without the
scalac
global flag). Is this something you guys are aware or worth reporting it in Github?
c

curved-television-6568

12/28/2021, 1:19 PM
Hi Alonso, this is a good channel for general Pantsbuild questions. Expect a proper reply within a few hours, when they wake up over in the US.. 😉
w

witty-family-13337

12/28/2021, 1:52 PM
sure, no rush 😅
w

witty-crayon-22786

12/28/2021, 2:22 PM
hey @witty-family-13337: this is unexpected: sorry for the trouble. it may have to do with loading multiple plugins at once, since there is some slightly ambiguous wording in the CLI args for
-Xplugin
. would you mind filing an issue with the coordinates of the two plugins, and i can check it out?
thanks a lot for the help!
w

witty-family-13337

12/28/2021, 3:09 PM
yeah, no problem, dealing with experimental features has these quirks 😉 I created ticket: https://github.com/pantsbuild/pants/issues/14011
I’m looking at the feedback of the PR right now, should be able to address it quickly
w

witty-crayon-22786

12/28/2021, 3:39 PM
@witty-family-13337: a quick thing to confirm: after adding the second plugin, did you re-generate the
scalac-plugins
lockfile?
Copy code
./pants jvm-generate-lockfiles --resolve=scalac-plugins
(staleness checks on lockfiles won’t make it in until 2.10.x most likely)
w

witty-family-13337

12/28/2021, 3:45 PM
I did, it seems the only thing that affects the loading of
kind-projector
is adding the
-Xplugin-list
flag (which I added just to try to debug if the plugin was being passed to scalac)
removing the flag brings the error back
w

witty-crayon-22786

12/28/2021, 3:46 PM
ok, thanks. and thanks for the repro.
w

witty-family-13337

12/28/2021, 4:11 PM
not worries, had to verify it myself in a simpler setup than our codebase, already wasted some of your time with the coursier red herring 😉
w

witty-crayon-22786

12/28/2021, 5:21 PM
w

witty-family-13337

12/28/2021, 6:00 PM
great, thanks!
w

witty-crayon-22786

01/04/2022, 12:03 AM
@witty-family-13337: hey Alonso! thanks again for the help. all of the relevant fixes are in
2.9.0rc2
, which was just released: https://pantsbuild.slack.com/archives/C18RRR4JK/p1641253008048900
w

witty-family-13337

01/04/2022, 8:36 AM
hey, welcome, and thanks to you for being so welcoming, wish the coursier fix were ready too but it seems it’s going to take some time
I’ll give a go to the new Pants version anyway 🙂
w

witty-crayon-22786

01/04/2022, 4:47 PM
@witty-family-13337: what do you mean about “the coursier fix”? i think that all known issues with coursier were resolved in this release…
h

hundreds-father-404

01/04/2022, 4:50 PM
Iirc there was an upstream issue Alonso reported
w

witty-family-13337

01/04/2022, 4:54 PM
ah yeah, sorry I wasn’t too specific, as Eric says, an upstream one so not much that you can do for now
this is the link for reference: https://github.com/coursier/coursier/issues/2316