Thanks Andy. Actually it looks like
CLJ-1232<http://dev.clojure.org/jira/browse/CLJ-1232>is the exact
problem in Clojure (linked from
TANAL-24 <http://dev.clojure.org/jira/browse/TANAL-24>).


On 9 May 2014 00:48, Andy Fingerhut <[email protected]> wrote:

> Forgot to mention, the type tag should work without having to import it
> into the require'ing namespace if you fully qualify it where the tag is
> used.
>
> Andy
>
>
> On Thu, May 8, 2014 at 5:47 AM, Andy Fingerhut 
> <[email protected]>wrote:
>
>> This issue has been discovered before, at least in the context of the
>> tools.analyzer library, and there was an ensuing discussion on the
>> clojure-dev email list linked in the comments of this ticket:
>>
>>     http://dev.clojure.org/jira/browse/TANAL-24
>>
>> I do not recall whether there was a Clojure ticket filed for it or not.
>>
>> Andy
>>
>>
>> On Wed, May 7, 2014 at 9:55 PM, Colin Fleming <
>> [email protected]> wrote:
>>
>>> Hi all,
>>>
>>> I just came across a case with AOT compilation that I haven't seen
>>> before. I have the following code:
>>>
>>> (defn clojurescript? [element]
>>>   (or (.isKindOf (psi/language element)
>>> (ClojurescriptLanguage/getInstance))
>>>       (.isKindOf (psi/language element) (CljxLanguage/getInstance))))
>>>
>>> psi/language looks like this:
>>>
>>> (defn language ^Language [^PsiElement element]
>>>   (.getLanguage element))
>>>
>>> This gives me the following error when compiling:
>>>
>>> Caused by: java.lang.IllegalArgumentException: Unable to resolve
>>> classname: Language
>>>     at clojure.lang.Compiler$HostExpr.tagToClass(Compiler.java:1060)
>>>     at clojure.lang.Compiler$InvokeExpr.getJavaClass(Compiler.java:3567)
>>>     at
>>> clojure.lang.Compiler$InstanceMethodExpr.<init>(Compiler.java:1393)
>>>     at clojure.lang.Compiler$HostExpr$Parser.parse(Compiler.java:952)
>>>     at clojure.lang.Compiler.analyzeSeq(Compiler.java:6560)
>>>
>>> I can get rid of this error importing Language into the original
>>> namespace. But I didn't expect this - does this mean that an import is
>>> required for the tag type of any function used in a particular namespace?
>>> Does this also apply to argument tags?
>>>
>>> Thanks,
>>> Colin
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to [email protected]
>>> Note that posts from new members are moderated - please be patient with
>>> your first post.
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> 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 [email protected].
>>> 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 [email protected]
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected].
> 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 [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to