問題と対策
cider-jack-in
した時に、以下のようなWARNINGが出た場合の対処です。
WARNING: CIDER's version (0.8.0-snapshot) does not match cider-nrepl's version (not installed)
WARNING: The following required nREPL ops are not supported:
classpath (略)
Please, install (or update) cider-nrepl 0.8.0-snapshot and restart CIDER
CIDERとバージョンの一致するCIDER nREPLEがインストールされていない、とお怒りなので入れて差し上げましょう。
${HOME}/.lein/profiles.clj
に以下を記述します。
:plugins [[cider/cider-nrepl "0.8.0-SNAPSHOT"]]
バージョンをここでは0.8.0-SNAPSHOT
としていますが、お使いのCIDERに合わせて下さい。
オマケ: profiles.clj の設定全体
この記事の投稿次点で、自分の${HOME}/.lein/profiles.clj
は以下の内容となっています。
何かの参考になれば。
{:user {:dependencies [[slamhound "RELEASE"]
[org.clojure/tools.trace "RELEASE"]
[criterium "0.4.3"]]
:aliases {"slamhound" ["run" "-m" "slam.hound"]}
:plugins [[lein-kibit "RELEASE"]
[cider/cider-nrepl "0.8.0-SNAPSHOT"]]}}