Fork me on GitHub
#cider
<
2016-08-02
>
escherize00:08:42

you guys probably know already, but cider-jack-in requires [cider "0.13.0-SNAPSHOT"] instead of [cider "0.13.0"]. This results in an error message when connecting to the repl using cider-jack-in on cider 13. I was able to change it by editing cider-version from "0.13.0-SNAPSHOT" to "0.13.0".

bja01:08:40

@seancorfield: I also just redef cider-version and the function that depends on it:

;; hack to pin the injected version of cider-nrepl
  (defconst cider-version "0.13.0")
  (defvar cider-jack-in-lein-plugins nil
    "List of Leiningen plugins where elements are lists of artifact name and version.")
  (put 'cider-jack-in-lein-plugins 'risky-local-variable t)
  (cider-add-to-alist 'cider-jack-in-lein-plugins
                      "cider/cider-nrepl" (upcase cider-version))

bja01:08:13

err, sorry about that mention, just realized I was responding to something from 8 hours ago

otfrom08:08:40

seancorfield & malabarba I'm just going to port them to clojure.test (there aren't many and some are broken anyway)

malabarba12:08:14

Apparently @bozhidar even opened an issue on the expectations repo, and Jay seems to be in favour (though I'd check again before diving in). https://github.com/jaycfields/expectations/issues/70

radon12:08:58

@escherize: I just added

(setq package-pinned-packages
      '((cider . "melpa-stable")))
to my init.el, which ensures that I get CIDER from melpa-stable rather from melpa. Then [cider/cider-nrepl “0.13.0”] works fine. You can see the rest of my init.el and profiles.clj at https://github.com/raxod502/dotfiles.

seancorfield13:08:44

@malabarba: I'll take a look and see if I can figure out how to make Expectations more clojure.test-compliant, but looking at test.check's compatibility layer it looks like you'd have to define Expectations a different way (with a new macro to create a named var) and I don't think that's worth the effort

seancorfield13:08:23

Expectations automatically clean up when you run them so the whole workflow is different

seancorfield13:08:59

You eval an (expect ...) form, run tests via the key binding, rinse and repeat. As you run each test it disappears, so you only run the tests that you've eval'd each time.

malabarba14:08:44

Yeah, that's why I didn't fix it myself when I was working with expectations a while back. 😕

malabarba14:08:53

The workflow is quite different