This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-06
Channels
- # beginners (90)
- # boot (83)
- # cider (39)
- # clara (4)
- # cljs-dev (124)
- # cljsrn (10)
- # clojure (208)
- # clojure-boston (1)
- # clojure-italy (13)
- # clojure-nlp (3)
- # clojure-russia (34)
- # clojure-spec (63)
- # clojure-uk (101)
- # clojurescript (65)
- # community-development (13)
- # copenhagen-clojurians (1)
- # core-async (1)
- # cursive (24)
- # datascript (1)
- # datomic (65)
- # emacs (20)
- # graphql (20)
- # hoplon (21)
- # instaparse (18)
- # jobs (5)
- # jobs-discuss (2)
- # leiningen (8)
- # luminus (32)
- # midje (1)
- # mount (3)
- # off-topic (18)
- # om (10)
- # parinfer (6)
- # pedestal (2)
- # planck (2)
- # precept (22)
- # protorepl (7)
- # re-frame (45)
- # reagent (9)
- # ring (1)
- # ring-swagger (4)
- # rum (2)
- # spacemacs (5)
- # sql (2)
- # unrepl (13)
- # untangled (8)
- # yada (5)
I don't remember the syntax, but it'll be something like lein test my-co.my-app.*
@danielcompton you are right! oh right, how did I forget about that! 🤓
One more ― I have it that when I print to the console (`println` pprint
or puget.printer
), the printing doesn't happen if an exception is thrown in my code near and after the point of the printing.
Just wondering, is this happening to other folks as well, is there a way to change that behavior? it seems to recur in all of my projects
@matan when you print, it won't flush to the console immediately. http://yellerapp.com/posts/2014-12-11-14-race-condition-in-clojure-println.html is a good guide to what's going on
You can replace it with a few different options. One option not mentioned there which I just thought of could be to use:
(use-fixtures :once (fn [f]
(binding [*flush-on-newline* true]
(f))))
Using a proper logging library is a better long-term route, but println is still handy for unit testsNot sure if that code snippet works, but it seems like it should
@danielcompton ah, thank you, I was beginning to think I am merely hallucinating 😌