Re: [ClojureScript] [bug report] :rename-macros is inaccessible do to overly restrictive spec

2017-09-29 Thread Timothy Pratley
groovy https://dev.clojure.org/jira/browse/CLJS-2371 created

On Fri, Sep 29, 2017 at 2:01 AM, David Nolen  wrote:

> Yes please raise an issue in JIRA thanks.
>
> David
>
> On Fri, Sep 29, 2017 at 5:26 AM, Timothy Pratley  > wrote:
>
>> The ClojureScript compiler has code to handle :rename-macros, but it is
>> inaccessible due to an overly restrictive spec:
>>
>> (ns cljs.user
>>   (:require [n.m :refer-macros [a] :rename-macros {a b}]))
>>
>> Could not Analyze src/cljs/user.cljs
>> Only :as, :refer and :rename options supported in :require /
>> :require-macros; offending spec: (power-turtle.m :rename-macros {all all2})
>> at line 1 src/cljs/user.cljs
>>
>> I believe that this form is valid and the intention is to support it.
>> If so please let me know and I can raise an issue in Jira.
>>
>>
>> The alternative form works fine:
>>
>> (ns cljs.user
>>   (:require-macros [n.m :refer [a] :rename {a b}]))
>>
>>
>> Regards,
>> Timothy
>>
>> --
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "ClojureScript" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojurescript+unsubscr...@googlegroups.com.
>> To post to this group, send email to clojurescript@googlegroups.com.
>> Visit this group at https://groups.google.com/group/clojurescript.
>>
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "ClojureScript" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/clojurescript/xNlcmPVoj48/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> Visit this group at https://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


Re: [ClojureScript] [bug report] :rename-macros is inaccessible do to overly restrictive spec

2017-09-29 Thread David Nolen
Yes please raise an issue in JIRA thanks.

David

On Fri, Sep 29, 2017 at 5:26 AM, Timothy Pratley 
wrote:

> The ClojureScript compiler has code to handle :rename-macros, but it is
> inaccessible due to an overly restrictive spec:
>
> (ns cljs.user
>   (:require [n.m :refer-macros [a] :rename-macros {a b}]))
>
> Could not Analyze src/cljs/user.cljs
> Only :as, :refer and :rename options supported in :require /
> :require-macros; offending spec: (power-turtle.m :rename-macros {all all2})
> at line 1 src/cljs/user.cljs
>
> I believe that this form is valid and the intention is to support it.
> If so please let me know and I can raise an issue in Jira.
>
>
> The alternative form works fine:
>
> (ns cljs.user
>   (:require-macros [n.m :refer [a] :rename {a b}]))
>
>
> Regards,
> Timothy
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> Visit this group at https://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


[ClojureScript] [bug report] :rename-macros is inaccessible do to overly restrictive spec

2017-09-28 Thread Timothy Pratley
The ClojureScript compiler has code to handle :rename-macros, but it is 
inaccessible due to an overly restrictive spec:

(ns cljs.user
  (:require [n.m :refer-macros [a] :rename-macros {a b}]))

Could not Analyze src/cljs/user.cljs
Only :as, :refer and :rename options supported in :require / 
:require-macros; offending spec: (power-turtle.m :rename-macros {all all2}) 
at line 1 src/cljs/user.cljs

I believe that this form is valid and the intention is to support it.
If so please let me know and I can raise an issue in Jira.


The alternative form works fine:

(ns cljs.user
  (:require-macros [n.m :refer [a] :rename {a b}]))


Regards,
Timothy

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.