Hello there :lightsaber: I am trying to run the g...
# protobufs
j
Hello there lightsaber I am trying to run the grpc example and my code fails here
Copy code
return builder
      .usingPlugin("protobuf", "0.1.10")
with
Copy code
java.lang.NoSuchMethodError: 'java.lang.String au.com.dius.pact.core.support.Utils.lookupEnvironmentValue$default(au.com.dius.pact.core.support.Utils, java.lang.String, kotlin.jvm.functions.Function1, kotlin.jvm.functions.Function1, int, java.lang.Object)'
at io.pact.plugins.jvm.core.DefaultPluginManager.pluginInstallDirectory(PluginManager.kt:854)
	at io.pact.plugins.jvm.core.DefaultPluginManager.loadPluginManifest(PluginManager.kt:812)
	at io.pact.plugins.jvm.core.DefaultPluginManager.loadPlugin(PluginManager.kt:341)
	at au.com.dius.pact.consumer.dsl.PactBuilder.usingPlugin(PactBuilder.kt:96)
	at io.pact.example.grpc.consumer.PactConsumerTest.calculateRectangleArea(PactConsumerTest.java:45)
I have the plugin binary and in
/.pact/plugins/protobuf-0.1.10
with both pact-plugin.json and pact-protobuf-plugin I am not very good with java - its complaining it doesn't have the
default
method for some reason?
Copy code
cat pact-plugin.json
{
  "manifestVersion": 1,
  "pluginInterfaceVersion": 1,
  "name": "protobuf",
  "version": "0.1.10",
  "executableType": "exec",
  "entryPoint": "pact-protobuf-plugin",
  "pluginConfig": {
    "protocVersion": "3.19.1",
    "downloadUrl": "<https://github.com/protocolbuffers/protobuf/releases/download>",
    "hostToBindTo": "127.0.0.1"
  }
}
u
Can you check you are using the same version of all the Pact-JVM libraries