You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
observe traceback on the page as well as the labrepl console
The traceback begins as follows:
java.lang.ClassCastException: java.lang.String cannot be cast to clojure.lang.Named
at clojure.core$name__4021.invoke(core.clj:1227)
at labrepl.lab$instructions__1728.invoke(lab.clj:20)
...
The text was updated successfully, but these errors were encountered:
At line 20 of src/labrepl/lab.clj is the following code:
(let [lab-ns (symbol (str "labs." (name lab)))]
The var lab is a String. In SHA: 3149fdd this line is changed from:
(let [lab-ns (symbol (str "labs." (as-str lab)))]
I guess as-str and name behave differently if their argument is a String. Note that only the argument to labrepl.lab.instructions is a String; labrepl.lab.lab-url and labrepl.lab.url all receive Keyword instances.
Here's what happened. I tried labrepl last month, so coming back to it yesterday I first ran git pull to get the latest changes, then lein deps to pull down the latest dependencies. This pulled down clojure-1.2.0-master-20100607.150309-85.jar but left the clojure-1.2.0-master-20100504.200313-67.jar from before lying around. When the repl launched, it must have pulled in the old version since it's first in lexicographical order.
Steps to reproduce:
scripts/repl
The traceback begins as follows:
The text was updated successfully, but these errors were encountered: