zmedelis / bosquet

Tooling to build LLM applications: prompt templating and composition, agents, LLM memory, and other instruments for builders of AI applications.
https://zmedelis.github.io/bosquet/
Eclipse Public License 1.0
277 stars 18 forks source link

ClassDefNot found exception requiring bosquet #29

Closed behrica closed 1 year ago

behrica commented 1 year ago

using 0.3.6 I get a exception requiring the 'bosquet.generator" namespace:

(require '[bosquet.generator :as bg])
Execution error (FileNotFoundException) at selmer.tags/loading (tags.clj:1).
Could not locate selmer/node__init.class, selmer/node.clj or selmer/node.cljc on classpath.

deps.edn:

{:deps {io.github.zmedelis/bosquet {:mvn/version "0.3.6"}}}

on Linux

behrica commented 1 year ago

Strangely it works when inside the bosquet source code (on tag v0.3.6) (The above is in a project which is using bosquet)

behrica commented 1 year ago

I think the issue is that the git dependeny to selmer is not "transitive" resolved when using a mvn dependency to bosquet.

behrica commented 1 year ago

Indeed, with this deps.edn it work:

{:deps {io.github.zmedelis/bosquet {:mvn/version "0.3.6"}
            zmedelis/Selmer            {:git/url "https://github.com/zmedelis/Selmer"
                                                    :git/sha "88fc2b51817e1ad67f0458c75857222a72db4945"}}}
zmedelis commented 1 year ago

I think the issue is that the git dependeny to selmer is not "transitive" resolved when using a mvn dependency to bosquet.

Yes POM can't deal with that. I will make my Selmer fork release and refer to that

behrica commented 1 year ago

or you do not release on Clojars, but document how to access releases via GIT coordinates in deps.edn,

zmedelis commented 1 year ago

The commit addresses this. Not closing the issue till I make a new Bosqute release with a few more fixes to the critical issues you reported.

zmedelis commented 1 year ago

Addressed in the v0.3.7 release.