This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-07
Channels
- # aws (2)
- # bangalore-clj (4)
- # beginners (62)
- # boot (74)
- # cider (408)
- # cljsrn (17)
- # clojure (117)
- # clojure-dusseldorf (1)
- # clojure-russia (21)
- # clojure-spec (17)
- # clojure-uk (15)
- # clojurescript (154)
- # cursive (3)
- # datomic (16)
- # emacs (33)
- # funcool (3)
- # hoplon (99)
- # off-topic (7)
- # om (10)
- # overtone (3)
- # portland-or (1)
- # protorepl (9)
- # re-frame (83)
- # reagent (11)
- # remote-jobs (1)
- # ring-swagger (24)
- # specter (10)
- # untangled (1)
- # yada (11)
so newbie question, how can I have doc
, apropos
, ... in all the namespaces of my project?
(without require
-ing them)
oh nice idea, I wonder why it is not the default 😄
I can even use boot repl :eval
I guess for that or :init
using replace-task!
?
yeah I am trying too
(var-get (ns-resolve 'clojure.repl 'doc))
needs two args
actually maybe three
&form
and &env
no sorry that is garbage
but it is replacing, not interning
anyways no big deal 😄
@micha http://stackoverflow.com/questions/20831029/how-is-it-possible-to-intern-macros-in-clojure/20831536
maybe a boot task for this is a good idea 😉
I think it works without, I am doing it at runtime...
uhm...
boot-shim.clj
is new to me let me check
yeah, but where does it need to go? $HOME/.boot
?
oh found: https://github.com/boot-clj/boot/commit/045d01101d61d947e1efd729e1f73b5690020928
source does not really work dunno why, but ok
you could probably make something fancy that uses ns-publics
to find the vars in the repl namespace and automatically intern them
but I like copy paste lol
(not true, but I feel always in a rush when I spend time these kind of things)
yeah I used to use it with lein
there is quite a lot in there
probably the :injections
part can just be copied in boot-shim.clj
the problem is what happens when a pod does not have it on the classpath?
Ah right, or just use a when
I guess
Yeah I think this is more needed in the repl pod
Now that I think of it
yeah I will explore more, vyniasa is something I have always wanted to port to boot
Editors mask the need of doc
but the other functions are super useful, I wonder if dep hotload works ..Will try more
@zilti: are you just looking to add files to the classpath?
@flyboarder: Sorta. I have a .java file in the src dir. "boot javac" compiles it correctly, but I can't access the class from a subsequent repl or when starting the prog from a task. Well, for now I think I'm working with lein for this...
@zilti You need to run javac
in the same pipeline as repl or app
boot javac app
or boot javac repl
or you can add it as part of your existing dev
or such task
https://github.com/RadicalZephyr/boot-javac-star is an experimental option, based on https://github.com/ztellman/virgil
so I have in build.boot
(set-env! :resource-paths #{”src” “js”} …)
and this fileset:
build.boot
src/
| ...
js/
| index.cljs.edn
…
and, at a REPL, I execute: boot.user => (boot (comp (cljs) (target))
would I not expect there to be an index.js
…somewhere?
oh, hm, that seems to not be what I actually want to do anyway - when I run boot cljs -c '{:target :nodejs}’ target
from a terminal I just get the index.js
I want instead of main.js
huh, so boot cljs -c '{:target :nodejs}’
creates index.js
, but boot.user> (boot (cljs :compiler-options {:target :nodejs}))
creates main.js
I’m not sure what I’m doing wrong there
aaand nevermind again - must be that the REPL had an out-of-date view of the files on disk because after a couple rounds of rm
and touch
I’ve convinced myself that the CLI will also make main.js
if there’s no index.cljs.edn
lying about