melodic-vase-77901
06/03/2023, 1:45 AMpants.toml
with scala backend to empty directory. When I run pants tailor ::
nothing happens. I use Macbook M1. Tell me what I'm missing here.
[GLOBAL]
pants_version = "2.15.1"
backend_packages = [
"pants.backend.experimental.scala",
"pants.backend.experimental.scala.lint.scalafmt",
]
[source]
# Pants supports many layouts of sources: from Maven/SBT style project-centric layouts, to
# monorepo layouts. In this case, we have a monorepo layout, with all sources under a `src`
# directory, organized by type.
#
# See <https://www.pantsbuild.org/docs/source-roots> for more information.
root_patterns = [
"/src/*",
"/tests/*",
]
# Configure the specific Scala version to use for a resolve. This version must match the version used for the
# `jvm_artifact` target providing the scala-library runtime jar.
[scala.version_for_resolve]
jvm-default = "2.13.8"
[scalac]
args = [
"-deprecation",
"-encoding UTF-8",
# An option for the compiler plugin enabled below.
"-P:acyclic:force",
]
[scalac.plugins_for_resolve]
# Resolve-global `scalac` plugins, which are defined as `scalac_plugin` targets.
jvm-default = "acyclic"
[scala-infer]
# Opt in to future change to Scala dependency inference which will become to the default in Pants v2.14+:
# We have made several improvements to Pants's Scala dependency inference, where we no longer think
# it's necessary to adding dependencies on sibling targets. If you have compilation failures after
# disabling this option, please consider opening an issue at
# <https://github.com/pantsbuild/pants/issues/new> so that we can continue to improve Pants's
# dependency inference.
force_add_siblings_as_dependencies = false
[jvm]
# Configure remote debugging options that will be used with `test --debug`.
debug_args = [
"-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005",
]
[anonymous-telemetry]
enabled=false
fast-nail-55400
06/03/2023, 6:55 AMfast-nail-55400
06/03/2023, 7:40 PMtailor
detects existing code and then writes BUILD files for that code. If there is no code, there is nothing for tailor
to do.melodic-vase-77901
06/03/2023, 11:12 PMfast-nail-55400
06/04/2023, 8:34 AMtailor
then to create the BUILD
file.fast-nail-55400
06/04/2023, 8:35 AMtailor
to update the BUILD
files)melodic-vase-77901
06/06/2023, 3:23 AMpants tailor ::
to get BUILD
file which is just one line scala_sources()
. It will be easier to just create BUILD
file in Intellij in the first place and refresh BSP and start adding scala files.fast-nail-55400
06/06/2023, 5:51 AMtailor
does not add much value in this case.fast-nail-55400
06/06/2023, 5:52 AMmelodic-vase-77901
06/07/2023, 4:49 AM