AccelerationNet / cl-csv

A common lisp library providing easy csv reading and writing
Other
116 stars 22 forks source link

Attempting to iterate on two CSV files in parallel signals an error #43

Closed dfmorrison closed 9 months ago

dfmorrison commented 3 years ago

This is cl-csv version 1.0.6, running in SBCL version 2.0.10, on Ubuntu Linux 20.04, on an Intel machine.

With the attached CSV files, running

(iter (for (x y) in-csv #P"numbers.csv")
      (for (u v) in-csv #P"letters.csv")
      (collect (list x u y v)))

results in the following error

Iterate, in (WITH *SEPARATOR* = (OR NIL *SEPARATOR*)):
Duplicate variable: *SEPARATOR*
   [Condition of type SIMPLE-ERROR]

numbers.csv letters.csv

bobbysmith007 commented 3 years ago

Thank you for reporting this bug!

I'ld love to get to this, but I havent booted up lisp in a year or so. I will accept / merge patches and am open to other maintainers.

bobbysmith007 commented 3 years ago

It is likely that I should be using a let block instead of a with-block clause