This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-07-20
Channels
- # admin-announcements (15)
- # announcements (1)
- # beginners (10)
- # boot (39)
- # bristol-clojurians (2)
- # clojure (146)
- # clojure-canada (1)
- # clojure-gamedev (8)
- # clojure-italy (2)
- # clojure-japan (16)
- # clojure-korea (1)
- # clojure-poland (1)
- # clojure-russia (20)
- # clojure-spain (3)
- # clojurebridge (5)
- # clojurescript (104)
- # core-typed (2)
- # datomic (80)
- # indycljs (1)
- # jobs (1)
- # ldnclj (31)
- # off-topic (15)
- # om (21)
- # onyx (7)
- # ox (9)
- # re-frame (2)
- # reagent (16)
guys, is there something like boot.repl/default-requires defined which I could modify in my profile.boot to auto-load custom namespaces during boot’s start-up time ?
@michal There is boot_shim.clj which might help with that. Not entirely sure though. Have you tried the various repl task options? (`boot repl -h`)
haha thx @martinklepsch
@michal: does calling the require function in profile.boot not do what you want?
@alandipert: nope, looks like all dependencies I add through (swap! boot.repl/default-dependencies….) are not fetched at this time
how are you invoking boot?
simply ‘boot repl’. just to clarify, what I’d like to achieve is to load custom dependency and require its namespace independently from project. this is why I thought profile.boot is the best fit here
it does sound like the right fit... and calling set-env!
and require
in profile.boot is not sufficient?
e.g. (set-env! :dependencies #(conj % '[my/lib "1.0.0"])) (require 'my.lib.core)
(swap! boot.repl/default-dependencies concat '[[cider/cider-nrepl "0.10.0-SNAPSHOT"] [im.chit/vinyasa "0.3.4"] [spyscope "0.1.5"] [refactor-nrepl "1.1.0-SNAPSHOT"]]) (require 'spyscope.core)
i see. there is this: http://hoplon.discoursehosting.net/t/how-to-use-spyscope-with-boot-solved/492
one question though. isn’t it so that (set-env! :dependencies …) replaces :dependencies from build.boot ?
it precedes, does not replace
you can call set-env as many times as you want, it's a function in boot.core
you can also call it from teh repl to add deps without restarting jvm
i do this all the time in the early stages of a project
no prob! happy computing 😃 💻
I'm using Boot 2.1.2 and I'm finding that Boot isn't loading .cljc files in dependencies. I have a simple boot script this is throwing an error Could not locate cljs/util__init.class or cljs/util.clj on classpath:
(set-env!
:dependencies '[[org.clojure/clojurescript "0.0-3255"]])
(require '[cljs.build.api])
(deftask foo []
(prn "hi"))
#https://github.com/boot-clj/boot #Mon Jul 20 10:13:10 EDT 2015 BOOT_CLOJURE_VERSION=1.6.0 BOOT_VERSION=2.1.2 #App version: 2.0.0
but you should also add a :dependency
on org.clojure/clojure
to your project to prevent confusion with transitive deps