Git Product home page Git Product logo

Comments (6)

csummers avatar csummers commented on July 17, 2024

2 is a valid arity for db-do-prepared-return-keys in clojure.java.jdbc version 0.6.1, which is the dependency in conman. It is also valid in clojure.java.jdbc version 0.5.8, which is what HugSQL 0.4.7 currently pulls in. So, this leads me to think that you must have an earlier version of clojure.java.jdbc sneaking in from somewhere.

Can you do a lein deps :tree to look at all of your dependencies?

from hugsql.

wnederhof avatar wnederhof commented on July 17, 2024

After removing most of the irrelevant dependencies, this is the result:

 [conman "0.5.8"]
   [com.carouselapps/to-jdbc-uri "0.5.0"]
   [com.layerware/hugsql "0.4.7"]
     [com.layerware/hugsql-adapter-clojure-java-jdbc "0.4.7"]
     [com.layerware/hugsql-core "0.4.7"]
       [com.layerware/hugsql-adapter "0.4.7"]
   [com.zaxxer/HikariCP "2.4.6"]
     [org.slf4j/slf4j-api "1.7.16"]
   [hikari-cp "1.7.0"]
     [org.tobereplaced/lettercase "1.0.0"]
     [prismatic/schema "1.0.4"]
 [environ "1.0.2"]
 [mount "0.1.10"]
 [mysql/mysql-connector-java "5.1.38"]
 [org.clojure/clojure "1.8.0"]
 [org.clojure/java.jdbc "0.6.2-alpha2"]
 [org.clojure/tools.nrepl "0.2.12" :scope "test"]

I tried using multiple different versions of jdbc myself, including 0.5.8 and 0.4.7, since I did not see it being referenced from elsewhere. However, that did not help.

from hugsql.

csummers avatar csummers commented on July 17, 2024

Please provide the entire stack trace.

Also, maybe try a lein clean if you haven't already.

from hugsql.

csummers avatar csummers commented on July 17, 2024

Hmm...I've been unable to recreate this issue creating a new luminus app with mysql and conman 0.5.8, hugsql 0.4.7, clojure.java.jdbc 0.6.1, so I'm not sure what's different about your environment that might be causing this.

from hugsql.

wnederhof avatar wnederhof commented on July 17, 2024

lein clean fixed the problem. I had used a very old version of the JDBC connector earlier, and forgot to run that command after changing the version number (I thought that restarting the repl would do that automatically as it also downloads missing dependencies, but apparently not). My apologies and thank you for your help!

from hugsql.

csummers avatar csummers commented on July 17, 2024

Glad you figured it out! I've been bit by similar old deps needing a lein clean before, so I feel your pain. :)

from hugsql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.