@vaz has joined the channel
What’s the status of that slow SSL artifact downloading issue? I seem to recall it was “fixed” a while back but I don’t recall whether a new release appeared or is imminent to address it?
How can I require a namespace from within a task so that I can comp other tasks?
@flyboarder doesn't (require ....) work? Maybe I don't understand the issue very well
@richiardiandrea I found the issue, thanks for the response tho!
Huh, finally found the problem I've been having with Boot-cljs 2.0.0-SNAPSHOT: https://github.com/boot-clj/boot-cljs/commit/a37a38fa54efad02805f82d4cd8b080ff3c1f7e4 warning extra data might contain unprintable data
Just trying to pr-str or str the extra will hang
and eventually java will run out of memory
:fn-deprecated warning contains the analyze result of the function: https://github.com/clojure/clojurescript/blob/a3a242236e7757a179fd16dd9b86767a73a8cb5d/src/main/clojure/cljs/analyzer.cljc#L2823
Running this on a new computer, I didn't get the output I expected:
$ BOOT_CLOJURE_VERSION=1.9.0-alpha14 boot repl
Downloading ...
Running for the first time, BOOT_VERSION not set: updating to latest.
Retrieving boot-2.7.1.jar from
Retrieving clojure-1.9.0-alpha14.jar from
#
#Fri Mar 03 11:56:31 CET 2017
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_VERSION=2.7.1
BOOT_CLOJURE_VERSION=1.9.0-alpha14 it looks like instead of opening the repl, it just printed out boot.properties
you mean the 2.5.2?
ah 🙂
when I re-run the same command, it does work
but I didn't expect having to run the command twice
I knowa bout "boot repl -c" is there a way to "boot repl -c" to a REMOTE nrepl server?
I ask this because ;I have a "boot repl" running on REMOTE_BEEFY machine, and I want to conenct to it via "boot repl -c" from local-mbp-emacs-inferior-lisp-buffer
@qqq check boot repl —help — it has host and port options
@martinklepsch : so it should be
boot repl -c -H 192.168.0.113 -p 8230
where the IP is 192.168.0.113, and the remote-machine/.nrepl-port shows 8230 right?
[not 100% sure as this gives me an exception and I need to figure out if (1) I have the right cmd, but something else is brokne or (2) I get exception because my cmd is broken]
@qqq what does the exception say? you could try without the explicit -c but it looks like reasonable otherwise
ConnectException connection refused (Connection refused) ... stack frames involving http://java.net
actually, I think I know what's going on now 🙂
hi folks, I’m trying to use boot-reload and I’m getting the follow exception when I edit a file:
[worker-2] ERROR - handle websocket frame org.httpkit.server.Frame$TextFrame@76fccd2b
java.lang.IllegalArgumentException: No method in multimethod 'handle-message' for dispatch value: nullbut the reload seems to be going through anyway. can anybody explain what’s happening? thx.
hmm, so opening nrepls on host 0.0.0.0insteadof localhost is generally a BAD idea unless you want to given everyone on local network access right?
Indeed. And if you're directly connected to internet, that's everyone
@pesterhazy it exits after downloading a new version of boot to simplify the process
otherwise it would need to do some fancy footwork to patch in a different version of boot
That kind of makes sense heh 🙂
after a bit of a wild goose chase, I found out that boot-cljsjs doesn’t seem to work without an explicit dep on clj-http
now, I imagine the pods should be taking care of that as seen here: https://github.com/cljsjs/boot-cljsjs/blob/master/src/cljsjs/boot_cljsjs/packaging.clj#L72
But I’m getting the most peculiar
clojure.lang.ExceptionInfo: Call to clojure.core/defn- did not conform to spec:
In: [0] val: clj-tuple/conj-tuple fails spec: :clojure.core.specs/defn-args
if I attempt to use download/checksum/deps-cljs without listing clj-http as a dep, (even though I want to use http-kit instead internally)can anyone else confirm this, or am I still chasing the wrong goose?
@lwhorton I ran into something similar to this last week - I think some libraries aren't yet updated to work with the latest clojure 1.9 alphas. I was in a hurry, so I didn't investigate fully, and I'm afraid I don't have a satisfying answer for you. I ended up... <small>using lein</small>
@lwhorton it's unusual to be using cljsjs in your application
usually you would simply consume the prepackaged jars in your application
so i recommend separating the cljsjs packaging from the application
then there is no conflict with the clj-http pod dependency
@micha perhaps i’m misusuing it, but what I’m doing is a task that downloads a lib (not available on cljsjs) for both minified and non-min, sifting them into cljsjs/{prod,dev}/my-lib.{min}inc.js, then using deps-cljs to :name “libs.my-lib” so I can consume it from my app
why not just make a cljsjs package?
this is a pet project on which I wanted to spend a weekend, and the hassle that comes from making a proper externs.js file is pretty prohibitive
you can still make the package without externs and just install it locally
guess I didn’t think of doing a local copy
like into your local .m2 maven repo
also re: externs there's http://www.dotnetwise.com/Code/Externs/ - good for a first pass usually
(just remembered: wasn't cljs getting externs inference as well? need to see the status of that)
oh thanks @bhagany for the reconfirmation, btw… i figured it’s something to do with 1.9a but who knows
@pandeiro it’s still in alpha, but here it is https://gist.github.com/swannodette/4fc9ccc13f62c66456daf19c47692799
i’ve been watching it carefully, sadly it still requires annotations
which, tbh, I would almost rather just write an externs file than litter the code with oddities like meta-tags, but that’s personal preference I suppose
thanks for pushing me to the next step @micha, too
🚀
@micha, thanks for the explanation