This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # babashka (18)
- # babashka-sci-dev (42)
- # beginners (84)
- # calva (11)
- # cider (5)
- # clj-kondo (11)
- # cljdoc (70)
- # cljs-dev (34)
- # clojure-europe (1)
- # clojurescript (3)
- # conjure (1)
- # core-async (29)
- # data-oriented-programming (10)
- # emacs (13)
- # fulcro (8)
- # gratitude (2)
- # honeysql (1)
- # introduce-yourself (4)
- # kaocha (10)
- # missionary (8)
- # nrepl (4)
- # off-topic (27)
- # portal (32)
- # releases (11)
- # tools-deps (11)
- # xtdb (19)
This is what I get when trying to run tests. Any ideas what might be causing it?
This particular test looks like this https://pastebin.com/USDuWPCu
; Evaluating file: core_test.clj #'csvdb.core-test/select-test ; Running tests for csvdb.core-test... ; The server does not recognize or cannot perform the 'test-var-query' operation
This error means that the cider nrepl “test” middleware is not loaded.
Sorry for late response. It is a Leiningen project. Regarding test middleware not being loaded, I actually don't know what does it mean besides something related to CIDER. Should I add something to project settings or maybe tweak some VS Code parameters?
Check if your project has some
nrepl dependency. If so, try with removing those and see if it works.
test-var-quary is a new-ish op. So if the project defines some old-ish nrepl and/or cider-nrepl dependencies, maybe they override what Calva specifies on the command line (it is strange why it should, but Leiningen does behave a bit strange around this at times).
I guess it really has something to do with project settings. This project is from 2014 tutorial and probably dependencies there are too outdated (though nothing related to
project.clj ). Anyway, I just checked tests in newly scaffolded project and everything works fine.
Thanks for helping me out! And thanks for Calva, I really like playing with it and everything works so smoothly:)
Thanks! I’m surprised about no nrepl deps. But I vaguely remember something about Leiningen bundling nrepl. Which version of Leiningen are you using?
Oh, now I see. I was using Clojure 1.7.0 in that project and didn't pay attention to terminal output which said:
I changed it to 1.8.0 and now tests work there too. Many thanks to you good sir!
Warning: cider-nrepl requires Clojure 1.8 or greater. Warning: cider-nrepl will not be included in your project.