Welcome! Please see the About page for a little more info on how this works.

0 votes
in Printing by

My first time submitting a bug. I didn't understand Jira very well; it asked me which project and I couldn't figure out the right project (I assumed ClojureCLR because the pprint issues seem to be tagged 'CLR', but I don't know if ClojureCLR = CLR or even what CLR stands for) and I couldn't figure out if the bug had already been reported (every search seemed to turn up lots of results that were not relevant, didn't include all my search terms). And I didn't see any "Read this before submitting a bug report!!" page like I'd expect for a project of this size. So my apologies if I got this wrong.

Expected behavior:

`
user> (use 'clojure.pprint)
user> (with-pprint-dispatch code-dispatch

     (write '(ns bleh
               (:refer-clojure :only [])
               (:require [blah :refer :all]))
            :pretty true))

(ns bleh
(:refer-clojure :only [])
(:require [blah :refer :all]))
nil
user>
`

Actual behavior:

`
user> (use 'clojure.pprint)
user> (with-pprint-dispatch code-dispatch

     (write '(ns bleh
               (:refer-clojure :only [])
               (:require [blah :refer :all]))
            :pretty true))

Exception Not enough arguments for format definition clojure.pprint/next-arg (cl_format.clj:93)
(ns
`

3 Answers

0 votes
by

Comment made by: jar629

Another similar situation: try pretty printing (ns) - you get a stack overflow.

0 votes
by

Comment made by: dmiller

This behavior is consistent with ClojureJVM.
That doesn't mean it is correct.
However, I prefer errors that originate with ClojureJVM be fixed there first and then migrate over to ClojureCLR as I update to their patches.
I am inquiring about transferring this over. If there is no direct way to transfer, I will post a JIRA issue on this with them.

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-2344 (reported by alex+import)
...