如何配置 leiningen 以使用最新的 Clojure 版本进行项目外启动的 repl? [英] How to configure leiningen to use newest Clojure version for repl started outside of project?
问题描述
当我为特定项目启动 clojure repl 时,leiningen 足以在具体的 project.clj 文件中指定正确的 clojure 版本,如此处.但是当我在项目外启动 repl 时,旧版本就会启动.就我而言,旧版本是 1.5.1,我想升级到 1.6.0.这里已提议不有效的解决方案,但在下面的评论中说在lieingen 版本2.1 中问题已解决.我使用的是 leiningen 的 2.3.4 版本,但建议的解决方案对我不起作用.
When I start clojure repl for specific project, for leiningen is enough to specify correct clojure version in the concrete project.clj file as described here. But when I start repl outside the project then the older version is started. In my case the older version is 1.5.1 and I want to upgrade to 1.6.0. Here has proposed not working solution, but in the comments bellow is said that in lieingen version 2.1 the problem is resolved. I'm with version 2.3.4 of leiningen but the proposed solution doesn't work for me.
推荐答案
according to technomancy on IRC: "repls outside projects are hard coded
to lein's version of clojure"
来源:https://github.com/technomancy/leiningen/issues/1035#issuecomment-35927505
这篇关于如何配置 leiningen 以使用最新的 Clojure 版本进行项目外启动的 repl?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!