Fork me on GitHub
#leiningen
<
2024-01-30
>
Jim Newton18:01:22

is there a way to tell lein to upgrade all clojars to latest stable versions?

seancorfield20:01:56

I always forget antq works with Leiningen... I love it because it finds all sorts of files to check for updates, like GitHub Actions etc!

Jim Newton07:02:46

trying to run lein outdated, I get the following error.

Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:471).
org.yaml.snakeyaml.inspector.TagInspector

Full report at:
/var/folders/rf/5n_0m5j52x71hffg59b_y3kw0000gn/T/clojure-14513433198986894880.edn
Error encountered performing task 'run' with profile(s): 'antq'
Suppressed exit

Jim Newton07:02:23

tried lein antq and got the following error

Retrieving rewrite-clj/rewrite-clj/1.1.47/rewrite-clj-1.1.47.jar from clojars
clojure.lang.Compiler$CompilerException: Syntax error macroexpanding at (rewrite_clj/reader.cljc:1:1).
#:clojure.error{:phase :execution, :line 1, :column 1, :source "rewrite_clj/reader.cljc"}
 at clojure.lang.Compiler.load (Compiler.java:7665)
    clojure.lang.RT.loadResourceScript (RT.java:381)
    clojure.lang.RT.loadResourceScript (RT.java:372)
...
   clojure.main$main.doInvoke (main.clj:616)
    clojure.lang.RestFn.applyTo (RestFn.java:137)
    clojure.lang.Var.applyTo (Var.java:705)
    clojure.main.main (main.java:40)
Caused by: java.io.FileNotFoundException: Could not locate clojure/tools/reader/impl/errors__init.class, clojure/tools/reader/impl/errors.clj or clojure/tools/reader/impl/errors.cljc on classpath.
 at clojure.lang.RT.load (RT.java:462)
    clojure.lang.RT.load (RT.java:424)
    clojure.core$load$fn__6908.invoke (core.clj:6161)
    clojure.core$load.invokeStatic (core.clj:6160)
... 

vemv08:02:33

I'd make sure that lein is latest, or rollback a few months back (they have https://codeberg.org/leiningen/leiningen/pulls/39 in flight currently - although it may have nothing to do with your issues) If that doesn't work, note that antq can be run in two manners: • main program • plugin Both are fundamentally different approaches. If one didn't work, try the other one :) (with that said, plugins can be considered better, as hinted in the antq readme)