This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-09
Channels
- # adventofcode (187)
- # aws (1)
- # aws-lambda (1)
- # beginners (162)
- # boot (64)
- # cljs-dev (6)
- # cljsjs (2)
- # cljsrn (32)
- # clojure (357)
- # clojure-greece (1)
- # clojure-korea (4)
- # clojure-russia (63)
- # clojure-sanfrancisco (3)
- # clojure-spec (91)
- # clojure-uk (63)
- # clojurescript (74)
- # clojurex (10)
- # code-reviews (55)
- # core-async (4)
- # core-typed (1)
- # cursive (17)
- # datascript (36)
- # datomic (43)
- # devcards (4)
- # dirac (3)
- # emacs (59)
- # hoplon (286)
- # jobs-discuss (399)
- # luminus (4)
- # mount (9)
- # off-topic (30)
- # onyx (53)
- # protorepl (3)
- # re-frame (88)
- # reagent (4)
- # spacemacs (1)
- # specter (14)
- # untangled (1)
- # vim (42)
has anyone successfully gotten junit test metadata from boot-test working with CircleCI ?
hey guys I don't like the anthropomorphizing of software into clothing items, should I open an issue on github or can you just laugh at me here?
i'm thinkin 2.7.0-rc1 tomorrow! i like the idea of an RC, makes it easier for people to test without cloning/building
we're in pretty good shape i think, this is gonna be an epic release
@tcrawley did you do any testing w/ the new dynapath under java 9?
of boot, that is
@alandipert: I wasn't able to use boot under 1.9 due to https://github.com/boot-clj/boot/issues/525
ah i see
@alandipert: it may work to create a new URLClassLoader in Boot.java, I'll play with that
I'm new to boot. I'm looking at a hoplon castra example project. I can run it by typing "boot dev" But if I try "boot repl" followed by (dev) it doesn't seem to run (browsing to http://localhost:8000/ results in ERR_CONNECTION_REFUSED). Is there something I can type at the boot repl that will work?
This is the example project https://github.com/hoplon/demos/tree/master/castra-simple
Ok - I figured it out: Need to do (boot (dev)) instead of just (dev)
just adding it to the task pipeline with (cljs-repl)
and calling boot repl -c
and inside that (start-repl)
I get stuck on waiting for a websocket connection, which doesn't seem right for a node project I guess 🙂
@alandipert @micha: looks like I may have a bug in dynapath 0.2.4 under java 9, but only when AOT'd(?). Looking at that now
also fixing other boot issues under Java 9, but we should discuss once I have a PR to make sure I'm not breaking things
also also I'd like to have boot 2.7.0 switch to using the CDN-fronted repo for clojars, I'll PR that today as well
all sounds great, thanks
do you have a favorite way to experiment w/ java 9 btw? like a vm or docker or something else?
I just install it locally on macos, and use https://gist.github.com/71be640975b19a5d92f8b1b01be7f2e0 to switch between jdk versions
The following is now illegal under the latest java 9 build (9-ea+148) without adding java-9 specific command line options to the java
call:
(-> URLClassLoader
(.getDeclaredMethod "addURL" (into-array Class [URL]))
(doto (.setAccessible true))
(.invoke cl (into-array URL [url])))
because calling .setAccessible
is now illegal on private methods in packages that haven't been 'opened' to the app's module
is there an alternative for injecting jars? or is that process in general what they want to make impossible
java.lang.reflect.InaccessibleObjectException: Unable to make protected void java.net.URLClassLoader.addURL(java.net.URL) accessible: module java.base does not "opens
it's really .setAccessible
that they are taking away, not URLClassLoader
features specifically
I think this is workaroundable in boot (at least for URLClassLoader
), but will break lots of people's code that reflects
@tcrawley I thought their release announcement was kind of snarky :)
A class not in a package can't be called by a class in a package. And to fix CL issues under Java 9, I believe I need to introduce a ClassLoader class next to Boot.class that is used as the top-level CL.
@xifi I am not sure but I think there must be something missing for that in node, see also here https://specious.github.io/blog/2016/12/07/Starting-a-NodeJS-app-with-ClojureScript-and-Boot/
@richiardiandrea thanks for that link, actually I got all of that working and I managed to get a node repl to start based on the cljs quick start wiki page with (cljs.repl/repl (cljs.repl.node/repl-env))
which was enough to start
oh nice
maybe there is a lein template somewhere
but I see this is a bit of an uncharted territory. Like I'm not sure how would I add npm dependencies to a boot project, I tried boot-npm
which failed with some weird error
@xifi what was the error in boot-cljs-repl
?
@richiardiandrea no error, it started listening on a websocket and was waiting for a connection 🙂
yes so it looks like the client part is missing
so boot-reload
provides the client if web
@xifi no sorry scratch that
I will try so that I can understand what is going on
I think most of the tooling is built around the web since the server side is well solved with clojure and the JVM. However the CLI part is intriguing for me
an advance-optimized script spits out a 90kB script that can be run directly via nodejs and has great startup time
yes that's definitely true
the thing is, unless you need to connect to a repl through cider, you don't need boot-cljs-repl
, cljs CLI is fine. Of course boot also gives you tasks, immutable fileset et al...so..
For the record, answering my own question: https://github.com/upworthy/heroku-buildpack-boot