If I'm trying to write simple integer types like Long or Int I get the com.google.protobuf.InvalidProtocolBufferException error
import pbdirect._
1L.toPB
results to
com.google.protobuf.InvalidProtocolBufferException: While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length.
On the contrary "foobar".toPB or Array[Byte](1, 2, 3).toPB are working fine, it's quite confusing.
It should print something meaningful, or the implicit extension .toPb just shouldn't exists for these types.
If I'm trying to write simple integer types like
LongorIntI get thecom.google.protobuf.InvalidProtocolBufferExceptionerrorresults to
On the contrary
"foobar".toPBorArray[Byte](1, 2, 3).toPBare working fine, it's quite confusing.It should print something meaningful, or the implicit extension
.toPbjust shouldn't exists for these types.