Skip to content

Instantly share code, notes, and snippets.

@abeln
Last active October 21, 2019 19:30
Show Gist options
  • Save abeln/fd3052ccc26901242d06f39b055156b2 to your computer and use it in GitHub Desktop.
Save abeln/fd3052ccc26901242d06f39b055156b2 to your computer and use it in GitHub Desktop.
PB library errors after latest flag turned on
[warn] -- Deprecation Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/lenses/shared/src/main/scala/scalapb/lenses/Lenses.scala:108:12
[warn] 108 | s.mapValues { (m: B) =>
[warn] | ^^^^^^^^^^^
[warn] |method mapValues in trait MapOps is deprecated: Use .view.mapValues(f). A future version will include a strict version of this method (for now, .view.mapValues(f).toMap).
[error] -- [E008] Member Not Found Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/compiler-plugin/src/main/scala/scalapb/compiler/DescriptorImplicits.scala:943:29
[error] 943 | fileName.split("/").last.replaceAll(raw"[.]proto$$|[.]protodevel", "")
[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] | value replaceAll is not a member of String | Null
[warn] one warning found
[info] Done compiling.
[info] Compiling 97 Scala sources and 1 Java source to /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/target/scala-0.20/classes ...
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/compiler-plugin/src/main/scala/scalapb/compiler/FunctionalPrinter.scala:44:8
[error] 44 | add(s.stripMargin.split("\n", -1).toSeq: _*)
[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] | Found: (String | Null)*
[error] | Required: String*
[warn] -- Migration Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/struct/Value.scala:236:22
[warn] 236 | object Kind extends {
[warn] | ^
[warn] | `extends' must be followed by at least one parent
[warn] -- Migration Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/AstUtils.scala:249:25
[warn] 249 | values.right.map { t: Seq[PValue] =>
[warn] | ^^^^^^^^^^^^^^
[warn] |parentheses are required around the parameter of a lambda
[warn] |This construct can be rewritten automatically under -language:Scala2 -rewrite.
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/api/Api.scala:305:61
[error] 305 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E008] Member Not Found Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/compiler-plugin/src/main/scala/scalapb/compiler/ProtobufGenerator.scala:1854:13
[error] 1854 | .map(_.trim)
[error] | ^^^^^^
[error] | value trim is not a member of String | Null
[error] -- Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/compiler-plugin/src/main/scala/scalapb/compiler/ProtobufGenerator.scala:1854:18
[error] 1854 | .map(_.trim)
[error] | ^
[error] | No ClassTag available for Nothing
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/compiler-plugin/src/main/scala/scalapb/compiler/ProtobufGenerator.scala:1877:58
[error] 1877 | acc + (fp.getName -> FileDescriptor.buildFrom(fp, deps.toArray))
[error] | ^^^^^^^^^^^^
[error] |Found: Array[com.google.protobuf.Descriptors.FileDescriptor]
[error] |Required: Array[com.google.protobuf.Descriptors.FileDescriptor | JavaNull] | JavaNull
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/compiler-plugin/src/main/scala/scalapb/compiler/ProtobufGenerator.scala:1889:66
[error] 1889 | acc + (fp.getName -> FileDescriptor.buildFrom(fp, deps.toArray))
[error] | ^^^^^^^^^^^^
[error] |Found: Array[com.google.protobuf.Descriptors.FileDescriptor]
[error] |Required: Array[com.google.protobuf.Descriptors.FileDescriptor | JavaNull] | JavaNull
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/api/Method.scala:287:61
[error] 287 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] 6 errors found
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/compiler/plugin/CodeGeneratorRequest.scala:197:61
[error] 197 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/compiler/plugin/CodeGeneratorResponse.scala:136:61
[error] 136 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/DescriptorProto.scala:327:61
[error] 327 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/DescriptorProto.scala:484:63
[error] 484 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/EnumDescriptorProto.scala:206:61
[error] 206 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/EnumOptions.scala:164:61
[error] 164 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/EnumValueDescriptorProto.scala:146:61
[error] 146 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/EnumValueOptions.scala:139:61
[error] 139 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/ExtensionRangeOptions.scala:112:61
[error] 112 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/FieldDescriptorProto.scala:327:61
[error] 327 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/FieldOptions.scala:303:61
[error] 303 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/FileDescriptorProto.scala:400:61
[error] 400 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/FileDescriptorSet.scala:105:61
[error] 105 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/FileOptions.scala:630:61
[error] 630 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/GeneratedCodeInfo.scala:110:61
[error] 110 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/MessageOptions.scala:250:61
[error] 250 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/MethodDescriptorProto.scala:220:61
[error] 220 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/MethodOptions.scala:161:61
[error] 161 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/OneofDescriptorProto.scala:124:61
[error] 124 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/OneofOptions.scala:112:61
[error] 112 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/ServiceDescriptorProto.scala:150:61
[error] 150 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/ServiceOptions.scala:139:61
[error] 139 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/SourceCodeInfo.scala:150:61
[error] 150 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/descriptor/UninterpretedOption.scala:245:61
[error] 245 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/struct/ListValue.scala:109:61
[error] 109 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/struct/Struct.scala:120:61
[error] 120 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/struct/Struct.scala:243:63
[error] 243 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/struct/Value.scala:205:61
[error] 205 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/type/Enum.scala:220:61
[error] 220 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/type/EnumValue.scala:167:61
[error] 167 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/type/Field.scala:379:61
[error] 379 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/type/OptionProto.scala:142:61
[error] 142 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/jvm/src/main/scala/com/google/protobuf/type/Type.scala:245:61
[error] 245 | var __out: _root_.scalapb.GeneratedMessageCompanion[_] = null
[error] | ^^^^
[error] | Found: Null
[error] | Required: scalapb.GeneratedMessageCompanion[?]
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/AnyMethods.scala:21:43
[error] 21 | typeUrl.split("/").lastOption.getOrElse(typeUrl)
[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] | Found: String | Null
[error] | Required: String
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/FieldMaskUtil.scala:57:21
[error] 57 | toLowerCase(array(0), buf)
[error] | ^^^^^^^^
[error] | Found: String | JavaNull
[error] | Required: String
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/FieldMaskUtil.scala:62:26
[error] 62 | toProperCase(array(i))
[error] | ^^^^^^^^
[error] | Found: String | JavaNull
[error] | Required: String
[error] -- [E008] Member Not Found Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/FieldMaskUtil.scala:117:20
[error] 117 | .withFilter(_.nonEmpty)
[error] | ^^^^^^^^^^
[error] | value nonEmpty is not a member of String | Null
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/FieldMaskUtil.scala:119:29
[error] 119 | camelCaseToSnakeCase(path)
[error] | ^^^^
[error] | Found: (String | Null)(path)
[error] | Required: String
[error] -- [E007] Type Mismatch Error: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/options/ScalapbProto.scala:66:72
[error] 66 | com.google.protobuf.Descriptors.FileDescriptor.buildFrom(javaProto, Array(
[error] | ^
[error] |Found: Array[com.google.protobuf.Descriptors.FileDescriptor]
[error] |Required: Array[com.google.protobuf.Descriptors.FileDescriptor | JavaNull] | JavaNull
[error] 67 | com.google.protobuf.descriptor.DescriptorProtoCompanion.javaDescriptor
[error] 68 | ))
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:11:47
[warn] 11 | def Newline[$: P] = P(StringIn("\r\n", "\n"))
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:27:80
[warn] 27 | def sameLineCharChunks[$: P] = P(CharsWhile(CharChunk) | (!Newline) ~ AnyChar)
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:29:76
[warn] 29 | def lineComment[$: P] = P("#" ~ sameLineCharChunks.rep ~ &(Newline | End))
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:33:69
[warn] 33 | def identifier[$: P] = P(CharIn("a-z", "A-Z", "0-9", "_").rep(1).!).`opaque`("identifier")
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:35:70
[warn] 35 | def literal[$: P] = P(CharIn("a-z", "A-Z", "0-9", "_\\-.").rep(1).!).`opaque`("literal")
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:37:45
[warn] 37 | def digits[$: P] = P(CharsWhile(Digits))
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:38:48
[warn] 38 | def hexDigits[$: P] = P(CharsWhile(HexDigits))
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:39:48
[warn] 39 | def octDigits[$: P] = P(CharsWhile(OctDigits))
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:41:66
[warn] 41 | def exponent[$: P] = P(CharIn("eE") ~ CharIn("+\\-").? ~ digits)
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:45:59
[warn] 45 | def decIntegral[$: P] = P("0" | CharIn("1-9") ~ digits.?).!.map(p => BigInt(p))
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:46:48
[warn] 46 | def hexIntegral[$: P] = P("0x" ~/ hexDigits.!).map(p => BigInt(p, 16))
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:47:46
[warn] 47 | def octIntegral[$: P] = P("0" ~ octDigits.!).map(p => BigInt(p, 8))
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:49:76
[warn] 49 | def integral[$: P]: P[BigInt] = P(hexIntegral | octIntegral | decIntegral)
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:52:36
[warn] 52 | P(CharIn("+\\-").!.? ~ integral).map({
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:57:69
[warn] 57 | def strNoDQChars[$: P] = P(CharsWhile(!"\"\n\\".contains(_: Char)))
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:58:68
[warn] 58 | def strNoQChars[$: P] = P(CharsWhile(!"'\n\\".contains(_: Char)))
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:59:44
[warn] 59 | def escape[$: P] = P("\\" ~ AnyChar)
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:64:5
[warn] 64 | ).`opaque`("string")
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:66:67
[warn] 66 | def bytesLiteral[$: P] = P(singleBytesLiteral.rep(1, whiteSpace)).map(_.mkString)
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:72:5
[warn] 72 | ).`opaque`("'true' or 'false'")
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/Basics.scala:74:57
[warn] 74 | def ws[$: P](s: String): P[Unit] = P(s ~ &(whiteSpace))
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/ProtoAsciiParser.scala:14:3
[warn] 14 | )
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/ProtoAsciiParser.scala:20:5
[warn] 20 | ).map(TMessage.tupled)
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/ProtoAsciiParser.scala:23:74
[warn] 23 | P((Index ~ "[" ~/ (PrimitiveValue | MessageValue).rep(0, ",") ~/ "]")).map(TArray.tupled)
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/ProtoAsciiParser.scala:26:55
[warn] 26 | P((Index ~ "[" ~/ MessageValue.rep(0, ",") ~/ "]")).map(TArray.tupled)
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/ProtoAsciiParser.scala:32:5
[warn] 32 | ).opaque("':', '{', '<', or '['")
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/ProtoAsciiParser.scala:37:5
[warn] 37 | ).map(TField.tupled)
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] -- Warning: /home/anietoro/src/dotty2/community-build/community-projects/ScalaPB/scalapb-runtime/shared/src/main/scala/scalapb/textformat/ProtoAsciiParser.scala:39:64
[warn] 39 | def Message[$: P]: P[TMessage] = P(Index ~ KeyValue.rep ~ End).map(TMessage.tupled)
[warn] | ^
[warn] |Scala 2 macro cannot be used in Dotty, this call will crash at runtime. See https://dotty.epfl.ch/docs/reference/dropped-features/macros.html
[warn] 30 warnings found
[error] 41 errors found
[error] (runtimeJVM / Compile / compileIncremental) Compilation failed
[error] (compilerPlugin / Compile / compileIncremental) Compilation failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment