leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
Ivan Koz 2019-05-16T04:12:51.064100Z

how to properly set (set! *print-namespace-maps* false) for nrepl in lein project?

Ivan Koz 2019-05-16T04:13:11.064500Z

tried in repl-options init, no success

elamje 2019-05-16T04:48:57.066600Z

Hello! I am currently trying to write a Leiningen template for the coast framework. I have never done a Lein template before and I'm trying to understand how using :Lein-tools-deps plugin and middleware with interface with deps.edn

elamje 2019-05-16T04:50:14.068Z

Can anyone give some guidance to a simple project that uses deps.edn and Leiningen properly so I can try to glean how they work together?

elamje 2019-05-16T04:54:05.069600Z

Specifically, if the project template is using deps.edn already, and you simply add a project.clj file to the template, will Lein just ignore the aliases like below because it can run tests without test-runner?

:aliases
 {:test
  {:extra-paths ["test"]
   :main-opts ["-m" "cognitect.test-runner"]
   :extra-deps
   {com.cognitect/test-runner {:git/url "git@github.com:cognitect-labs/test-runner"
                               :sha "5f2b5c2efb444df76fb5252102b33f542ebf7f58"}}}

  :uberjar
  {:main-opts ["-m" "mach.pack.alpha.capsule"
               "-m" "server"
               "-e" "target"
               "target/coasttest.jar"]
   :extra-deps {pack/pack.alpha {:git/url "<https://github.com/juxt/pack.alpha.git>"
                                 :sha "d9023b24c3d589ba6ebc66c5a25c0826ed28ead5"}}} 

bozhidar 2019-05-16T06:41:48.069900Z

> how to properly set (set! *print-namespace-maps* false) for nrepl in lein project?

bozhidar 2019-05-16T06:42:20.070600Z

@nxtk What your nREPL version? I think this didn’t work properly before nREPL 0.6.

bozhidar 2019-05-16T06:42:30.070900Z

(which comes with Lein 2.9)

bozhidar 2019-05-16T06:43:59.071200Z

(and here’s the related upstream ticket for this https://github.com/nrepl/nrepl/issues/33)

Ivan Koz 2019-05-16T06:49:59.071700Z

@bozhidar 0.6.0 Leiningen 2.9.1 on Java 12.0.1

Ivan Koz 2019-05-16T07:07:18.073Z

here take a look https://gyazo.com/82911e90dc23acaeeee62edbdd2d74a1.png

Alex Davidson Bryan 2019-05-16T12:40:27.075Z

hi, how would I make leiningen use a local snapshot of another project as a dependency? I'm trying: * append SNAPSHOT to version string of dependency * run lein install * in other project add SNAPSHOT to dependency version * run lein repl Then I get "could not find blaaa in clojars"

Alex Davidson Bryan 2019-05-16T13:14:46.076400Z

on closer inspection, lein install doesn't seem to actually put my projects jar into the local repo

jumar 2019-05-16T13:28:19.076900Z

that's weird - it should work that way. Are you sure you have modified the right project.clj?

jumar 2019-05-16T13:29:00.077400Z

perhaps check that the generated pom.xml has proper groupId, artifactId and version.

bozhidar 2019-05-16T15:44:03.077600Z

> here take a look https://gyazo.com/82911e90dc23acaeeee62edbdd2d74a1.png

bozhidar 2019-05-16T15:44:18.078100Z

@nxtk What happens if you evaluate the init code in the REPL directly?

bozhidar 2019-05-16T15:47:29.078300Z

> on closer inspection, lein install doesn’t seem to actually put my projects jar into the local repo

bozhidar 2019-05-16T15:48:17.079100Z

I use the lein install approach all the time with snapshots and this works pretty well. Did you check ~/.m2 to verify the package is missing?