使用clojure和leiningen与IDE [英] Using clojure and leiningen with IDEs

查看:163
本文介绍了使用clojure和leiningen与IDE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将我的项目构建从Ant切换到leiningen,并想知道是否有一个Clojure IDE(intellij,eclipse,netbeans),build和debug按钮仍然可以工作? p>

I'm looking at switching my projects build from Ant to leiningen and wanted to know if there is a Clojure IDE (intellij, eclipse, netbeans) for which the "build" and "debug" buttons will still work?

推荐答案

我有一些运气与La Clojure和IntelliJ IDEA的Leiningen插件。在命令行上创建一个新项目之后,我在IntelliJ中创建了一个新的项目,这个项目在 lein new 中。运行配置脚本路径需要指向core.clj文件,模块设置依赖关系需要将lib目录包含为模块库。

I have had some luck with La Clojure and the "Leiningen" plugin for IntelliJ IDEA. After creating a new project on the command line with lein new, I created a new project in IntelliJ. The Run Configuration Script Path needs to be pointed to the core.clj file, and the Module Settings "Dependencies" need to include the lib directory as a "Module Library."

Leiningen插件提供通常的lein命令,所以您可以直接从IDE(或从外壳)构建您的jar。您可以从IDEA编辑您的project.clj文件,并且运行和调试似乎也是有效的。

The Leiningen plugin offers the usual lein commands, so you can build your jar directly from the IDE (or from the shell). You can edit your project.clj file from IDEA, and the Run and Debug seem to work as well.

BTW,我还发现此屏幕录像非常有助于开始使用La Clojure。

BTW, I also found this screencast very helpful for getting started with La Clojure.

这篇关于使用clojure和leiningen与IDE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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