thesamet / sbt-protoc

SBT plugin for generating code from Protocol Buffer using protoc
Apache License 2.0
168 stars 51 forks source link

Unicode arrow compilation warnings in Scala 2.13 #123

Closed steinybot closed 4 years ago

steinybot commented 4 years ago

In scala 2.13 with -Werror set then compilation of the generated protobuf sources with an error like:

sbt:console-api> compile
[info] Compiling 7 Scala sources to /Users/jason/source/console-api/target/scala-2.13/classes ...
[error] /Users/jason/source/console-api/target/scala-2.13/src_managed/main/example/myapp/helloworld/grpc/GreeterServiceHandler.scala:113:85: The unicode arrow `⇒` is deprecated, use `=>` instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.
[error]         case Path.Slash(Segment(`prefix`, Path.Slash(Segment(method, Path.Empty)))) ⇒
[error]                                                                                     ^
[error] No warnings can be incurred under -Werror.
[error] two errors found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 5 s, completed 29/11/2019 12:37:03 AM

The arrows were deprecated in https://github.com/scala/scala/pull/7540

thesamet commented 4 years ago

I think you have filed this issue in the wrong project. I am not familiar with the line of code shown in this exception. Can you add more info?

thesamet commented 4 years ago

It looks like this has been fixed here: https://github.com/akka/akka-grpc/pull/717 - akka-grpc is an independent project.