This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-29
Channels
- # announcements (1)
- # beginners (176)
- # biff (3)
- # calva (7)
- # clojure (68)
- # clojure-europe (18)
- # clojure-nl (1)
- # clojure-norway (12)
- # clojure-uk (6)
- # community-development (4)
- # conjure (1)
- # core-async (5)
- # datomic (21)
- # events (1)
- # fulcro (5)
- # funcool (3)
- # hyperfiddle (35)
- # leiningen (18)
- # malli (3)
- # nbb (20)
- # overtone (20)
- # pedestal (1)
- # polylith (68)
- # portal (6)
- # releases (1)
- # shadow-cljs (6)
- # slack-help (7)
- # squint (6)
- # vim (4)
- # xtdb (4)
I upgraded one of my (Java) dependencies in my project.clj file. One of the changes is that one of the classpaths was renamed. My code as-is threw an error about not finding the class which is expected. I changed the name to the new name, but it can't find that either. There seems to be some sort of lein/cider issue where the old version is cached somewhere. Is there a way to clean the dependency record? Is upgrading a package supposed to be this hard?
Can you provide specifics? What library? What original version, and what new version? Which class?
(in general, updating deps should be easy but...)
Sure
Langchain4J 0.24.0 -> 0.25.0
Per this commit, the class dev.langchain4j.data.document.parser.PdfDocumentParser
is now dev.langchain4j.data.document.parser.apache.pdfbox.ApachePdfBoxDocumentParser
.
An issue I made that was causing my app to crash (document splitter was not concurrency-safe) should be patched in this new version which is why I want to upgrade
@U45T93RA6 what do you mean? I have lein-environ and lein-localrepo plugins, 1.2.0 and 0.5.4
There's a plugin named enrich-classpath. A user in this channel recently posted a project.clj with a very old version of it
@U05D3EAA6FM Can you share your project.clj
-- or at least the various langchain4j
dependencies?
You need to add [dev.langchain4j/langchain4j-document-parser-apache-pdfbox "0.25.0"]
That did it, thanks. This is the last project that will use langchain. Out of curiosity where did you see this?
I searched the code repo for the new class -- but it is explained in the Breaking Changes section of the release notes, now that I look there: https://github.com/langchain4j/langchain4j/releases/tag/0.25.0
I guess since it isn't yet a 1.x release, they feel it's OK to make breaking changes in a minor update...