protojure / lib

A collection of libraries to support Protojure applications at runtime
https://protojure.readthedocs.io
Apache License 2.0
64 stars 14 forks source link

No matching method getTagWireType found taking 1 args for class com.google.protobuf.WireFormat #148

Open jerielverissimo opened 1 year ago

jerielverissimo commented 1 year ago

Hi, when I try to use this lib I get the following error, this happens when I use the lein template too.

Reflection warning, protojure/protobuf.clj:24:19 - call to static method newInstance on com.google.protobuf.CodedOutputStream can't be resolved (argument types: java.nio.ByteBuffer).
Reflection warning, protojure/protobuf.clj:27:19 - call to static method newInstance on com.google.protobuf.CodedOutputStream can't be resolved (argument types: java.nio.ByteBuffer).
Syntax error (IllegalArgumentException) compiling . at (protojure/protobuf/serdes/core.clj:80:14).
No matching method getTagWireType found taking 1 args for class com.google.protobuf.WireFormat

My project.clj:

(defproject book "0.1.0-SNAPSHOT"
  :description  "FIXME: write description"
  :url          "http://example.com/FIXME"
  :license      {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
                 :url  "https://www.eclipse.org/legal/epl-2.0/"}
  :plugins      [[lein-ancient "0.7.0"]]
  :dependencies [[org.clojure/clojure "1.10.3"]

                 ;; -- PROTOC-GEN-CLOJURE --
                 [io.github.protojure/core "2.0.1"]
                 [io.github.protojure/google.protobuf "2.0.0"]]
  :repl-options {:init-ns book.core})