如何在Leiningen和LightTable中更改Clojure版本? [英] How do you change Clojure version in Leiningen and LightTable?

查看:67
本文介绍了如何在Leiningen和LightTable中更改Clojure版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在LightTable中的repl中键入(clojure-version)时,将得到"1.5.1"作为输出.有什么办法可以升级到1.6.0?

When I type (clojure-version) into my repl in LightTable, I get "1.5.1" as output. Is there any way to upgrade to 1.6.0?

我假设它是从Leiningen(在我的计算机上为2.3.4)中提取Clojure版本的,该版本现存有1.5.1.如何确保Leiningen和LightTable都使用了最新版本的Clojure?我在Google周围搜索,找不到任何明确的答案.

I am assuming that it is drawing the Clojure version from Leiningen (2.3.4 on my machine), which is stocked with 1.5.1 out of the box. How can I make sure that both Leiningen and LightTable are using the most recent version of Clojure? I have googled around and can't find any clear answers.

我确实找到了这个SO问题,但这并没有专门解决我的问题.我可以调用像"lein update"命令那样的命令来自动执行此过程,以及哪个LightTable可以识别并拾取该命令,还是这是一厢情愿的想法?

I did find this SO question, but it didn't address my problem specifically. Is there like a "lein update" command I can call that automates this process, and which LightTable will recognize and pick up, or is this wishful thinking?

推荐答案

要升级您的Leiningen版本,请运行lein upgrade,并在询问是否要继续时键入'Y'.这将自动将您的Leiningen升级到最新的稳定版本.在撰写本文时,已使用Clojure 1.6.0.

To upgrade your Leiningen version, run lein upgrade, and type 'Y' when asked if you want to continue. This will automatically upgrade your Leiningen to the latest stable release. At the time of writing this used Clojure 1.6.0.

要升级项目的Clojure版本,请在project.clj中查找[org.clojure/clojure]依赖项,然后将版本号更改为所需的版本.

To upgrade your project's version of Clojure, look in your project.clj for the [org.clojure/clojure] dependency, and change the version number to the desired version.

这篇关于如何在Leiningen和LightTable中更改Clojure版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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