Fork me on GitHub
#clojure
<
2016-03-02
>
cjmurphy07:03:19

I want to start using sente. The 'Sente reference example' seems like the way to go. The web page comes up. Is something supposed to happen when you press the buttons? I can't see evidence of anything going on in the lein terminal, the browser console or the web page itself. Perhaps there's a better example application??

cjmurphy07:03:22

I've done lein clean, lein deps, lein run. Nothing obvious wrong. Just expected to be able to play with it a somehow.

cjmurphy07:03:05

lein start works much better picard-facepalm

bensu11:03:49

anybody has experience deploying a maven java project to clojars?

bensu11:03:47

mvn deploy throws ReasonPhrase: Forbidden. even though I'm providing the credentials in ~/.m2/settings.xml

bensu11:03:38

For future reference: I forgot to change the groupId , which was org.apache.commons to something that I own, like org.clojars.bensu

shanekilkelly11:03:37

out of curiousity, why publish a java project on clojars?

escherize13:03:18

@cjmurphy: I havn't tried it, but https://github.com/danielsz/system has a sente library

tylerwaitt13:03:03

I’m running my ring app with lein ring server, is there a way to still use the repl?

jasonbell13:03:47

lein repl :connect host:port

jasonbell13:03:05

from another terminal window

tylerwaitt13:03:36

thanks much!

danielsz14:03:07

@cjmurphy There's also an example on how to use sente with system on sente's website

bensu14:03:34

@shanekilkelly: because I don't have the time to learn how to do it on Maven Central and already know how to do it on clojars

escherize14:03:58

Thought I'd let you guys know I'm working on a cljs fiddle.

escherize14:03:40

act now for the extra buggy version! 😬

shanekilkelly14:03:18

@bensu simple_smile as good a reason as any

joost-diepenmaat15:03:57

anyone have experience with boot-test?

joost-diepenmaat15:03:20

I’ve got a project where adding (require '[adzerk.boot-test :refer :all]) to build.boot throws

joost-diepenmaat15:03:28

clojure.lang.ExceptionInfo: target does not exist data: {:file "adzerk/boot_test.clj", :line 1} java.lang.IllegalAccessError: target does not exist

joost-diepenmaat15:03:40

when starting the repl or trying “boot test"

joost-diepenmaat15:03:52

no idea what’s going on

tolitius16:03:10

@joost-diepenmaat: try (:require '[adzerk.boot-test :as bt]) and then something like:

(deftask test []
  (set-env! :source-paths #(conj % "test/this" "test/that")) ;; (!) :source-paths must not overlap.
  (bt/test))
$ boot test

tolitius16:03:17

@joost-diepenmaat: btw, the #C053K90BR channel is very active and helpful

wei17:03:18

What’s a good way to write this function? (fn-or a b c) => #(or (a %) (b %) (c %))

moizsj17:03:23

Anyone ever came across or knows about a good Clojure or Java implementation of a thread safe reference counted data structure? (set,list)

nberger17:03:09

@joost-diepenmaat: what's your boot version? Run boot --version. You should have at least 2.5.0 which is when the target task was introduced

joost-diepenmaat19:03:09

ahaha @nberger that was it! thanks

josh.freckleton19:03:58

I just found a bug (?) when using multimethods in emacs CIDER, if I change defmulti, it won't get recompiled with a simple C-c C-k, I need to C-c C-x and then C-c C-k to recompile it. Without the refresh first, it keeps operating the defmulti from it's first compiled version. Any reason why this should be the case?

josh.freckleton20:03:31

@akjetma: Ah, this looks like exactly what I'm dealing with, thank you!

peeja21:03:37

Is it possible for a macro to know the namespace in which it was called?

blueberry21:03:50

should be. have you tried unquoted ns?

blueberry22:03:18

asterisknsasterisk

peeja22:03:59

I haven't, but I don't think that'll work for me. This is really more of a ClojureScript problem, I suppose: I need to turn the namespace name into a string before it gets munged by the Closure compiler

peeja22:03:18

So I need macro-time access to the value.

jr22:03:13

@peeja: there are special variables in a macro &env being one of them. Not sure if the calling ns is provided there but may be worth checking

peeja22:03:05

I haven't actually looked yet, but I believe &env just has locals, not vars like *ns*. I'll take a look though, thanks.

hiredman22:03:47

does the clojurescript compiler not set something equivalent to ns?

hiredman22:03:32

maybe

cljs.analyzer/*cljs-ns*

peeja22:03:41

@hiredman: Hey, that does work! Thanks!

mattly23:03:51

I have a specific question about http-kit.client, is there a better room for that?

dmuylwyk23:03:51

And I have a specific question about configuring lein deploy for Artifactory. Is there a better channel for this?

mattly23:03:33

otherwise: anyone know how to have http-kit.client send multiple values with the same query parameter name, f.e. ?

mattly23:03:16

:query-params {:a [1 2 3]} can’t be coerced to string, and it seems to only want a map for that value

dmuylwyk23:03:51

@mattly: Does this not work?

:query-params {:param "value" :param2 ["value1" "value2"]}

mattly23:03:20

@dmuylwyk: no, it complains that it can’t coerce PersistentArrayMap to String

dmuylwyk23:03:20

@mattly: How about... I typed too slowly.

mattly23:03:27

:query-params {:a ‘(1 2 3)}

sgrove23:03:37

How can I invite someone to this slack?

richiardiandrea23:03:52

hey guys what are the character requirements for a def-able symbol? I would like to polish up a string of mine and use it for (def my-symbol ...)