Re: How to exclude compile-time dependencies from uberjar?

2015-07-02 Thread Philippe Guillebert
Hi provided dependencies should work for you, this is from my project.clj : :profiles {:provided {:dependencies [[org.apache.storm/storm-core 0.9.4]]}} On Wed, Jul 1, 2015 at 5:14 PM, Robin Heggelund Hansen skinney...@gmail.com wrote: All suggestions made the dependencies unavailable

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

2015-07-02 Thread Colin Fleming
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 (probably source paths and entry point details), and ideally returning the results as data. Then

Re: zipmap different ordering in 1.7

2015-07-02 Thread Jo Geraerts
That was exactly what i'm doing to fix it. I didnt care about the actual order but assumed the order was going to stay the same. Bad assumption. Thank you all for the feedback. Op donderdag 2 juli 2015 03:06:00 UTC+2 schreef Fluid Dynamics: On Wednesday, July 1, 2015 at 3:54:03 PM UTC-4, Jo

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

2015-07-02 Thread icamts
Hi Pablo, I think you're right. Have a look at flatten source (defn flatten Takes any nested combination of sequential things (lists, vectors, etc.) and returns their contents as a single, flat sequence. (flatten nil) returns an empty sequence. {:added 1.2 :static true} [x] (filter

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 ica...@gmail.com wrote: Hi Pablo, I think you're right. Have a look at flatten source (defn flatten Takes any nested combination of

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 thinking of

{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 https://github.com/Netflix/archaius archaius https://github.com/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: [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 into

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.

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

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

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

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

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

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

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 colin.mailingl...@gmail.com 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