matthewdowney / excel-clj

Write Excel docs & PDFs with Clojure data, from higher level abstractions (tree, table) or via a manual grid specification.
Eclipse Public License 1.0
149 stars 9 forks source link

Caused by: java.lang.RuntimeException: No such var: enc/nested-merge, compiling:(excel_clj/cell.clj:26:20) #11

Closed whamtet closed 3 years ago

whamtet commented 3 years ago

Triggered when I require excel-clj.core

matthewdowney commented 3 years ago

Interesting, looks like a dependency version conflict.

I'm pretty sure the bug is that I'm not requiring com.taoensso/encore explicitly (which I just realized), rather it's present as a transitive dependency of com.taoensso/tufte, so this error has never occurred for me.

To reproduce & verify that this is the case, would you mind sharing the other dependencies that you're including? I think one of them must be an older version of encore or (more likely) have a transitive dependency on an older version of encore (maybe via timbre, the popular logging library)?

whamtet commented 3 years ago

Thanks Matt,

I didn't think of that. My deps are

                 [compojure "1.6.0"]
                 [cprop "0.1.11"]
                 [funcool/struct "1.2.0"]
                 [luminus-immutant "0.2.5"]
                 [luminus/ring-ttl-session "0.3.2"]
                 [luminus-nrepl "0.1.6"
                  :exclusions [org.clojure/clojure
                               org.clojure/tools.logging
                               org.clojure/spec.alpha
                               org.clojure/core.specs.alpha]]
                 [markdown-clj "1.0.2"]
                 [metosin/ring-http-response "0.9.0"]
                 [mount "0.1.12"]
                 [org.clojure/clojure "1.9.0"]
                 [org.clojure/tools.cli "0.3.5"]
                 [org.clojure/tools.logging "0.4.0"]
                 [org.webjars.bower/tether "1.4.3"]
                 [org.webjars/bootstrap "4.0.0"]
                 [org.webjars/font-awesome "5.0.6"]
                 [org.webjars/jquery "3.2.1"]
                 [ring-webjars "0.2.0" :exclusions
[org.apache.commons/commons-lang3]]
                 [ring/ring-core "1.6.3"]
                 [ring-cors "0.1.11"]
                 [ring/ring-defaults "0.3.1"]
                 [hiccup "1.0.5"]
                 [selmer "1.11.7"]
                 [camel-snake-kebab "0.4.0"]
                 [clojurewerkz/quartzite "2.1.0"]
                 [prxml "1.3.0"]

                 [whamtet/postal "2.0.6"] ;until drewr can merge binary
attachment PR.
                 [org.clojure/java.jdbc "0.7.3"]
                 ;db
                 [com.novemberain/monger "3.5.0"]
                 [crypto-password "0.2.0" :exclusions [commons-codec]]
                                  ;aws - s3 only
                 [amazonica "0.3.48" :exclusions
[org.apache.commons/commons-lang3
                                                  com.amazonaws/aws-java-sdk

com.amazonaws/amazon-kinesis-client]]
                 [com.amazonaws/aws-java-sdk-core "1.11.851"]
                 [com.amazonaws/aws-java-sdk-s3 "1.11.851"]
                 [clj-http-lite "0.3.0"]
                 ;; helper classes for that one
                 [javax.xml.bind/jaxb-api "2.2.11"]
                 [com.sun.xml.bind/jaxb-core "2.2.11"]
                 [com.sun.xml.bind/jaxb-impl "2.2.11"]
                 [javax.activation/activation "1.1.1"]
                 ;[org.mnode.ical4j/ical4j "2.0.0"]
                 ;;migrations
                 [dk.ative/docjure "1.13.0"]
                 ;; https://mvnrepository.com/artifact/com.itextpdf/itextpdf
                 [com.itextpdf/itextpdf "5.5.13.1"]]

On Mon, 22 Feb 2021 at 00:55, Matthew Downey notifications@github.com wrote:

Interesting, looks like a dependency version conflict.

I'm pretty sure the bug is that I'm not requiring com.taoensso/encore explicitly (which I just realized), rather it's present as a transitive dependency of com.taoensso/tufte, so this error has never occurred for me.

To reproduce & verify that this is the case, would you mind sharing the other dependencies that you're including? I think one of them must be an older version of encore or (more likely) have a transitive dependency on an older version of encore (maybe via timbre, the popular logging library)?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/matthewdowney/excel-clj/issues/11#issuecomment-782897347, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOSIP4SEI4VPTJZETIBBSDTAFCJ5ANCNFSM4X7F7RUQ .

matthewdowney commented 3 years ago

Alright, would you give it another shot with the new version (2.0.1)? If it still fails, would you mind checking if you can import it to a fresh project as the only dependency?

whamtet commented 3 years ago

It works now on the blank project. Thanks for your help Matt

On Tue, 23 Feb 2021 at 07:57, Matthew Downey notifications@github.com wrote:

Alright, would you give it another shot with the new version (2.0.1)? If it still fails, would you mind checking if you can import it to a fresh project as the only dependency?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/matthewdowney/excel-clj/issues/11#issuecomment-783789123, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOSIP2IRSTP3I43ZEGUQVTTAL4RFANCNFSM4X7F7RUQ .