Fork me on GitHub
#boot
<
2018-03-20
>
borkdude08:03:16

Is it possible to turn https://github.com/venantius/pyro on in profile.boot? This is mine right now:

(require 'boot.repl)

(swap! boot.repl/*default-dependencies*
       concat '[[cider/cider-nrepl "0.17.0-SNAPSHOT"]
                [refactor-nrepl "2.4.0-SNAPSHOT"]
                [venantius/pyro "0.1.2"]
                ])

(require '[pyro.printer :as printer])
(printer/swap-stacktrace-engine!)

(swap! boot.repl/*default-middleware*
       conj
       'cider.nrepl/cider-middleware
       'refactor-nrepl.middleware/wrap-refactor)
Error: Could not locate pyro/printer__init.class or pyro/printer.clj on classpath.

dominicm09:03:32

@borkdude you're doing a require before the dependencies have been added. You need to use set-env!

borkdude09:03:45

aah, I thought somehow swapping these dependencies also loaded them, but that’s not how it works

donaldball23:03:01

Hmm, I just hit a weird one. In what circumstance will the order in which dependencies are listed in boot’s environment affect the artifacts and classpath used?

donaldball23:03:34

I have one ordering which works as expected and another that yields a ClassNotFoundException

donaldball23:03:00

I would have imagined that the dependencies collection had set semantics tbh

dominicm23:03:11

Maven does not iirc.