Re: Prismatic Schema - Why is "both" deprecated?

2016-03-06 Thread JvJ
In this example, one of the schemas is a predicate schema.  What if neither 
of them are?

On Sunday, 6 March 2016 18:48:21 UTC-8, Jason Wolfe wrote:
>
> In place of (s/both long (s/pred odd?)) you can do (s/conditional odd? 
> long), but (s/constrained long odd?) probably provides better error 
> messages (since it validates long before odd?). I think there are some 
> examples in the readme. 
>
> If this isn't what you're looking for, can you please provide some more 
> details of your use case? 
>
> Thanks,
> Jason
>
>
>
> On Sunday, March 6, 2016 at 5:38:35 AM UTC+5:30, JvJ wrote:
>>
>>
>> I've noticed that there is the function "both" in Schema.
>>
>> Both says that it can be replaced by conditional, but I'm not sure 
>> exactly how to go about doing this.
>>
>> Can someone provide an example?
>>
>> Thanks
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Prismatic Schema - Why is "both" deprecated?

2016-03-06 Thread Jason Wolfe
In place of (s/both long (s/pred odd?)) you can do (s/conditional odd? 
long), but (s/constrained long odd?) probably provides better error 
messages (since it validates long before odd?). I think there are some 
examples in the readme. 

If this isn't what you're looking for, can you please provide some more 
details of your use case? 

Thanks,
Jason



On Sunday, March 6, 2016 at 5:38:35 AM UTC+5:30, JvJ wrote:
>
>
> I've noticed that there is the function "both" in Schema.
>
> Both says that it can be replaced by conditional, but I'm not sure exactly 
> how to go about doing this.
>
> Can someone provide an example?
>
> Thanks
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Prismatic Schema - Self-reference in schema definitions

2016-03-06 Thread Jason Wolfe
If I'm understanding correctly, this sounds like a 
`schema.experimental.abstract-map-schema` to me (it's basically shorthand 
for what Bobby suggests) .  There's an example in the readme. 

Best, Jason

On Sunday, March 6, 2016 at 5:28:31 AM UTC+5:30, JvJ wrote:
>
> I've been using Schema, and there's a kind of type definition that I'm 
> having trouble with.  I'm not sure exactly how to describe it, so I'll 
> provide an example.
>
> I'm working on a digital card game in which there are numerous zones that 
> a card may be in.  Each card needs to know which zone it is in, and there 
> may be additional information depending on the zone.
>
> For instance, if a card is in a player's hand, no additional information 
> is required.  However, if the card is on the board, it needs to understand 
> its position on the board.
>
> I have the following definition for zone types:
>
> (def Zone
>   "A schema for referring to the various game zones."
>   (s/enum :Hand
>   :Deck
>   :Board
>   :Field
>   :Discard
>   :Void))
>
> I want to define a different schema type for each of these, and then 
> define a zone spec:
>
> (def ZoneSpec {(required-key :zone-type) Zone
>:data  specified earlier>
> })
>
> I want to ensure that whichever data is provided specified the schema 
> associated with the zone type.
>
> Is there a way to do this?
>
> Thanks.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: in Dire, is it possible to mix the "Erlang" style and the Slingshot integration?

2016-03-06 Thread Laws
If I try to use Slingshot like this: 

(defn- check-that-log-file-exists[]
  (if-not (fs/exists? "/var/log/humongorous")
(slingshot/throw+ {:type :humongorous-api.supervisor/no-log-file 
:message "In start/check-that-log-file-exists, we could not find the log 
file /var/log/humongorous" })))

and this is called from (launch) which is called like this: 

(handle-error java.lang.Object #'start/launch)

(defn start []
  (dire/supervise #'start/launch))

The old rule with Slingshot is that if you wanted to catch everything you 
could catch Object, as the universal catch-all, but it is not working for 
me here. I end up with this in the logs: 

Starting the app
#error {
 :cause clojure.lang.PersistentArrayMap cannot be cast to 
java.lang.Throwable
 :via
 [{:type java.lang.ClassCastException
   :message clojure.lang.PersistentArrayMap cannot be cast to 
java.lang.Throwable
   :at [clj_stacktrace.core$parse_exception invoke core.clj 120]}]
 :trace
 [[clj_stacktrace.core$parse_exception invoke core.clj 120]
  [humongorous_api.supervisor_start$fn__71 doInvoke supervisor_start.clj 16]
  [clojure.lang.RestFn invoke RestFn.java 410]
  [clojure.lang.AFn applyToHelper AFn.java 154]
  [clojure.lang.RestFn applyTo RestFn.java 132]
  [clojure.core$apply invoke core.clj 632]
  [dire.core$fn__2985 invoke core.clj 232]
  [clojure.lang.MultiFn invoke MultiFn.java 238]
  [dire.core$supervised_meta doInvoke core.clj 258]
  [clojure.lang.RestFn invoke RestFn.java 425]
  [clojure.lang.AFn applyToHelper AFn.java 156]
  [clojure.lang.RestFn applyTo RestFn.java 132]
  [clojure.core$apply invoke core.clj 634]
  [dire.core$supervise doInvoke core.clj 266]
  [clojure.lang.RestFn invoke RestFn.java 410]
  [humongorous_api.supervisor_start$start invoke supervisor_start.clj 19]
  [humongorous_api.core$start invoke core.clj 11]
  [humongorous_api.core$_main doInvoke core.clj 24]
  [clojure.lang.RestFn invoke RestFn.java 397]
  [clojure.lang.AFn applyToHelper AFn.java 152]
  [clojure.lang.RestFn applyTo RestFn.java 132]
  [humongorous_api.core main nil -1]]}
humongorous-api is shutting down

The last line is "humongorous-api is shutting down" which is set up here: 

;; Enable command-line invocation
(defn -main [& args]
  (try
(.addShutdownHook (Runtime/getRuntime)
  (Thread.
   #(do (println "humongorous-api is shutting down")
(stop
(start)
(catch Exception e (println e

So... if I use the Erlang style I can not match against Object? I'm trying 
to figure out what mistake I have made. 







On Sunday, March 6, 2016 at 7:38:53 PM UTC-5, Laws wrote:
>
> I am a fan of Michael Drogalis's library Dire:
>
> https://github.com/MichaelDrogalis/dire
>
> And I found I was adding logging to any function I wrote to catch errors, 
> so I wrote a macro that added in the logging: 
>
> (defmacro handle-error [object-to-catch symbol-to-target & args]
>   (let [result-fn (first args)]  
> `(dire/with-handler! ~symbol-to-target
>~object-to-catch
>(fn [e# & args#]
>  (let [error-key# (str ~symbol-to-target " " e#)
>error-message# (str (stack/parse-exception e#) " " e# " " 
> args#)]
>(timbre/log :trace (str error-key# " " error-message#)))
>  ~(if (test/function? result-fn)
> `(~result-fn))
>
> That seemed to work. 
>
> But on a new project, I decided I wanted to use the "Erlang" style in 
> Dire. I thought this would only mean changing: 
>
>  `(dire/with-handler! ~symbol-to-target
>
> to:
>
>  `(dire/with-handler ~symbol-to-target
>
> I am not aware of anything else I need to change. 
>
> I was also hoping to use this with Slingshot, but it seems that is only 
> possible with "with-handler!"?  I tried a bunch of things but I could not 
> figure a way to make this work. 
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


in Dire, is it possible to mix the "Erlang" style and the Slingshot integration?

2016-03-06 Thread Laws
I am a fan of Michael Drogalis's library Dire:

https://github.com/MichaelDrogalis/dire

And I found I was adding logging to any function I wrote to catch errors, 
so I wrote a macro that added in the logging: 

(defmacro handle-error [object-to-catch symbol-to-target & args]
  (let [result-fn (first args)]  
`(dire/with-handler! ~symbol-to-target
   ~object-to-catch
   (fn [e# & args#]
 (let [error-key# (str ~symbol-to-target " " e#)
   error-message# (str (stack/parse-exception e#) " " e# " " 
args#)]
   (timbre/log :trace (str error-key# " " error-message#)))
 ~(if (test/function? result-fn)
`(~result-fn))

That seemed to work. 

But on a new project, I decided I wanted to use the "Erlang" style in Dire. 
I thought this would only mean changing: 

 `(dire/with-handler! ~symbol-to-target
   
to:

 `(dire/with-handler ~symbol-to-target
   
I am not aware of anything else I need to change. 

I was also hoping to use this with Slingshot, but it seems that is only 
possible with "with-handler!"?  I tried a bunch of things but I could not 
figure a way to make this work. 




-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: #'lamina.core. - No implementation of method: :enqueue for class: nil

2016-03-06 Thread Nasko
Thanks for the insight. I am indeed using Compojure for routing and wasn't 
aware it returns nil by default. For reference, here is the 
wrapped-sync-app function along with sync-app which is used to render a 
response from the chat page: 
(defn sync-app [request]
  {:status 200
   :headers {"content-type" "text/html"}
   :body (page)})

(def wrapped-sync-app
  "Wraps the response with static files"
  (-> sync-app
  (wrap-resource "public")
  (wrap-file-info)))Enter code here...



On Sunday, March 6, 2016 at 7:01:17 AM UTC-6, red...@gmail.com wrote:
>
> On 03/05/2016 10:18 PM, Nasko wrote: 
> > I am trying to implement a simple asynchronous chat service using Aleph 
> > and Lamina. However, it looks like the enqueue function coming from 
> > lamina cannot be implemented and causes an exception. This is what my 
> > chat function looks like: 
> > | 
> > (defn chat [ch request] 
> >   "View handler that handles a chat room. If it's not 
> >   a websocket request then return a rendered html response." 
> >   (let [params(:route-paramsrequest) 
> > room   (:room params)] 
> > (if(:websocket request) 
> >   (chat-handler ch room) 
> >   (enqueue ch (wrapped-sync-app request) 
> > | 
> > I don't understand why the value of (wrapped-sync-app request) is nil. 
> > Any feedback would be helpful. 
>
> Hard to say, since you don't give a definition for the wrapped-sync-app 
> function. Some google and it shows up in a few example apps as some kind 
> of ring handler. If you are using compojure (maybe other routing 
> libraries) returning nil is what it does by default if no routes match a 
> give request (as a result of how it determines if a route matches). 
>
> But looking at your subject line, given that error it is likely 'ch' is 
> nil, not the result of calling wrapped-sync-app. I would sprinkle 
> printlns liberally throughout. 
>
> As an aside, your docstring (if you intend it to be a docstring) is in 
> the wrong place. Docstrings go before the argument vector if you want 
> them to be accessible via 'doc' in the repl. 
> https://github.com/jonase/eastwood has a linter that catches this kind 
> of thing. 
>
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Clojure" group. 
> > To post to this group, send email to clo...@googlegroups.com 
>  
> > Note that posts from new members are moderated - please be patient with 
> > your first post. 
> > To unsubscribe from this group, send email to 
> > clojure+u...@googlegroups.com  
> > For more options, visit this group at 
> > http://groups.google.com/group/clojure?hl=en 
> > --- 
> > You received this message because you are subscribed to the Google 
> > Groups "Clojure" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> > an email to clojure+u...@googlegroups.com  
> > . 
> > For more options, visit https://groups.google.com/d/optout. 
>
>
> -- 
> And what is good, Phaedrus, 
> And what is not good— 
> Need we ask anyone to tell us these things? 
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: cljs build goog/base.js is not getting generated properly..

2016-03-06 Thread Sunil S Nandihalli
Thanks Thomas,
I fixed the issue. It was not even recompiling. Like you said, lein clean
was not removing all the files. When I manually deleted the files, I
realized that the cljs files were not even getting compiled. I had
specifying the hook to leiningen.cljsbuild .Thanks again for helping me
through the debugging process.

Regards,
Sunil.

On Sun, Mar 6, 2016 at 8:22 PM, Thomas Heller  wrote:

> Did you lein clean?
>
> Although I'm not sure cljsbuild actually cleans anything.
> Delete resources/public/js/out manually if clean doesn't help.
>
> If that also doesn't help try this
>
> lein repl
> (clojure.java.io/resource "goog/base.js")
>
> That should give you the URL of a base.js inside the closure-library jar.
> If it is the third-party jar something weird is happening on your classpath.
>
>
>
> On Sunday, March 6, 2016 at 3:41:14 PM UTC+1, Sunil Nandihalli wrote:
>>
>> I added all the recommended exclusions and I still see the above issue I
>> mentioned.
>>
>>
>> On Sun, Mar 6, 2016 at 7:03 PM, Sunil S Nandihalli > > wrote:
>>
>>> Thanks Thomas for the response
>>>
>>> when I did
>>>
>>> lein deps :tree | egrep google
>>>
>>> I got
>>>
>>>[com.google.javascript/closure-compiler "v20151216"]
>>>[org.clojure/google-closure-library "0.0-20151016-61277aea"]
>>>  [org.clojure/google-closure-library-third-party
>>> "0.0-20151016-61277aea"]
>>>
>>> the full output is here.
>>>
>>> https://gist.github.com/8801e6554f501acdc4c1
>>>
>>> looks like the google-closure library is recent enough..
>>>
>>> Regards,
>>> Sunil.
>>>
>>>
>>>
>>> On Sun, Mar 6, 2016 at 6:50 PM, Thomas Heller  wrote:
>>>
 That was an issue with old closure library releases but was fixed a
 while ago.

 Try lein clean and make sure there are no conflicting versions being
 used (via lein deps :tree).

 --
 You received this message because you are subscribed to the Google
 Groups "Clojure" group.
 To post to this group, send email to clo...@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+u...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 ---
 You received this message because you are subscribed to the Google
 Groups "Clojure" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to clojure+u...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: cljs build goog/base.js is not getting generated properly..

2016-03-06 Thread Thomas Heller
Did you lein clean?

Although I'm not sure cljsbuild actually cleans anything. 
Delete resources/public/js/out manually if clean doesn't help.

If that also doesn't help try this

lein repl
(clojure.java.io/resource "goog/base.js")

That should give you the URL of a base.js inside the closure-library jar. 
If it is the third-party jar something weird is happening on your classpath.



On Sunday, March 6, 2016 at 3:41:14 PM UTC+1, Sunil Nandihalli wrote:
>
> I added all the recommended exclusions and I still see the above issue I 
> mentioned.
>
>
> On Sun, Mar 6, 2016 at 7:03 PM, Sunil S Nandihalli  > wrote:
>
>> Thanks Thomas for the response
>>
>> when I did 
>>
>> lein deps :tree | egrep google 
>>
>> I got 
>>
>>[com.google.javascript/closure-compiler "v20151216"]
>>[org.clojure/google-closure-library "0.0-20151016-61277aea"]
>>  [org.clojure/google-closure-library-third-party 
>> "0.0-20151016-61277aea"]
>>
>> the full output is here.
>>
>> https://gist.github.com/8801e6554f501acdc4c1
>>
>> looks like the google-closure library is recent enough..
>>
>> Regards,
>> Sunil.
>>
>>
>>
>> On Sun, Mar 6, 2016 at 6:50 PM, Thomas Heller > > wrote:
>>
>>> That was an issue with old closure library releases but was fixed a 
>>> while ago.
>>>
>>> Try lein clean and make sure there are no conflicting versions being 
>>> used (via lein deps :tree).
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to clo...@googlegroups.com 
>>> 
>>> Note that posts from new members are moderated - please be patient with 
>>> your first post.
>>> To unsubscribe from this group, send email to
>>> clojure+u...@googlegroups.com 
>>> For more options, visit this group at
>>> http://groups.google.com/group/clojure?hl=en
>>> ---
>>> You received this message because you are subscribed to the Google 
>>> Groups "Clojure" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to clojure+u...@googlegroups.com .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: cljs build goog/base.js is not getting generated properly..

2016-03-06 Thread Sunil S Nandihalli
I added all the recommended exclusions and I still see the above issue I
mentioned.


On Sun, Mar 6, 2016 at 7:03 PM, Sunil S Nandihalli <
sunil.nandiha...@gmail.com> wrote:

> Thanks Thomas for the response
>
> when I did
>
> lein deps :tree | egrep google
>
> I got
>
>[com.google.javascript/closure-compiler "v20151216"]
>[org.clojure/google-closure-library "0.0-20151016-61277aea"]
>  [org.clojure/google-closure-library-third-party
> "0.0-20151016-61277aea"]
>
> the full output is here.
>
> https://gist.github.com/8801e6554f501acdc4c1
>
> looks like the google-closure library is recent enough..
>
> Regards,
> Sunil.
>
>
>
> On Sun, Mar 6, 2016 at 6:50 PM, Thomas Heller  wrote:
>
>> That was an issue with old closure library releases but was fixed a while
>> ago.
>>
>> Try lein clean and make sure there are no conflicting versions being used
>> (via lein deps :tree).
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@googlegroups.com
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: cljs build goog/base.js is not getting generated properly..

2016-03-06 Thread Sunil S Nandihalli
Thanks Thomas for the response

when I did

lein deps :tree | egrep google

I got

   [com.google.javascript/closure-compiler "v20151216"]
   [org.clojure/google-closure-library "0.0-20151016-61277aea"]
 [org.clojure/google-closure-library-third-party
"0.0-20151016-61277aea"]

the full output is here.

https://gist.github.com/8801e6554f501acdc4c1

looks like the google-closure library is recent enough..

Regards,
Sunil.



On Sun, Mar 6, 2016 at 6:50 PM, Thomas Heller  wrote:

> That was an issue with old closure library releases but was fixed a while
> ago.
>
> Try lein clean and make sure there are no conflicting versions being used
> (via lein deps :tree).
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: cljs build goog/base.js is not getting generated properly..

2016-03-06 Thread Thomas Heller
That was an issue with old closure library releases but was fixed a while ago.

Try lein clean and make sure there are no conflicting versions being used (via 
lein deps :tree).

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: #'lamina.core. - No implementation of method: :enqueue for class: nil

2016-03-06 Thread Kevin Downey
On 03/05/2016 10:18 PM, Nasko wrote:
> I am trying to implement a simple asynchronous chat service using Aleph
> and Lamina. However, it looks like the enqueue function coming from
> lamina cannot be implemented and causes an exception. This is what my
> chat function looks like:
> |
> (defn chat [ch request]
>   "View handler that handles a chat room. If it's not
>   a websocket request then return a rendered html response."
>   (let [params(:route-paramsrequest)
> room   (:room params)]
> (if(:websocket request)
>   (chat-handler ch room)
>   (enqueue ch (wrapped-sync-app request)
> |
> I don't understand why the value of (wrapped-sync-app request) is nil.
> Any feedback would be helpful.

Hard to say, since you don't give a definition for the wrapped-sync-app
function. Some google and it shows up in a few example apps as some kind
of ring handler. If you are using compojure (maybe other routing
libraries) returning nil is what it does by default if no routes match a
give request (as a result of how it determines if a route matches).

But looking at your subject line, given that error it is likely 'ch' is
nil, not the result of calling wrapped-sync-app. I would sprinkle
printlns liberally throughout.

As an aside, your docstring (if you intend it to be a docstring) is in
the wrong place. Docstrings go before the argument vector if you want
them to be accessible via 'doc' in the repl.
https://github.com/jonase/eastwood has a linter that catches this kind
of thing.

> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to clojure+unsubscr...@googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.


-- 
And what is good, Phaedrus,
And what is not good—
Need we ask anyone to tell us these things?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: cljs build goog/base.js is not getting generated properly..

2016-03-06 Thread Sunil S Nandihalli
Please find my project.clj here
https://gist.github.com/f3bcb03fdbbee75b56df
Thanks,
Sunil

On Sun, Mar 6, 2016 at 6:18 PM, Sunil S Nandihalli <
sunil.nandiha...@gmail.com> wrote:

> Hi Everybody,
> when I compile my cljs project, I find that goog/base.js has the contents
>
> // This is a dummy file to trick genjsdeps into doing the right thing.
> // TODO(nicksantos): fix this
>
> because of this my compiled js file is having trouble finding the goog 
> namespace.
>
> What is causing this to happen? I don't see any code like I do when I compile 
> some of the sample cljs projects which are available online?
>
> Can somebody please help?
>
> Thanks,
>
> Sunil.
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


cljs build goog/base.js is not getting generated properly..

2016-03-06 Thread Sunil S Nandihalli
Hi Everybody,
when I compile my cljs project, I find that goog/base.js has the contents

// This is a dummy file to trick genjsdeps into doing the right thing.
// TODO(nicksantos): fix this

because of this my compiled js file is having trouble finding the goog
namespace.

What is causing this to happen? I don't see any code like I do when I
compile some of the sample cljs projects which are available online?

Can somebody please help?

Thanks,

Sunil.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


#'lamina.core. - No implementation of method: :enqueue for class: nil

2016-03-06 Thread Nasko
I am trying to implement a simple asynchronous chat service using Aleph and 
Lamina. However, it looks like the enqueue function coming from lamina 
cannot be implemented and causes an exception. This is what my chat 
function looks like:
(defn chat [ch request]
  "View handler that handles a chat room. If it's not
  a websocket request then return a rendered html response."
  (let [params (:route-params request)
room   (:room params)]
(if (:websocket request)
  (chat-handler ch room)
  (enqueue ch (wrapped-sync-app request)
I don't understand why the value of (wrapped-sync-app request) is nil. Any 
feedback would be helpful. 

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: a project template containing clj, cljs cljc files

2016-03-06 Thread Sunil S Nandihalli
Thanks Colin, Torsten and Robert.
After looking around a little more I did realise that cljc files can just
be added without a place for the generated like in cljx. I did actually
endup checking out reagent template. I think I now have a reasonable idea
and I am making progress. Thanks everybody for the help.

Regards,
Sunil.

On Sun, Mar 6, 2016 at 3:03 PM, Colin Yates  wrote:

> Not sure about now (as it has been a while since I used it but yes, I
> always find `lein ancient` a good first step :-).
>
> On 6 March 2016 at 09:32, Robert Levy  wrote:
> > Reagent-template may have improved recently, but the last time I checked,
> > about 5-6 months ago, I found it to be seriously misleading and outdated
> in
> > a number of ways in its opinions on the state of the art for
> clojurescript
> > tooling.  The template I found to be the best was the figwheel template.
> >
> > On Sun, Mar 6, 2016 at 1:14 AM, Colin Yates 
> wrote:
> >>
> >> Hi Sunil, I always use
> >> https://github.com/reagent-project/reagent-template. Not sure it
> >> creates cljc out of the box but all you need to do is create a new
> >> directory for your .cljc files and add that to the project
> >> source-path.
> >>
> >> On 6 March 2016 at 05:25, Sunil S Nandihalli <
> sunil.nandiha...@gmail.com>
> >> wrote:
> >> > Hi everybody,
> >> >  I am trying to port an old project which uses cljx plugin and reagent
> >> > to
> >> > use cljc and reader-conditionals. I was wondering if somebody can
> share
> >> > a
> >> > simple template which has clj, cljs and cljc files in it?
> >> >
> >> > Thanks and regards,
> >> > Sunil.
> >> >
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Clojure" group.
> >> > To post to this group, send email to clojure@googlegroups.com
> >> > Note that posts from new members are moderated - please be patient
> with
> >> > your
> >> > first post.
> >> > To unsubscribe from this group, send email to
> >> > clojure+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> > http://groups.google.com/group/clojure?hl=en
> >> > ---
> >> > You received this message because you are subscribed to the Google
> >> > Groups
> >> > "Clojure" group.
> >> > To unsubscribe from this group and stop receiving emails from it, send
> >> > an
> >> > email to clojure+unsubscr...@googlegroups.com.
> >> > For more options, visit https://groups.google.com/d/optout.
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Clojure" group.
> >> To post to this group, send email to clojure@googlegroups.com
> >> Note that posts from new members are moderated - please be patient with
> >> your first post.
> >> To unsubscribe from this group, send email to
> >> clojure+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >> http://groups.google.com/group/clojure?hl=en
> >> ---
> >> You received this message because you are subscribed to the Google
> Groups
> >> "Clojure" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an
> >> email to clojure+unsubscr...@googlegroups.com.
> >> For more options, visit https://groups.google.com/d/optout.
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Clojure" group.
> > To post to this group, send email to clojure@googlegroups.com
> > Note that posts from new members are moderated - please be patient with
> your
> > first post.
> > To unsubscribe from this group, send email to
> > clojure+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/clojure?hl=en
> > ---
> > You received this message because you are subscribed to the Google Groups
> > "Clojure" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to clojure+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 

Re: a project template containing clj, cljs cljc files

2016-03-06 Thread Colin Yates
Not sure about now (as it has been a while since I used it but yes, I
always find `lein ancient` a good first step :-).

On 6 March 2016 at 09:32, Robert Levy  wrote:
> Reagent-template may have improved recently, but the last time I checked,
> about 5-6 months ago, I found it to be seriously misleading and outdated in
> a number of ways in its opinions on the state of the art for clojurescript
> tooling.  The template I found to be the best was the figwheel template.
>
> On Sun, Mar 6, 2016 at 1:14 AM, Colin Yates  wrote:
>>
>> Hi Sunil, I always use
>> https://github.com/reagent-project/reagent-template. Not sure it
>> creates cljc out of the box but all you need to do is create a new
>> directory for your .cljc files and add that to the project
>> source-path.
>>
>> On 6 March 2016 at 05:25, Sunil S Nandihalli 
>> wrote:
>> > Hi everybody,
>> >  I am trying to port an old project which uses cljx plugin and reagent
>> > to
>> > use cljc and reader-conditionals. I was wondering if somebody can share
>> > a
>> > simple template which has clj, cljs and cljc files in it?
>> >
>> > Thanks and regards,
>> > Sunil.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Clojure" group.
>> > To post to this group, send email to clojure@googlegroups.com
>> > Note that posts from new members are moderated - please be patient with
>> > your
>> > first post.
>> > To unsubscribe from this group, send email to
>> > clojure+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/clojure?hl=en
>> > ---
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Clojure" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to clojure+unsubscr...@googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@googlegroups.com
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: a project template containing clj, cljs cljc files

2016-03-06 Thread Colin Yates
Quite right - they don't need to live under their own directory. Other
than for libraries however, I do find the /clj, /cljc, /cljs structure
quite pleasing and clean.

On 6 March 2016 at 09:17, Torsten Uhlmann  wrote:
> Hi,
>
> I'm using a Chestnut based template in my project and it was quiet easy to
> add cljc support. I never used cljx bevor so I didn't know how hard or easy
> it would be.
>
> I read that cljc files do not have to live in their own source path but can
> hang around the other files. For my setup I choose to put them into a
> separate folder anyway. To add that I added it to the global :source-paths
> in my project.clj:
>
> :source-paths ["src/clj" "src/cljs" "src/cljc" "dev"]
>
> Then I added it to the :source-path of cljsbuild and uberjar. Here's the
> uberjar definition as an example, which also contains one cljsbuild conf:
>
> :uberjar {:source-paths ^:replace ["src/clj" "src/cljc"]
>   :hooks [leiningen.cljsbuild leiningen.sass
> minify-assets.plugin/hooks]
>   :env {:production true}
>   :aot :all
>   :omit-source true
>   :cljsbuild {:jar true
>   :builds {:app
> {:source-paths ^:replace ["src/cljs"
> "src/cljc"]
>  :compiler {
> :optimizations :advanced
> :pretty-print false}})
>
>
> Hope that helps,
> Torsten.
>
> Sunil S Nandihalli  schrieb am So., 6. März 2016
> um 06:25 Uhr:
>>
>> Hi everybody,
>>  I am trying to port an old project which uses cljx plugin and reagent to
>> use cljc and reader-conditionals. I was wondering if somebody can share a
>> simple template which has clj, cljs and cljc files in it?
>>
>> Thanks and regards,
>> Sunil.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@googlegroups.com
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: a project template containing clj, cljs cljc files

2016-03-06 Thread Robert Levy
Reagent-template may have improved recently, but the last time I checked,
about 5-6 months ago, I found it to be seriously misleading and outdated in
a number of ways in its opinions on the state of the art for clojurescript
tooling.  The template I found to be the best was the figwheel template.

On Sun, Mar 6, 2016 at 1:14 AM, Colin Yates  wrote:

> Hi Sunil, I always use
> https://github.com/reagent-project/reagent-template. Not sure it
> creates cljc out of the box but all you need to do is create a new
> directory for your .cljc files and add that to the project
> source-path.
>
> On 6 March 2016 at 05:25, Sunil S Nandihalli 
> wrote:
> > Hi everybody,
> >  I am trying to port an old project which uses cljx plugin and reagent to
> > use cljc and reader-conditionals. I was wondering if somebody can share a
> > simple template which has clj, cljs and cljc files in it?
> >
> > Thanks and regards,
> > Sunil.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Clojure" group.
> > To post to this group, send email to clojure@googlegroups.com
> > Note that posts from new members are moderated - please be patient with
> your
> > first post.
> > To unsubscribe from this group, send email to
> > clojure+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/clojure?hl=en
> > ---
> > You received this message because you are subscribed to the Google Groups
> > "Clojure" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to clojure+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: a project template containing clj, cljs cljc files

2016-03-06 Thread Torsten Uhlmann
Hi,

I'm using a Chestnut based template in my project and it was quiet easy to
add cljc support. I never used cljx bevor so I didn't know how hard or easy
it would be.

I read that cljc files do not have to live in their own source path but can
hang around the other files. For my setup I choose to put them into a
separate folder anyway. To add that I added it to the global :source-paths
in my project.clj:

:source-paths ["src/clj" "src/cljs" "src/cljc" "dev"]

Then I added it to the :source-path of cljsbuild and uberjar. Here's the
uberjar definition as an example, which also contains one cljsbuild conf:

:uberjar {:source-paths ^:replace ["src/clj" "src/cljc"]
  :hooks [leiningen.cljsbuild leiningen.sass minify-assets.plugin/hooks]
  :env {:production true}
  :aot :all
  :omit-source true
  :cljsbuild {:jar true
  :builds {:app
{:source-paths ^:replace ["src/cljs" "src/cljc"]
 :compiler {
:optimizations :advanced
:pretty-print false}})


Hope that helps,
Torsten.

Sunil S Nandihalli  schrieb am So., 6. März
2016 um 06:25 Uhr:

> Hi everybody,
>  I am trying to port an old project which uses cljx plugin and reagent to
> use cljc and reader-conditionals. I was wondering if somebody can share a
> simple template which has clj, cljs and cljc files in it?
>
> Thanks and regards,
> Sunil.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: a project template containing clj, cljs cljc files

2016-03-06 Thread Colin Yates
Hi Sunil, I always use
https://github.com/reagent-project/reagent-template. Not sure it
creates cljc out of the box but all you need to do is create a new
directory for your .cljc files and add that to the project
source-path.

On 6 March 2016 at 05:25, Sunil S Nandihalli  wrote:
> Hi everybody,
>  I am trying to port an old project which uses cljx plugin and reagent to
> use cljc and reader-conditionals. I was wondering if somebody can share a
> simple template which has clj, cljs and cljc files in it?
>
> Thanks and regards,
> Sunil.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Clojure beginner: IF statement error!

2016-03-06 Thread Bryan Maass
Welcome to Clojure Renata!

Since you're familiar with lisp but not the Clojure idioms, you may want to 
take a scan through the clojure style guide 

.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.