Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scala.js link fail on sbt-scalapb 0.5.23 #98

Closed
ngbinh opened this issue Mar 31, 2016 · 0 comments · Fixed by scalapb/protobuf-scala-runtime#5
Closed

scala.js link fail on sbt-scalapb 0.5.23 #98

ngbinh opened this issue Mar 31, 2016 · 0 comments · Fixed by scalapb/protobuf-scala-runtime#5

Comments

@ngbinh
Copy link
Contributor

ngbinh commented Mar 31, 2016

It works if I try runtime dependency on 0.5.23 and plugin 0.5.18 though

[info] Fast optimizing /Users/---/.js/target/scala-2.11/stargazercore-test-fastopt.js
[error] Referring to non-existent method com.google.protobuf.Descriptors$FileDescriptor$.buildFrom(com.google.protobuf.DescriptorProtos$FileDescriptorProto,[com.google.protobuf.Descriptors$FileDescriptor)com.google.protobuf.Descriptors$FileDescriptor
[error]   called from anduin.model.protobuf.models.ModelsProto$.descriptor$lzycompute()com.google.protobuf.Descriptors$FileDescriptor
[error]   called from anduin.model.protobuf.models.ModelsProto$.descriptor()com.google.protobuf.Descriptors$FileDescriptor
[error]   called from anduin.model.protobuf.models.AnduinProtobufMapsTest$.descriptor()com.google.protobuf.Descriptors$Descriptor
[error]   called from anduin.model.protobuf.models.AnduinProtobufMapsTest$BoolToColorEntry$.descriptor()com.google.protobuf.Descriptors$Descriptor
[error]   called from com.trueaccord.scalapb.GeneratedMessage$class.getAllFields(com.trueaccord.scalapb.GeneratedMessage)scala.collection.immutable.Map
[error]   called from anduin.model.protobuf.models.AnduinProtobufMapsTest$BoolToColorEntry.getAllFields()scala.collection.immutable.Map
[error]   called from com.trueaccord.scalapb.textformat.Printer$.print(com.trueaccord.scalapb.GeneratedMessage,com.trueaccord.scalapb.textformat.TextGenerator)scala.Unit
[error]   called from com.trueaccord.scalapb.textformat.Printer$.printFieldValue(com.google.protobuf.Descriptors$FieldDescriptor,java.lang.Object,com.trueaccord.scalapb.textformat.TextGenerator)scala.Unit
[error]   called from com.trueaccord.scalapb.textformat.Printer$.printSingleField(com.google.protobuf.Descriptors$FieldDescriptor,java.lang.Object,com.trueaccord.scalapb.textformat.TextGenerator)com.trueaccord.scalapb.textformat.TextGenerator
[error]   called from com.trueaccord.scalapb.textformat.Printer$.printField(com.google.protobuf.Descriptors$FieldDescriptor,java.lang.Object,com.trueaccord.scalapb.textformat.TextGenerator)java.lang.Object
[error]   called from com.trueaccord.scalapb.textformat.Printer$.print(com.trueaccord.scalapb.GeneratedMessage,com.trueaccord.scalapb.textformat.TextGenerator)scala.Unit
[error]     (already seen, not repeating call stack)
[error] involving instantiated classes:
[error]   anduin.model.protobuf.models.ModelsProto$
[error]   anduin.model.protobuf.models.AnduinProtobufMapsTest$
[error]   anduin.model.protobuf.models.AnduinProtobufMapsTest$BoolToColorEntry$
[error]   anduin.model.protobuf.models.AnduinProtobufMapsTest$BoolToColorEntry
[error]   com.trueaccord.scalapb.textformat.Printer$
java.lang.RuntimeException: There were linking errors
        at scala.sys.package$.error(package.scala:27)
        at org.scalajs.core.tools.linker.frontend.BaseLinker.linkInternal(BaseLinker.scala:121)
        at org.scalajs.core.tools.linker.frontend.BaseLinker.linkInternal(BaseLinker.scala:85)
        at org.scalajs.core.tools.linker.frontend.LinkerFrontend$$anonfun$4.apply(LinkerFrontend.scala:54)
        at org.scalajs.core.tools.linker.frontend.LinkerFrontend$$anonfun$4.apply(LinkerFrontend.scala:54)
        at org.scalajs.core.tools.logging.Logger$class.time(Logger.scala:28)
        at org.scalajs.sbtplugin.Implicits$SbtLoggerWrapper.time(Implicits.scala:9)
        at org.scalajs.core.tools.linker.frontend.LinkerFrontend.link(LinkerFrontend.scala:53)
        at org.scalajs.core.tools.linker.Linker$$anonfun$link$1.apply$mcV$sp(Linker.scala:48)
        at org.scalajs.core.tools.linker.Linker$$anonfun$link$1.apply(Linker.scala:47)
        at org.scalajs.core.tools.linker.Linker$$anonfun$link$1.apply(Linker.scala:47)
        at org.scalajs.core.tools.linker.Linker.guard(Linker.scala:65)
        at org.scalajs.core.tools.linker.Linker.link(Linker.scala:47)
        at org.scalajs.core.tools.linker.ClearableLinker$$anonfun$link$1.apply(ClearableLinker.scala:51)
        at org.scalajs.core.tools.linker.ClearableLinker$$anonfun$link$1.apply(ClearableLinker.scala:51)
        at org.scalajs.core.tools.linker.ClearableLinker.linkerOp(ClearableLinker.scala:62)
        at org.scalajs.core.tools.linker.ClearableLinker.link(ClearableLinker.scala:51)
        at org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$org$scalajs$sbtplugin$ScalaJSPluginInternal$$scalaJSStageSettings$4$$anonfun$apply$6$$anonfun$apply$7.apply(ScalaJSPluginInternal.scala:241)
        at org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$org$scalajs$sbtplugin$ScalaJSPluginInternal$$scalaJSStageSettings$4$$anonfun$apply$6$$anonfun$apply$7.apply(ScalaJSPluginInternal.scala:229)
        at sbt.FileFunction$$anonfun$cached$1.apply(Tracked.scala:235)
        at sbt.FileFunction$$anonfun$cached$1.apply(Tracked.scala:235)
        at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3$$anonfun$apply$4.apply(Tracked.scala:249)
        at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3$$anonfun$apply$4.apply(Tracked.scala:245)
        at sbt.Difference.apply(Tracked.scala:224)
        at sbt.Difference.apply(Tracked.scala:206)
        at sbt.FileFunction$$anonfun$cached$2$$anonfun$apply$3.apply(Tracked.scala:245)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant