leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
dangercoder 2020-11-04T10:59:44.042700Z

Hi! is it possible to configure mirrors and repositories from project.clj instead of profiles.clj? I haven't managed yet

dangercoder 2020-11-04T11:20:10.043400Z

or can you add a -s commands like in maven? mvn clean -s settings.xml?

2020-11-04T13:28:34.043900Z

@jarvinenemil you can specify both within a project.clj

2020-11-04T13:28:55.044300Z

What is -s?

dangercoder 2020-11-04T13:29:05.044600Z

its for settings in maven

dangercoder 2020-11-04T13:29:14.044900Z

like mirror, repository etc.

2020-11-04T13:29:30.045100Z

Oh.

2020-11-04T13:29:42.045500Z

You can command line alter project

2020-11-04T13:31:20.047100Z

lein update-in : assoc :repositories <edn map here> — <tasks here>

dangercoder 2020-11-04T13:40:27.047700Z

having the definitions in project.clj worked like a charm 🙂, thanks @mikerod

2020-11-04T13:49:38.047900Z

Good

deadghost 2020-11-04T15:25:40.048800Z

Are deprecation warnings a thing? I see https://clojure.atlassian.net/browse/CLJ-706 for getting it into clojure but it's not in yet. Does leiningen handle it at all?

Yehonathan Sharvit 2020-11-04T15:45:25.049700Z

I have an issue when launching lein repl on a project: I get this error:

/Users/viebel/prj/cyco/combo/target/default+57112520/bb0a23c4d064f2123af6cc3c9b1d72630db3fa48-init.clj (No such file or directory)

Yehonathan Sharvit 2020-11-04T15:45:50.050300Z

Other folks from my team don’t get this error at all, although we all run leiningen 2.9.4 on JDK 11

Yehonathan Sharvit 2020-11-04T15:46:03.050600Z

Leiningen 2.9.4 on Java 11.0.8 Java HotSpot(TM) 64-Bit Server VM

Yehonathan Sharvit 2020-11-04T15:46:13.050900Z

What is the meaning of the error?

Yehonathan Sharvit 2020-11-04T15:46:17.051200Z

How could I solve it?

alexmiller 2020-11-04T15:50:30.051400Z

lein clean?

Yehonathan Sharvit 2020-11-04T15:50:35.051600Z

Didn’t help

Yehonathan Sharvit 2020-11-04T15:50:49.052100Z

The error disappears when I remove :target-path "target/%s/" from project.clj

2020-11-04T15:52:18.052200Z

The Eastwood linter can warn about these for Clojure/JVM code, at least (it does not support ClojureScript). I do not know off hand whether the clj-kondo linter (which does support ClojureScript) might warn about uses of deprecated things.