Fork me on GitHub
#boot
<
2017-07-20
>
zarkone08:07:43

hello! I'm struggling how to add local maven repo to boot, like here: https://github.com/kermitt2/grobid/issues/182#issuecomment-315417070 I've tried this:

(boot/set-env!
   :repositories {"central"      ""
                           "local-base"   "file:///${basedir}/lib/"}
   :dependencies #(into % (deps category)))
but still getting "not found" error:
clojure.lang.ExceptionInfo: The following artifacts could not be resolved: cider:cider-nrepl:jar:0.14.0, weasel:weasel:jar:0.7.0, tolitius:boot-check:jar:0.1.3, adzerk:boot-cljs:jar:1.7.228-1, adzerk:boot-cljs-repl:jar:0.3.0, crisptrutski:boot-cljs-test:jar:0.2.2-SNAPSHOT, adzerk:boot-reload:jar:0.4.8, mount:mount:jar:0.1.10, cheshire:cheshire:jar:5.6.1, camel-snake-kebab:camel-snake-kebab:jar:0.4.0, prismatic:schema:jar:0.4.4: Could not find artifact cider:cider-nrepl:jar:0.14.0 in central ()

Could you please point me where I could check out how to setup local repo properly? thanks!

martinklepsch08:07:36

@ska find me at EuroClojure and we can work this out 🙂

cycle33709:07:05

does anybody know how to get a cljs repl up and running in boot ?

zarkone09:07:03

@avabinary hi! see adzerk.boot-cljs-repl. Here are our dev task:

(boot/deftask dev
  "Build and run app with reloading and repl"
  []
  (deps/request-dependencies :app)
  (comp
   (built-in/repl :server true)
   (load-and-run-app)
   (built-in/watch)
   (built-in/notify :audible false)
   (boot-cljs-reload/reload ;; should be before cljs
    :cljs-asset-path "/target"
    :on-jsload 'filemporium.client.core/on-reload)
   (boot-cljs-repl/cljs-repl)
   (boot-cljs/cljs :source-map true)
   (built-in/target)))
Then I go to CIDER and eval (adzerk.boot-cljs-repl/start-repl)

cycle33709:07:40

@zarkone thanks a lot ! will try this

solve-calc.com10:07:53

when using boot with clojure projects, does boot 'live in the same jvm' as the clojure project, or are there two different jvms running?

kurt-o-sys11:07:06

Anyone got boot (+CIDER) and refactoring in spacemacs running properly? It seems refactored files are cached .boot/cache/... and not 'commited' to the actual project. How to make this work? (See https://clojurians.slack.com/archives/C053K90BR/p1500496611251068 )

Chris Bidler15:07:05

here’s a newbie question that maybe belongs here, maybe in #emacs: On a lark I decided to try OS X Emacs.app instead of running in a terminal. I have a GPG-encrypted credentials file for a private repo that I have configured as per https://github.com/boot-clj/boot/wiki/Repository-Credentials-and-Deploying and it has worked fine in emacs-in-the-terminal for a long time. When I try to cider-jack-in in Emacs.app, however, I get a stack trace that ends like so:

java.lang.AssertionError: Assert failed: Cannot run program "gpg": error=2, No such file or directory
                            (zero? exit)
clojure.lang.ExceptionInfo: Assert failed: Cannot run program "gpg": error=2, No such file or directory
                            (zero? exit)
    file: "/var/folders/5l/fxcc65zx2dj19s96wrvsndyr0000gn/T/boot.user3461866081192884329.clj"
    line: 7

Chris Bidler15:07:40

I can’t seem to find the right set of gestures and sounds to send to Google to find me the right SO page or blog post where the obvious answer to this is documented already. 🙂

Chris Bidler15:07:39

oh I missed the key line of the stacktrace which says this is happening in Boot’s gpg.clj

gonewest81816:07:18

@chris_johnson - I think that’s because launching the OSX app doesn’t get the $path from your .bashrc.

gonewest81816:07:39

In my .emacs.d I’ve got

;; adjust so that lein is in the path
(add-to-list 'exec-path "/usr/local/bin")

solve-calc.com20:07:31

Given that boot jvm = clojure jvm; is there a way to tell boot "you are the most important program on this computer, use as many CPUS / Memory as you possibly can?" (I faintly recall reading somewhere that JVM has default max heapsize or something.)

alandipert20:07:09

@solve-calc.com there’s the BOOT_JVM_OPTS environment variable, which passes arguments like -Xmx 4g (use 4g of heap) to the underlying java command it wraps

solve-calc.com20:07:53

@alandipert : okay, so -Xmx = maximum allowed heap size; do I need anything else to tell it it's allowed to use all cores on the server ?

alandipert20:07:15

i don’t think so, by default the jvm can access all cores, same as any other process on the server

alandipert20:07:36

depending on what your server OS is you can also assign java higher scheduling priority via nice

solve-calc.com20:07:04

are you suggesting "sudo nice -20 boot ..." to start boot? 🙂