Unable to resolve symbol: fact in this context

63 views
Skip to first unread message

Cato Nano

unread,
Mar 15, 2014, 9:45:59 AM3/15/14
to mi...@googlegroups.com
Hello people,

I have this tiny namespace

(ns playground-rebuild.operations-test
  (:require [midje.sweet :refer :all]
            [clojure.tools.namespace.repl :refer [refresh]]
            [playground-rebuild.operations :refer :all])
  )


(fact (coremult [2 3 4]) => [[4 6] [6 9]])

and at the repl I get

user=> (require 'playground-rebuild.operations-test)
Run `(doc midje)` for Midje usage.

CompilerException java.lang.RuntimeException: Unable to resolve symbol: fact in this context, compiling:(playground_rebuild/operations_test.clj:8:1)
user=>

In my project.clj I have

  :profiles {:dev {:dependencies
                                 [...
                                  ...
                                  ...
                                  [midje "1.6.3"]]}})

How isn't "fact" reachable ?

Thanks

Brian Marick

unread,
May 18, 2014, 6:24:13 PM5/18/14
to mi...@googlegroups.com, cato...@gmail.com
Did you ever figure this out? I wasn't able to reproduce, and then I let it drop out of my consciousness.
> --
> You received this message because you are subscribed to the Google Groups "Midje" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to midje+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--------
Latest book: /Functional Programming for the Object-Oriented Programmer/
https://leanpub.com/fp-oo

Catonano

unread,
May 27, 2014, 5:34:06 AM5/27/14
to Brian Marick, mi...@googlegroups.com
Hey,


2014-05-19 0:24 GMT+02:00 Brian Marick <mar...@exampler.com>:
Did you ever figure this out? I wasn't able to reproduce, and then I let it drop out of my consciousness.

No I didn't sort it out, Sam Ritchie on twitter observed that I didn't get the namespaces correctly so maybe it's that, but I didn't try to fix it, as I finished my exploration anyway.
 
Thanks, though ;-)
Ciao
Reply all
Reply to author
Forward
0 new messages