-
Notifications
You must be signed in to change notification settings - Fork 28
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
Conflicts with cljsbuild & advanced optimizations - NoSuchMethodError #22
Comments
Hi Adam! If I'm understanding correctly, you're trying to use $ lein --version
Leiningen 2.7.1 on Java 1.8.0_77 Java HotSpot(TM) 64-Bit Server VM
$ lein new figwheel repro
Generating fresh 'lein new' figwheel project.
Change into your 'repro' directory and run 'lein figwheel'
Wait for it to finish compiling
Then open 'http://localhost:3449/index.html' in your browser
$ cd repro
$ #(edit `project.clj` and add dependency `[google-apps-clj "0.5.2"]`)
$ lein cljsbuild once min
Compiling ClojureScript...
Compiling "resources/public/js/compiled/repro.js" from ["src"]...
Compiling "resources/public/js/compiled/repro.js" failed.
Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.io.ByteStreams.limit(Ljava/io/InputStream;J)Ljava/io/InputStream;, compiling:... Offhand, I don't know quite what is causing the error you see, but looking around I get the impression that it's a problem with either an older version of
If I modify the depency in lein cljsbuild once min
Compiling ClojureScript...
Compiling "resources/public/js/compiled/repro.js" from ["src"]...
Successfully compiled "resources/public/js/compiled/repro.js" in 7.384 seconds. Can you give that a try and see if it works? If so, then I'll double-check with my colleagues but I think we can add that exclusion into |
I'm using it in a project which has both server-side clojure and clojurescript. With some experimentation on my own, I came to a similar conclusion - including guava separately, along with excluding the old version of guava in the [com.google.guava/guava "19.0"]
[com.google.apis/google-api-services-sheets "v4-rev34-1.22.0"
:exclusions [com.google.guava/guava-jdk5]]
[com.google.oauth-client/google-oauth-client-jetty "1.22.0"]
[com.google.gdata/core "1.47.1" :exclusions [org.apache.httpcomponents/httpclient
org.mortbay.jetty/jetty
com.google.code.findbugs/jsr305]]
|
I tested: [google-apps-clj "0.5.2" :exclusions [com.google.guava/guava-jdk5]] as well, and it seems to work fine. |
Great, thanks for giving that a try. If we pull in Guava separately then we still might run into version conflicts in the future if we're not pulling in the same version as |
Steps to reproduce:
lein new figwheel <projectname>
Output of
lein deps :tree
:The text was updated successfully, but these errors were encountered: