Leiningen REPL 仍在使用 Clojure 1.6
Leiningen REPL still using Clojure 1.6
我想使用 Leiningen REPL 中的 Clojure 1.7。
http://clojure.org/downloads 的 Clojure 下载页面让我相信我只需要在 profile.clj 文件中添加 Clojure 1.7 作为依赖项。我在 ~/.lein/profiles.clj
.
中所做的
mike@Mikes-MBP-2:~$ brew upgrade leiningen
Error: leiningen 2.5.1 already installed
mike@Mikes-MBP-2:~$ cat ~/.lein/profiles.clj
{:user
{:dependencies [[org.clojure/clojure "1.7.0"]]
:plugins [[lein-pprint "1.1.1"]]
}
}
mike@Mikes-MBP-2:~$ lein repl
nREPL server started on port 54016 on host 127.0.0.1 - nrepl://127.0.0.1:54016
REPL-y 0.3.5, nREPL 0.2.6
Clojure 1.6.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_31-b13
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
Results: Stored in vars *1, *2, *3, an exception in *e
user=>
我还需要做什么才能让 lein repl
使用 Clojure 1.7?
您总是可以从使用 Clojure 1.7 的项目上下文中 运行 lein repl
。
(defproject sandbox "0.1.0-SNAPSHOT"
:description "A project to run lein repl with a specific clojure version"
:dependencies [[org.clojure/clojure "1.7.0-RC1"]])
我想使用 Leiningen REPL 中的 Clojure 1.7。
http://clojure.org/downloads 的 Clojure 下载页面让我相信我只需要在 profile.clj 文件中添加 Clojure 1.7 作为依赖项。我在 ~/.lein/profiles.clj
.
mike@Mikes-MBP-2:~$ brew upgrade leiningen
Error: leiningen 2.5.1 already installed
mike@Mikes-MBP-2:~$ cat ~/.lein/profiles.clj
{:user
{:dependencies [[org.clojure/clojure "1.7.0"]]
:plugins [[lein-pprint "1.1.1"]]
}
}
mike@Mikes-MBP-2:~$ lein repl
nREPL server started on port 54016 on host 127.0.0.1 - nrepl://127.0.0.1:54016
REPL-y 0.3.5, nREPL 0.2.6
Clojure 1.6.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_31-b13
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
Results: Stored in vars *1, *2, *3, an exception in *e
user=>
我还需要做什么才能让 lein repl
使用 Clojure 1.7?
您总是可以从使用 Clojure 1.7 的项目上下文中 运行 lein repl
。
(defproject sandbox "0.1.0-SNAPSHOT"
:description "A project to run lein repl with a specific clojure version"
:dependencies [[org.clojure/clojure "1.7.0-RC1"]])