<!-- 
RSS generated by JIRA (4.4#649-r158309) at Wed May 22 22:28:27 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/CLJ-178/CLJ-178.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>[CLJ-178] Reloading core.clj from REPL fails with print-method exception</title>
                <link>http://dev.clojure.org/jira/browse/CLJ-178</link>
                <project id="10010" key="CLJ">Clojure</project>
                        <description>&lt;p&gt;Example REPL session:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;(in-ns &apos;clojure.core)
(def source-file &lt;span class=&quot;code-quote&quot;&gt;&quot;/path/to/clojure/src/clj/clojure/core.clj&quot;&lt;/span&gt;)
(load-string (slurp source-file))
&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt;

Result:
&amp;lt;pre&amp;gt;&amp;lt;code&amp;gt;
java.lang.IllegalArgumentException: No method in multimethod &apos;print-method&apos; &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; dispatch value: class clojure.lang.Var
Exception in thread &lt;span class=&quot;code-quote&quot;&gt;&quot;main&quot;&lt;/span&gt; java.lang.IllegalArgumentException: No method in multimethod &apos;print-method&apos; &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; dispatch value: class java.lang.&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt;
        at clojure.lang.MultiFn.getFn(MultiFn.java:115)
        at clojure.lang.MultiFn.invoke(MultiFn.java:161)
        at clojure.core$pr_on__1315.invoke(Unknown Source)
        at clojure.core$pr__1318.invoke(Unknown Source)
        at clojure.lang.AFn.applyToHelper(AFn.java:173)
        at clojure.lang.RestFn.applyTo(RestFn.java:137)
        at clojure.core$apply__183.doInvoke(Unknown Source)
        at clojure.lang.RestFn.invoke(RestFn.java:428)
        at clojure.core$print__1332.doInvoke(Unknown Source)
        at clojure.lang.RestFn.invoke(RestFn.java:413)
        at clojure.core$printf__2285.doInvoke(Unknown Source)
        at clojure.lang.RestFn.invoke(RestFn.java:428)
        at clojure.main$repl_prompt__6713.invoke(main.clj:41)
        at clojure.main$repl__6737.doInvoke(main.clj:199)
        at clojure.lang.RestFn.invoke(RestFn.java:426)
        at clojure.main$repl_opt__6777.invoke(main.clj:251)
        at clojure.main$main__6812.doInvoke(main.clj:338)
        at clojure.lang.RestFn.invoke(RestFn.java:402)
        at clojure.lang.Var.invoke(Var.java:355)
        at clojure.lang.AFn.applyToHelper(AFn.java:171)
        at clojure.lang.Var.applyTo(Var.java:476)
        at clojure.main.main(main.java:37)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="13575">CLJ-178</key>
            <summary>Reloading core.clj from REPL fails with print-method exception</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                        <status id="6" iconUrl="http://dev.clojure.org/jira/images/icons/status_closed.gif">Closed</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="-1">Unassigned</assignee>
                                <reporter username="-1">None</reporter>
                        <labels>
                    </labels>
                <created>Mon, 24 Aug 2009 18:40:00 -0500</created>
                <updated>Tue, 28 Sep 2010 15:34:00 -0500</updated>
                    <resolved>Tue, 28 Sep 2010 15:34:00 -0500</resolved>
                                            <fixVersion>Approved Backlog</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="23131" author="importer" created="Tue, 28 Sep 2010 15:34:00 -0500"  >&lt;p&gt;Converted from &lt;a href=&quot;http://www.assembla.com/spaces/clojure/tickets/178&quot;&gt;http://www.assembla.com/spaces/clojure/tickets/178&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="23132" author="importer" created="Tue, 28 Sep 2010 15:34:00 -0500"  >&lt;p&gt;stu said: Core is special, and it may be that this is not possible in general (across all combinations of source/compilation that could be extant on the classpath). Here&apos;s what I get with today&apos;s master:&lt;/p&gt;


&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;java.lang.IllegalArgumentException: Can&apos;t define method not in interfaces: nth (gvec.clj:83)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="23133" author="importer" created="Tue, 28 Sep 2010 15:34:00 -0500"  >&lt;p&gt;stu said: Notes:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Moving print-initialized to the top of core.clj does not fix this problem&lt;/li&gt;
	&lt;li&gt;You can avoid this problem by putting the clojure src and classes directories (and not the compiled clojure.jar on your classpath), and compiling only the java bits&lt;/li&gt;
	&lt;li&gt;Disregard my previous comment, that was local weirdness in my environment.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I am ok with the workaround but if there is an easy fix let&apos;s make it.&lt;/p&gt;</comment>
                    <comment id="23134" author="importer" created="Tue, 28 Sep 2010 15:34:00 -0500"  >&lt;p&gt;richhickey said: works in 1.3 master&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </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>