You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There were API changes from scalapb-runtime 0.9.7 causing the following
errors:
```txt
ERROR: .../test/src/main/scala/scalarules/test/extra_protobuf_generator/BUILD:3:14:
scala @//test/src/main/scala/scalarules/test/extra_protobuf_generator:extra_protobuf_generator
failed: (Exit 1): scalac failed: error executing Scalac command
(from target //test/src/main/scala/scalarules/test/extra_protobuf_generator:extra_protobuf_generator)
bazel-out/darwin_arm64-opt-exec-ST-a828a81199fe/bin/src/java/io/bazel/rulesscala/scalac/scalac
... (remaining 1 argument skipped)
test/src/main/scala/scalarules/test/extra_protobuf_generator/ExtraProtobufGenerator.scala:20:
error: value nameSymbol is not a member of com.google.protobuf.Descriptors.Descriptor
.add(s"final case object Custom${message.nameSymbol}{}")
^
test/src/main/scala/scalarules/test/extra_protobuf_generator/ExtraProtobufGenerator.scala:34:
error: value fileDescriptorObjectName is not a member of com.google.protobuf.Descriptors.FileDescriptor
b.setName(file.scalaDirectory + "/Custom" + file.fileDescriptorObjectName + ".scala")
^
test/src/main/scala/scalarules/test/extra_protobuf_generator/ExtraProtobufGenerator.scala:66:
error: value FileDescriptorPimp is not a member of scalapb.compiler.DescriptorImplicits
import implicits.FileDescriptorPimp
^
```
Since Scala 2.11 can't advance past scalapb-runtime 0.9.8, we use
`select_for_scala_version` to select the appropriate `ProtobufAdapter`
to maintain API compatibility.
Also, `import implicits.FileDescriptorPimp` turned out to be unnecessary
after all, even under Scala 2.11.
0 commit comments