<< Back to previous view

[CLJCLR-97] 'Exception Not enough arguments for format definition' deep inside pprint Created: 22/Jan/18  Updated: 23/Jan/18

Status: Open
Project: ClojureCLR
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Minor
Reporter: Jonathan Rees Assignee: David Miller
Resolution: Unresolved Votes: 0
Labels: None
Environment:

Clojure 1.9.0. MacOS 10.12.5



 Description   

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)
nil
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)
nil
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
user>



 Comments   
Comment by Jonathan Rees [ 23/Jan/18 10:08 AM ]

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





Generated at Wed Jan 24 05:41:33 CST 2018 using JIRA 4.4#649-r158309.