fast-nail-55400
03/21/2022, 9:45 PMClasspathSourceMissing: No JVM classpath providers (from: CompileScalaSourceRequest, CoursierFetchRequest, DeployJarClasspathEntryRequest, JvmResourcesRequest) were compatible with the combination of inputs:
* src/protobuf/simple_example:simple_example (protobuf_sources)
ancient-vegetable-10556
03/21/2022, 9:50 PMfast-nail-55400
03/21/2022, 9:54 PMancient-vegetable-10556
03/21/2022, 9:54 PMfast-nail-55400
03/21/2022, 9:54 PM./pants_from_sources check src/jvm/org/pantsbuild/example/codegen/scala::
ancient-vegetable-10556
03/21/2022, 9:55 PMprotobuf_sources
, so it must befast-nail-55400
03/21/2022, 9:56 PMancient-vegetable-10556
03/21/2022, 9:57 PMfast-nail-55400
03/21/2022, 9:58 PMexport-codegen
but I don’t think that has much bearing on the compilation rules working, right?ClasspathSourceMissing: No JVM classpath providers (from: CompileJavaSourceRequest, CompileScalaSourceRequest, CoursierFetchRequest, DeployJarClasspathEntryRequest, JvmResourcesRequest) were compatible with the combination of inputs:
* src/protobuf/simple_example:simple_example (protobuf_sources)
java_sources(dependencies=["src/protobuf/simple_example/person.proto"])
ClasspathSourceAmbiguity: More than one JVM classpath provider (CompileJavaSourceRequest, CompileScalaSourceRequest, CoursierFetchRequest, DeployJarClasspathEntryRequest, JvmResourcesRequest) was compatible with the inputs:
* src/protobuf/simple_example/person.proto (protobuf_source)
ancient-vegetable-10556
03/21/2022, 10:14 PMfast-nail-55400
03/21/2022, 10:18 PMClasspathSourceMissing: No JVM classpath providers (from: CompileJavaSourceRequest, CompileScalaSourceRequest, CoursierFetchRequest, DeployJarClasspathEntryRequest, JvmResourcesRequest) were compatible with the combination of inputs:
* 3rdparty/python#protobuf (python_requirement)
ancient-vegetable-10556
03/21/2022, 10:19 PMfast-nail-55400
03/21/2022, 10:20 PMancient-vegetable-10556
03/21/2022, 10:21 PMfast-nail-55400
03/21/2022, 10:21 PM$ ./pants_from_sources check src/jvm/org/pantsbuild/example/codegen/java::
DEPRECATED: option 'use_deprecated_python_macros' in global scope will be removed in version 2.12.0.dev0.
In Pants 2.12, the deprecated Python macros like `python_requirements` will be replaced with improved target generators, which are now enabled by default.
If you already migrated by setting `use_deprecated_python_macros = false`, simply delete the option.
Otherwise, when you are ready to upgrade, follow these steps:
1. Run `./pants update-build-files --fix-python-macros`
2. Check the logs for an ERROR log to see if you have to manually add `name=` anywhere.
3. Remove `use_deprecated_python_macros = true` from `[GLOBAL]` in pants.toml.
(Why upgrade from the old macro mechanism to target generation? Among other benefits, it makes sure that the Pants daemon is properly invalidated when you change `requirements.txt` and `pyproject.toml`.)
18:20:42.77 [INFO] Starting new nailgun server with cmd: "/bin/bash", args ["__jdk/jdk.sh", "__java_home/bin/java", "-cp", "__jdk/com.martiansoftware_nailgun-server_0.9.1.jar:__java_home/lib/tools.jar", "com.martiansoftware.nailgun.NGServer", ":0"], in cwd /private/var/folders/md/0q71p41n0rbgwhnc8npjjzg00000gn/T/process-executionzT7L2w
18:20:43.95 [ERROR] Completed: Check javac compilation - javac failed (exit code 1).
✕ javac failed.
ancient-vegetable-10556
03/21/2022, 10:21 PMfast-nail-55400
03/21/2022, 10:22 PMancient-vegetable-10556
03/21/2022, 10:22 PMjavac
errors need to be logged to console
2. Scala protobuf targets aren’t presently getting treated as compilablefast-nail-55400
03/21/2022, 10:23 PMancient-vegetable-10556
03/21/2022, 10:23 PMfast-nail-55400
03/21/2022, 11:03 PMexperiemental
packageancient-vegetable-10556
03/23/2022, 6:56 PM