This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-06
Channels
- # admin-announcements (10)
- # alda (78)
- # arachne (33)
- # bangalore-clj (2)
- # beginners (11)
- # boot (70)
- # chestnut (8)
- # cljsjs (5)
- # cljsrn (4)
- # clojure (212)
- # clojure-art (1)
- # clojure-berlin (1)
- # clojure-brasil (27)
- # clojure-canada (6)
- # clojure-colombia (12)
- # clojure-dev (6)
- # clojure-greece (29)
- # clojure-hk (2)
- # clojure-italy (7)
- # clojure-russia (51)
- # clojure-spec (12)
- # clojure-uk (18)
- # clojurescript (115)
- # clojurex (8)
- # component (1)
- # crypto (41)
- # css (5)
- # cursive (31)
- # datomic (17)
- # defnpodcast (7)
- # emacs (9)
- # flambo (1)
- # funcool (4)
- # juxt (29)
- # off-topic (1)
- # om (122)
- # onyx (12)
- # pedestal (1)
- # planck (10)
- # portland-or (1)
- # re-frame (30)
- # reagent (4)
- # rum (3)
- # slack-help (2)
- # specter (20)
- # sql (3)
a question about adzerk.env
, so in my cljs file I do:
#?(:cljs (env/def
ASSET_ENDPOINT ""
API__ENDPOINT ""
API__WS_ENDPOINT ""))
will I lose the symbols with :optimizations
:advanced
?
my gut feelings are saying no
@danielsz i saw there was a recent release from system, but the changelog doesn't mention it i would assume 0.3.1-SNAPSHOT became 0.3.1 but then it seems it came after 0.3.2-SNAPSHOT either way, it would be good to mention it in the CHANGELOG im trying it out anyway
@richiardiandrea: are you referring to accessing them from JS? It should work with advanced compilation
quick question.
i have a system with a new-web-server
component.
if starting the system fails i get an error message which shows that the web server was actually started successfully.
BUT when i fix the reason of the start
failiure i get an "Address already in use" error although I saw the system was stop
ping:
#'sys/dev:refreshing
Stopping sys/dev
Unloading: (app.profile-test app.users-test app.schema-test sys app.demo boot.maven app.core-test app.excel.data app.excel.sens app.excel.core admin.docs app.profile test-helpers app.schema app.docs app.core app.users)
Reloading: (app.demo sys app.schema-test app.users-test app.profile-test app.users app.core app.docs app.schema test-helpers app.profile admin.docs app.excel.core app.excel.sens app.excel.data app.core-test boot.maven)
...
clojure.lang.ExceptionInfo: Error in component :web in system com.stuartsierra.component.SystemMap calling #'com.stuartsierra.component/start
data: {:reason
:com.stuartsierra.component/component-function-threw-exception,
:function #'com.stuartsierra.component/start,
:system-key :web,
:component
{:options {:port 8200, :join? false},
:handler
{:handler
#object[ring.middleware.cors$wrap_cors$fn__9236 0x76de0359 "ring.middleware.cors$wrap_cors$fn__9236@76de0359"]}},
:system
{:db {:uri "datomic:", :conn nil},
:schema {:db nil},
:demo-data {:db nil, :schema nil},
:handler
{:handler
#object[ring.middleware.cors$wrap_cors$fn__9236 0x76de0359 "ring.middleware.cors$wrap_cors$fn__9236@76de0359"]},
:web {:options {:port 8200, :join? false}, :handler nil}}}
java.net.BindException: Address already in use
@flyboarder: yeah but it works, the problem was elsewhere
@onetom: Yes, this is a problem we're trying to fix with idempotent start and stops. What particular web component are you using?
im using
(system.components
[jetty :refer [new-web-server]]
[datomic :refer [new-datomic-db]])
@danielsz you mean u would somehow force idempotency?
currently the jetty server seems to try being idempotent by doing the dissoc :server
... 😕
@onetom Ah you're using Jetty. This one has idempotent starts and stops. Then it must be something else.
hello. i’m trying to use boot.core/cp
and keep getting
java.lang.IllegalArgumentException: No matching method found: copy
...
boot.tmpdir/add-blob! tmpdir.clj: 87
Anyone else run into this? seems to work fine when I drop to 2.5.5
Hey everyone. Is there a place to read about how scopes (`provided`, test
etc.) work in Boot? AFAIU it is a Maven feature, yet I can't find the explanation how many scopes there are, and what are the rules of applying them.
Also, how can I run something like boot show -d
, but exclude things in e.g. test
scope?
Yes, boot-reload only cares about js files written by Cljs
Is there anyone from cljsjs here? I want an updated version of react-select but I saw earlier updates were somehow done by a robot so maybe I should not make a pull request? https://github.com/JedWatson/react-select has a new version o 1.0.0-rc
@mitchelkuijpers hey let's take this to #cljsjs
having the following problem:
I’ve got a resources
directory that may have a main.js
artifact resulting of Figwheel compilation (with lein)
in my Boot-CLJS build I wanna sift that out so it doesn’t interfere with the Boot-cljs build
my sift invocation looks like this:
(sift :include #{#"^devcards\/main.js"} :invert true)
if I run boot that-sift-task-above show -f
the main.js
file doesn’t appear
however if I run boot that-sift-task-above my-cljs-compilation-task
I get the stale main.js
and not the one resulting from my Boot-CLJS build
running out of ideas on what to do here
@anmonteiro are you using the watch
task as well?
have you reproduced this with and without watch?
let me try without watch
what would be the problem there?
maybe I should sift
before the watch task? hrm
I'm just guessing without much thought... 🙂 The watch
task stores the fileset and there is some merging going on in cases so could be that this merge op is behaving undexpected
@martinklepsch well I’m sifting the file after the watch
task is called, so maybe my mistake
no I think that's probably the right place
any luck without watch?
I had luck without watch, but then it behaved correctly when I readded watch 🙂
something non-deterministic going on here
definitely my favorite type of bug :sarcasm:
oh I also removed ./boot/cache
in the process so it might just be that
just realizing I shouldn’t have introduced that variable
not if you meant to track it down 😛 — but it works ¯\(ツ)/¯
also works if I just call sift
as the first thing
I don’t expect to have figwheel running in parallel so I can leave it like it is now
if it shows up again might be worth putting some prn
s inside boot.core/reset-fileset
@alexyakushev the scopes are described in the pom reference
@alexyakushev https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope
So last month at TriClojure @stuarthalloway switched clojure versions live in a JVM using boot
. How would you do that?
hah, that's a nice demo 😄
In any case a repro might be good to exclude any unwanted behavior?
you are going to need to have a file anyway, so in general i would always just emit the file to a temp dir and use add-resource
etc to add it to the fileset