tools.nrepl

Certain Calendar values don't seem to be able to print

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: 0.2.0
  • Fix Version/s: 0.2.1
  • Component/s: None
  • Labels:
  • Environment:
    Ubuntu 12.10, running through Leiningen 2

Description

If I try to run lein repl outside of a project folder, I get Clojure 1.4.0.
I then run

(println (javax.xml.bind.DatatypeConverter/parseDateTime "2008-07-21T19:17:29"))

which produces

IndexOutOfBoundsException start 26, end 2, s.length() 28 java.lang.AbstractStringBuilder.append (AbstractStringBuilder.java:476)
#inst "2008-07-21T19:17:29.000+01:

Note the absence of a closing '"'.

My apologies in advance if this is impossible to reproduce.

Activity

Hide
Andy Fingerhut added a comment -

I can reproduce this with Clojure 1.4.0 and 1.5.0-RC2 if I do it within "lein2 repl" (I was using Leiningen version 2.0.0-preview10 to reproduce the problem).

If I use "java -cp clojure.jar clojure.main" to start a REPL session, with either Clojure 1.4.0 or 1.5.0-RC2 for clojure.jar, I don't see any problem. I was testing on Mac OS X 10.6.8 with Oracle/Apple JDK 1.6.0_37.

I also don't see this problem if I use Leiningen version 1.7.1, tested with both Clojure 1.4.0 and 1.5.0-RC2.

This appears to be some kind of bad interaction between Leiningen 2.0.0-preview10 and Clojure.

Show
Andy Fingerhut added a comment - I can reproduce this with Clojure 1.4.0 and 1.5.0-RC2 if I do it within "lein2 repl" (I was using Leiningen version 2.0.0-preview10 to reproduce the problem). If I use "java -cp clojure.jar clojure.main" to start a REPL session, with either Clojure 1.4.0 or 1.5.0-RC2 for clojure.jar, I don't see any problem. I was testing on Mac OS X 10.6.8 with Oracle/Apple JDK 1.6.0_37. I also don't see this problem if I use Leiningen version 1.7.1, tested with both Clojure 1.4.0 and 1.5.0-RC2. This appears to be some kind of bad interaction between Leiningen 2.0.0-preview10 and Clojure.
Hide
Andy Fingerhut added a comment -

I also reproduced this issue with the latest version of Leiningen, which is 2.0.0-RC2. Email sent to the Leiningen developer email list so they know about it.

Show
Andy Fingerhut added a comment - I also reproduced this issue with the latest version of Leiningen, which is 2.0.0-RC2. Email sent to the Leiningen developer email list so they know about it.
Chas Emerick made changes -
Field Original Value New Value
Affects Version/s Release 1.4 [ 10040 ]
Affects Version/s Release 1.5 [ 10150 ]
Affects Version/s 0.2.0 [ 10052 ]
Key CLJ-1144 NREPL-38
Project Clojure [ 10010 ] tools.nrepl [ 10022 ]
Hide
Chas Emerick added a comment -

This is an nREPL bug involving an API mismatch between java.io.Writer.write() and java.lang.AbstractStringBuilder.append().

The fix is simple; patch release coming later today.

Show
Chas Emerick added a comment - This is an nREPL bug involving an API mismatch between java.io.Writer.write() and java.lang.AbstractStringBuilder.append(). The fix is simple; patch release coming later today.
Chas Emerick made changes -
Fix Version/s 2.0.1 [ 10155 ]
Hide
Chas Emerick added a comment -

Fixed with b9e930a1.

Will be a part of [org.clojure/tools.nrepl "0.2.1"], to be released later today.

Show
Chas Emerick added a comment - Fixed with b9e930a1. Will be a part of [org.clojure/tools.nrepl "0.2.1"], to be released later today.
Chas Emerick made changes -
Resolution Completed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: