https://pantsbuild.org/ logo
f

fast-nail-55400

12/08/2021, 3:19 AM
I’m seeing the following failure on
main
:
Copy code
pants.engine.target.InvalidFieldException: Unrecognized field `skip_scalafmt=True` in target src/python/pants/backend/scala/dependency_inference:scala_parser. Valid fields for the target type `scala_sources`: ['compatible_resolves', 'dependencies', 'description', 'experimental_provides_types', 'sources', 'tags'].
scalafmt is an enabled backend. do I need to add it anywhere else? https://github.com/pantsbuild/pants/runs/4451392995?check_suite_focus=true#step:9:1249
w

witty-crayon-22786

12/08/2021, 5:11 PM
in
init
src/python/pants/init/BUILD
… but it is?
where are you seeing the failure? that bit is relevant, because various release scripts enable/disable certain backends
1
h

hundreds-father-404

12/08/2021, 5:15 PM
f

fast-nail-55400

12/08/2021, 5:20 PM
see the link in my original post which has the line number on the CI job’s log linked
w

witty-crayon-22786

12/08/2021, 5:27 PM
mm, sorry. assumed that because you were asking, that you didn’t already know where to look
f

fast-nail-55400

12/08/2021, 5:37 PM
my confusion is that the
skip_scalafmt
field is enabled since the scalafmt backend is enabled in
pants.toml
and why that wouldn’t take effect
there is no stack trace, but it’s probably the validation portion
but actually… @hundreds-father-404: this bit could probably be doing subtraction for the internal backend packages, right?
…but it also actually includes
--python-path=pants-plugins
. so i think that the whole comment is maybe stale
@fast-nail-55400: i’ll get a change out. sorry for the trouble.
f

fast-nail-55400

12/08/2021, 5:54 PM
no worries. just a part of the code base that I’m not that familiar with, and didn’t cause a failure in CI.
w

witty-crayon-22786

12/08/2021, 6:07 PM