hiredman / clojure-dependency-grapher

script reads the ns forms from clojure files in a directory and writes out a graph of dependences
MIT License
15 stars 7 forks source link

Error parsing clojure-contrib #1

Open dmiller opened 15 years ago

dmiller commented 15 years ago

Running dep against the clojure-contrib files, get this error:

java.lang.RuntimeException: java.lang.ClassCastException: clojure.lang.PersistentVector cannot be cast to clojure.lang.Named (NO_SOURCE_FILE:0)

I traced this to get-required being called on the ns form coming from command_line.clj:

(ns clojure.contrib.command-line (:require (clojure.contrib [seq-utils :as su])) (:use (clojure.contrib [str-utils :only (str-join)])))

I'm guessing get-required is not expecting to see the vector with the :as.

hiredman commented 15 years ago

ok, I made some changes and pushed, ran to completion on my local contrib, if it works for you I will close.