Protocol buffer compiler for Scala. Consider sponsoring ScalaPB: https://github.com/sponsors/thesamet
mergify[bot] on master
Update sbt-sonatype to 3.9.17 (… (compare)
mergify[bot] on master
Update sbt-scalajs, scalajs-com… (compare)
mergify[bot] on master
Update sbt-scalajs, scalajs-com… (compare)
java_conversions: true
sparksql-scalapb-test
project to reproduce the issue. Here's the draft PR: thesamet/sparksql-scalapb-test#5
def fromRawEventDS[A <: GeneratedMessage : GeneratedMessageCompanion : Encoder](
ds: Dataset[RawEvent]
) = ...
Hi everyone,
I am new to ScalaPB and started by using the tutorial by downloading the project from github: https://scalapb.github.io/docs/getting-started.
I managed to generate the codes after sbt compile in:
target/scala-2.13/src_managed/main/scalapb/com/example/tutorial/addressbook
My main question is how to use the generated codes (case classes for each message) obtained after compiling since they are in ..\target\scala-2.13\src_managed\main\scalapb\tutorial\addressbook\
Also, in the codes from github, there is no tutorial package in /scr/main/scala/: I tried to refactor and create a tutorial package as
\basic\src\main\scala\tutorial\AddressBookMain.scala but I got the same errors: Person and AddressBook are not found (cannot resolve symbol AddressBook and Person).
Coud someone help me with those please, I am really stuck with this (I use IntelliJ IDEA)
Thank you very much,
Best regards.
Maia
target/.../src_managed
is one of them. If you type in sbt sourceDirectories
it will print out this list.
Hi commnunity, I try to implement a server with ScalaPB by following this: https://medium.com/rahasak/reactive-microservices-with-grpc-and-scala-e4767ca2d34a. I got a red highligted error on build() , on server != null, and awaitTermination() is not recognized :val server = ServerBuilder
.forPort(9000)
.addService(ProtoReflectionService.newInstance())
.addService(DocumentServiceGrpc.bindService(new DocumentServiceImpl, ExecutionContext.global))
.build()
.start()
// block until shutdown
if (server != null) {
server.awaitTermination()
}
val server: Server = ...