speclj "2.7.0" vs "2.6.1" compilation in nrepl

89 views
Skip to first unread message

Paul Dumais

unread,
May 11, 2013, 6:58:11 PM5/11/13
to spe...@googlegroups.com
I'm having difficulty using speclj in nrepl emacs. I'm not sure why there is a difference between 2.6.1 and 2.7.0. I can compile:

(ns change-counter.core-spec
  (:use [speclj.core]
        [change-counter.core]))

(describe "a test"
  (it "FIXME, I fail."
    (should true)))

  ok under the 2.6.1, but when I try this with 2.7.0 I get the following error:

CompilerException java.lang.ClassNotFoundException: speclj.components, compiling:(/home/paul/change-counter/spec/change_counter/core_spec.clj:5:1)

lein spec works fine however.

Is there some namespace magic that is happening in the lein plugin?

spa...@8thlight.com

unread,
May 13, 2013, 9:23:54 AM5/13/13
to spe...@googlegroups.com
Hi Paul,

Could you try updating your project.clj to use Speclj 2.7.1? It looks like there was recently an update to the vigilant runner which appears to be related.


Thanks!
Sandro

Micah Martin

unread,
May 13, 2013, 10:27:19 AM5/13/13
to spe...@googlegroups.com
Version 2.7.x includes some rather significant changes to support ClojureScript.  Among these changes are removing require's from speclj.core.  I thought this was a benign change since all the requirements would be pulled in by speclj.main when you run the specs.  But after reading your issue, I see this can be a problem.

I'll be releasing 2.7.2 today which will add the require's back for the Clojure version.

--
You received this message because you are subscribed to the Google Groups "speclj" group.
To unsubscribe from this group and stop receiving emails from it, send an email to speclj+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Micah Martin

unread,
May 13, 2013, 10:38:08 AM5/13/13
to spe...@googlegroups.com
2.7.2 is released.

Let me know if you still experience any problems.

Micah
Reply all
Reply to author
Forward
0 new messages