Fork me on GitHub
#leiningen
<
2019-05-16
>
Ivan Koz04:05:51

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

Ivan Koz04:05:11

tried in repl-options init, no success

elamje04:05:57

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

elamje04:05:14

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?

elamje04:05:05

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 "[email protected]: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 ""
                                 :sha "d9023b24c3d589ba6ebc66c5a25c0826ed28ead5"}}} 

bozhidar06:05:48

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

bozhidar06:05:20

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

bozhidar06:05:30

(which comes with Lein 2.9)

bozhidar06:05:59

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

Ivan Koz06:05:59

@bozhidar 0.6.0 Leiningen 2.9.1 on Java 12.0.1

Alex Davidson Bryan12:05:27

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 Bryan13:05:46

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

jumar13:05:19

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

jumar13:05:00

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

bozhidar15:05:18

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

bozhidar15:05:29

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

bozhidar15:05:17

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?