ClojureScript

(ns 'foo) throws REPL into infinite loop

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

At a ClojureScript REPL (Rhino or browser-connected), accidentally quoting the argument to ns yields a neverending stream of error messages:

ClojureScript:cljs.user> (ns 'whoops)

ClojureScript:(quote whoops)> clojure.lang.Cons cannot be cast to clojure.lang.Symbol
ClojureScript:(quote whoops)> clojure.lang.Cons cannot be cast to clojure.lang.Symbol
ClojureScript:(quote whoops)> clojure.lang.Cons cannot be cast to clojure.lang.Symbol
ClojureScript:(quote whoops)> clojure.lang.Cons cannot be cast to clojure.lang.Symbol
...

Activity

Hide
Craig Brozefsky added a comment -

Ignrore my previous comment, got confused by my own emacs. 8^)

Show
Craig Brozefsky added a comment - Ignrore my previous comment, got confused by my own emacs. 8^)
Hide
Craig Brozefsky added a comment -

I resolved this by putting an assertion in the parse method for 'ns, which ensures that the name value is a symbol. I'll attach a patch, but I don't have my contributors agreement in place yet. I put this patch in the public domain if that helps.th

Show
Craig Brozefsky added a comment - I resolved this by putting an assertion in the parse method for 'ns, which ensures that the name value is a symbol. I'll attach a patch, but I don't have my contributors agreement in place yet. I put this patch in the public domain if that helps.th
Hide
Craig Brozefsky added a comment -

Placed in the public domain. I am putting together my CA now.

Show
Craig Brozefsky added a comment - Placed in the public domain. I am putting together my CA now.
Hide
David Nolen added a comment -

Thanks!

Show
David Nolen added a comment - Thanks!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: