<!-- 
RSS generated by JIRA (4.4#649-r158309) at Sat May 25 05:45:05 CDT 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://dev.clojure.org/jira/si/jira.issueviews:issue-xml/CLJS-480/CLJS-480.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Clojure JIRA</title>
    <link>http://dev.clojure.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>4.4</version>
        <build-number>649</build-number>
        <build-date>25-07-2011</build-date>
    </build-info>

<item>
            <title>[CLJS-480] *cljs-data-readers* is bound to *data-readers* inconsistently</title>
                <link>http://dev.clojure.org/jira/browse/CLJS-480</link>
                <project id="10040" key="CLJS">ClojureScript</project>
                        <description>&lt;p&gt;It looks like &lt;tt&gt;&amp;#42;cljs-data-readers&amp;#42;&lt;/tt&gt; is not being bound to &lt;tt&gt;&amp;#42;data-readers&amp;#42;&lt;/tt&gt; where it should be.&lt;/p&gt;

&lt;p&gt;At a minimum, &lt;tt&gt;cljs.repl/load-stream&lt;/tt&gt; does not.  The practical effect of this instance is that e.g. &lt;tt&gt;(load-file &quot;some/cljs/file.cljs&quot;)&lt;/tt&gt; will fail if that file or any other contains a user-defined literal tag.  Similar behaviour exists elsewhere, e.g. &lt;tt&gt;(load-namespace &apos;some.cljs.ns)&lt;/tt&gt; will not load a namespace that contains user-defined tags (I &lt;em&gt;think&lt;/em&gt; that one is due to &lt;tt&gt;&amp;#42;cljs-data-readers&amp;#42;&lt;/tt&gt; not being bound in the analyzer).&lt;/p&gt;

&lt;p&gt;This is related to &lt;a href=&quot;http://dev.clojure.org/jira/browse/CLJS-479&quot; title=&quot;load-file in REPL improperly qualifies current-namespace ::keywords&quot;&gt;CLJS-479&lt;/a&gt; insofar as it&apos;s another symptom of ClojureScript loading code in subtly different ways in multiple places.&lt;/p&gt;

&lt;p&gt;I&apos;m happy to do either of:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;submit issues+patches fixing issues as I encounter them, or&lt;/li&gt;
	&lt;li&gt;attempt a more significant refactoring that sets up (hopefully) one and only one place where ClojureScript reads code (i.e. uses &lt;tt&gt;LispReader&lt;/tt&gt;) so that behaviour can be consistent&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;I&apos;m somewhat hesitant re: (2) insofar as the specific requirements of the compiler and analyzer and REPL may be divergent in ways that I&apos;m not yet aware of, but it seems like it&apos;s worth a shot.&lt;/p&gt;</description>
                <environment></environment>
            <key id="16036">CLJS-480</key>
            <summary>*cljs-data-readers* is bound to *data-readers* inconsistently</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                <priority id="3" iconUrl="http://dev.clojure.org/jira/images/icons/priority_major.gif">Major</priority>
                    <status id="1" iconUrl="http://dev.clojure.org/jira/images/icons/status_open.gif">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="-1">Unassigned</assignee>
                                <reporter username="cemerick">Chas Emerick</reporter>
                        <labels>
                    </labels>
                <created>Fri, 1 Mar 2013 15:44:22 -0600</created>
                <updated>Tue, 21 May 2013 10:06:43 -0500</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="31103" author="bendlas" created="Fri, 17 May 2013 15:10:29 -0500"  >&lt;p&gt;Attached patch 0001 binds &lt;b&gt;data-readers&lt;/b&gt; in cljs.compiler/parse-ns.&lt;/p&gt;

&lt;p&gt;This allows the compiler to run, even if files with reader tags are already compiled.&lt;/p&gt;

&lt;p&gt;This in turn allows multiple test compilations to be brought back, which I&apos;ll submit as part of a patch for an additional debugging flag, if nobody beats me to it.&lt;/p&gt;

&lt;p&gt;I think this won&apos;t fix load-file &lt;img class=&quot;emoticon&quot; src=&quot;http://dev.clojure.org/jira/images/icons/emoticons/help_16.gif&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;, but after the hotfix we should probably look for the proper place in the compiler to bind &lt;b&gt;data-readers&lt;/b&gt;.&lt;/p&gt;</comment>
                    <comment id="31105" author="bendlas" created="Fri, 17 May 2013 17:25:23 -0500"  >&lt;p&gt;Patch 0002 is my overhaul for the test script.&lt;br/&gt;
Since it&apos;s a test case for patch 0001, I think it&apos;s justifiable on this ticket.&lt;/p&gt;

&lt;p&gt;Note: On my machine, with SpiderMonkey 185, the test case (not (integer? 1e+308)) fails. It probably doesn&apos;t have to do anything with the removed -n flag (there is no js -n omm), I just wanted to mention it.&lt;/p&gt;</comment>
                    <comment id="31126" author="dnolen" created="Tue, 21 May 2013 10:06:43 -0500"  >&lt;p&gt;Please move the test script patch to a different ticket. Thanks.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11995" name="0001-CLJS-480-bind-data-readers-in-parse-ns.patch" size="883" author="bendlas" created="Fri, 17 May 2013 15:10:29 -0500" />
                    <attachment id="11996" name="0002-Bring-back-multiple-test-compilations-and-overhaul-o.patch" size="2798" author="bendlas" created="Fri, 17 May 2013 17:25:23 -0500" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                                                                            </customfields>
    </item>
</channel>
</rss>