如何配置leiningen使用最新的Clojure版本的repl在项目之外启动? [英] How to configure leiningen to use newest Clojure version for repl started outside of project?

查看:141
本文介绍了如何配置leiningen使用最新的Clojure版本的repl在项目之外启动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我为特定项目启动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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆