I have reproduced your issue--it is very strange, as on some of my machines 
spyscope works, and others, it fails the same as it does for you. This 
makes me think I am inadvertently relying on an unknown implementation 
detail. I have now observed that even when spyscope gets loaded into 
*data-readers* and is required, it still complains:

user=> (require 'spyscope.core)
nil
user=> *data-readers*
{base64 #'datomic.codec/base-64-literal, db/fn 
#'datomic.function/construct, db/id #'datomic.db/id-literal, spy/t 
#'spyscope.core/trace, spy/d #'spyscope.core/print-log-detailed, spy/p 
#'spyscope.core/print-log}
user=> #spy/d (println "hi")
#<RuntimeException java.lang.RuntimeException: No reader function for tag 
spy/d>

On Saturday, February 1, 2014 8:12:53 AM UTC-5, Dave Tenny wrote:
>
> Java 1.7.0.45
> Lein 2.3.4
> Clojure 1.5.1
>
> I'm trying to use https://github.com/dgrnbrg/spyscope and have put the 
> documented bits in my ~/.lein/profiles.clj
> but cannot get it to work.
>
> {:user {:dependencies [...  [spyscope "0.1.4"] ...    ]
>         :injections [(require 'spyscope.core)
>                      ]}}
>
> But when I do 'lein repl'
> *data-readers* doesn't contain the required mappings to the spy 
> definitions.
>
> If at the REPL I try something like
>
> (set! *data-readers* '{spy/p spyscope.core/print-log})
>
> and then
>
> #spy/p "abc"
>
> I get 
>
> RuntimeException No dispatch macro for: s 
>  clojure.lang.Util.runtimeException (Util.java:219)
>
>
> What's the proper way to make spyscope work for all lein user profiles?
>
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to