Re: cider-error go to line

2015-07-02 Thread Bozhidar Batsov
This is a problem on nREPL, not CIDER. See http://dev.clojure.org/jira/browse/NREPL-59 for details. There aren't any real solutions to this, other than fixing nREPL, but we're considering some workarounds (e.g. trying to find the definition using a regular expression and using the relative positio

Re: clojure.core.match: AssertionError: Pattern row reuses wildcards

2015-07-02 Thread Linus Ericsson
Use the :tx-data as a $-database! The only pitfall is that the second position, the attribute, and all other references (reference type) is just a reference to the attribute entity (a long). Let's say you find :db/txInstant to be 53, and :community/category to be 112 the query would look like

cider-error go to line

2015-07-02 Thread Ritchie Cai
When I get a cider-error, it tells me line number within the function that raised the error, but is there an easy way to go to that line? Since the line number is within the function, I've been counting lines manually at the moment ... getting tired of this. Anyone has any suggestions? Thanks R

Re: [ANN] Introducing Yagni, a Leiningen plugin for finding unused code

2015-07-02 Thread Stuart Halloway
Thanks Colin, that is exactly it. On Thu, Jul 2, 2015 at 2:27 AM, Colin Fleming wrote: > I may be putting words in Stuart's mouth here, but what I believe he meant > is that it would be great if Yagni were just a Clojure library with a > function you could call passing it everything it needs (p

Re: Different macro definitions via reader conditionals?

2015-07-02 Thread Leon Grapenthin
@Mike: Great post. I think you should make it more explicit that the :cljs branch of the macro is never used on Clojure and CLJS/JVM. Kind regards, Leon. On Thursday, July 2, 2015 at 3:20:17 PM UTC+2, Mike Fikes wrote: > > I’m interested in whether there is a nice answer to this as well. > > F

Re: Different macro definitions via reader conditionals?

2015-07-02 Thread Mike Fikes
I’m interested in whether there is a nice answer to this as well. FWIW, I was recently pondering a closely related subject—portability that additionally extends to bootstrapped ClojureScript: http://blog.fikesfarm.com/posts/2015-06-19-portable-macro-musing.html

Re: Different macro definitions via reader conditionals?

2015-07-02 Thread Leon Grapenthin
It seems like the only way is to define two macros and call the desired one using reader conditionals. On Thursday, July 2, 2015 at 2:09:55 PM UTC+2, Michael Sperber wrote: > > I'd like to define a macro differently for Clojure and for ClojureScript. > > Is there a way to do this via reader condi

Different macro definitions via reader conditionals?

2015-07-02 Thread Michael Sperber
I'd like to define a macro differently for Clojure and for ClojureScript. Is there a way to do this via reader conditionals? (My mind boggles.) Regards, Mike -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloju

Re: [ANN] `comidi`: a committee approach to defining HTTP routes

2015-07-02 Thread Chris Price
On Wednesday, July 1, 2015 at 4:35:35 PM UTC+1, Daniel Jomphe wrote: > > Chris, this is definitely interesting. Quickly pluggable metrics & swagger > & trapperkeeper componentization sure are useful integrations. > > Doing a quick review, it surprised me a bit how many dependencies you > brought

Re: [ANN] `comidi`: a committee approach to defining HTTP routes

2015-07-02 Thread Chris Price
On Wednesday, July 1, 2015 at 12:57:01 PM UTC+1, Dan Kersten wrote: > > Regarding the "Whats next" in the README: > > *looking into swagger integration. I could swear I found some bidi-swagger > bindings somewhere a while back, but am not finding them at the moment* > > Could you perhaps be thin

{ANN} clj-archaius releases: wrapper for netflix archaius

2015-07-02 Thread dennis zhuang
Hi,all I create a new project https://github.com/leancloud/clj-archaius that wraps netflix archaius library for configuration management. It's really simple to use in your project,i hope it can help someone that is using

Re: (flatten non-sequential) has a surprising result

2015-07-02 Thread J . Pablo Fernández
Yes, reading the source code and trying to understand why rest was being called there is how I came up with this case. On 2 July 2015 at 07:54, icamts wrote: > Hi Pablo, > I think you're right. Have a look at flatten source > > (defn flatten > "Takes any nested combination of sequential things