<!-- 
RSS generated by JIRA (4.4#649-r158309) at Wed Jun 19 08:01:17 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/NREPL-37/NREPL-37.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>[NREPL-37] Printing reference returned by clojure.tools.nrepl.server/start-server causes multimethod exception</title>
                <link>http://dev.clojure.org/jira/browse/NREPL-37</link>
                <project id="10022" key="NREPL">tools.nrepl</project>
                        <description>&lt;p&gt;I was accidentally printing the reference returned by start-server by calling it as the final function in my main method, which causes this error:&lt;/p&gt;

&lt;p&gt;java.lang.IllegalArgumentException: Multiple methods in multimethod &apos;print-method&apos; match dispatch value: class clojure.tools.nrepl.server.Server -&amp;gt; interface clojure.lang.IDeref and interface clojure.lang.IRecord, and neither is preferred&lt;br/&gt;
        at clojure.lang.MultiFn.findAndCacheBestMethod(MultiFn.java:136)&lt;br/&gt;
        at clojure.lang.MultiFn.getMethod(MultiFn.java:111)&lt;br/&gt;
        at clojure.lang.MultiFn.getFn(MultiFn.java:119)&lt;br/&gt;
        at clojure.lang.MultiFn.invoke(MultiFn.java:167)&lt;br/&gt;
        at clojure.core$pr_on.invoke(core.clj:3266)&lt;br/&gt;
        at clojure.core$pr.invoke(core.clj:3278)&lt;br/&gt;
        at clojure.lang.AFn.applyToHelper(AFn.java:161)&lt;br/&gt;
        at clojure.lang.RestFn.applyTo(RestFn.java:132)&lt;br/&gt;
        at clojure.core$apply.invoke(core.clj:601)&lt;br/&gt;
        at clojure.core$prn.doInvoke(core.clj:3311)&lt;br/&gt;
        at clojure.lang.RestFn.invoke(RestFn.java:408)&lt;br/&gt;
        at clojure.main$eval_opt.invoke(main.clj:299)&lt;br/&gt;
        at clojure.main$initialize.invoke(main.clj:316)&lt;br/&gt;
        at clojure.main$null_opt.invoke(main.clj:349)&lt;br/&gt;
        at clojure.main$main.doInvoke(main.clj:427)&lt;br/&gt;
        at clojure.lang.RestFn.invoke(RestFn.java:421)&lt;br/&gt;
        at clojure.lang.Var.invoke(Var.java:419)&lt;br/&gt;
        at clojure.lang.AFn.applyToHelper(AFn.java:163)&lt;br/&gt;
        at clojure.lang.Var.applyTo(Var.java:532)&lt;br/&gt;
        at clojure.main.main(main.java:37)&lt;/p&gt;</description>
                <environment></environment>
            <key id="15910">NREPL-37</key>
            <summary>Printing reference returned by clojure.tools.nrepl.server/start-server causes multimethod exception</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                <priority id="4" iconUrl="http://dev.clojure.org/jira/images/icons/priority_minor.gif">Minor</priority>
                    <status id="6" iconUrl="http://dev.clojure.org/jira/images/icons/status_closed.gif">Closed</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="cemerick">Chas Emerick</assignee>
                                <reporter username="vaughnd">Vaughn Dickson</reporter>
                        <labels>
                        <label>bug</label>
                    </labels>
                <created>Thu, 20 Dec 2012 08:05:27 -0600</created>
                <updated>Tue, 26 Feb 2013 04:42:58 -0600</updated>
                    <resolved>Tue, 26 Feb 2013 04:42:58 -0600</resolved>
                            <version>0.2.0-RC1</version>
                                <fixVersion>0.2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="30526" author="cemerick" created="Sat, 2 Feb 2013 07:35:19 -0600"  >&lt;p&gt;The fact that the returned record is also a &lt;tt&gt;clojure.lang.IDeref&lt;/tt&gt; is a temporary compatibility measure, a result of changing to returning a record.&lt;/p&gt;

&lt;p&gt;Adding a print-method implementation for the &lt;tt&gt;Server&lt;/tt&gt; type that explicitly delegates to the &lt;tt&gt;IRecord&lt;/tt&gt; implementation would resolve the problem.&lt;/p&gt;</comment>
                    <comment id="30651" author="cemerick" created="Tue, 26 Feb 2013 04:42:58 -0600"  >&lt;p&gt;Fixed @ &lt;a href=&quot;http://github.com/clojure/tools.nrepl/commit/0f016eb&quot;&gt;http://github.com/clojure/tools.nrepl/commit/0f016eb&lt;/a&gt;&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>