This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-09
Channels
- # announcements (7)
- # beginners (84)
- # calva (3)
- # cljs-dev (19)
- # cljsrn (1)
- # clojure (64)
- # clojure-dev (31)
- # clojure-italy (13)
- # clojure-nl (6)
- # clojure-spec (4)
- # clojure-uk (35)
- # clojurescript (4)
- # clojurex (86)
- # datomic (4)
- # fulcro (11)
- # graalvm (93)
- # joker (5)
- # nrepl (32)
- # off-topic (45)
- # pedestal (4)
- # reagent (3)
- # rewrite-clj (12)
- # sql (17)
- # tools-deps (4)
- # vim (28)
How can I get the same behavior of :aot :all
with a tools.deps tool? I tried badigeon but it isn't clear to me how it supports the same feature
I am currently playing with badigeon and I don’t see an :aot :all
feature there either.
The :all is just about enumerating the namespaces in a project
So tools.namespace can do that
hi all, i'm trying to write a macro that dynamically invokes let
with a vector of key/value pairs, but i am a bit lost.
to illustrate, this is my (poor) attempt at making this work:
(defn my-args []
['x {:foo :bar}])
(defmacro wrap-lets
[& body]
`(let [args# (my-args)]
(let args#
~@body)))
(wrap-lets
(println "x: " (pr-str x)))
note the line (let args# ..)
-- it appears that at compilation time, args#
is still a sym. unquoting it doesn't seem to work, any advice on what i'm doing wrong here?seems to be doing something but not exactly what i want either -- still x not found
in the println statement
(defn my-args []
['x {:foo :bar}])
(defmacro wrap-lets
[& body]
`(let ~(my-args)
~@body))
(wrap-lets x) => {:foo :bar}
Hello, im interested to know if running 1. "lein with-profile test run" is the same as 2. running "lein uberjar" to create standalone jar and setting "PROFILE=test java -run myprogramstandalone.jar"
so it's "just data TM" and the data that is then generated by the template, gets eval-ed later
what i'm trying to achieve here is a pytest kind-of fixture wrapper for clojure.test. pytest allows you to specify fixtures as arguments to tests, e.g. def test_foo(dbconn): ....
-- i'm trying to make a lightweight library for clojure that allows you to do something similar, (deftest test-foo [dbconn] ..)
and then load fixtures using integrant
and the let magic i'm trying to achieve here is to dynamically bind dbconn
in this example
@lmergen I would just do that using normal functions + atoms or dynamic vars probably
did you manage to find out where your "missing test assertion" message was coming from the other day? maybe you could test this and paste the string? I can then try to find it in the CIDER source
e.g. if i run all tests in the namespace, it will not tell me if a single test is missing any checks
but I guess you mostly run a single test from CIDER. I haven't used this before. I mostly use (t/run-tests)
yeah for me i use single tests extensively, so it matches the workflow. clj-kondo has a totally different use case
I was mostly thinking about this one: https://github.com/borkdude/missing.test.assertions
Does anyone have any good resources about implemented an OAuth2 / Open ID Connect Resource Server using Ring? I want to configure an api to trust signed JWTs from Okta.
@paulspencerwilliams as far as i can tell, it's still a bit of the wild west in clojure landscape; there are a few libraries that help you authorize oauth1/2 access tokens, but there are almost none for implementing an oauth server afaict
Best way depends upon some metric (or metrics) of valuation to compare. Convert to sets and use clojure.set/intersection has the advantage that it is only a few characters to type, and relies on built-in well-tested code.
@clypto clojure.set intersection is fire for such things, yep.