在slime中加载新的依赖关系? [英] load a new dependency in slime?

查看:100
本文介绍了在slime中加载新的依赖关系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是emacs和swank-clojure。如何解决以下情况 -

I am using emacs and swank-clojure. How do I resolve the below scenario -


  1. 我已经为project.clj添加了一个新的依赖项。

  2. 我在shell中运行lein deps以获取新的dep。

  3. 我有一个已经开放的slime会话,并希望使用新dep中的一个函数。

如何获取现有的slime会话以加载新的依赖关系?

How do I get the existing slime session to load the new dependency ?

感谢,
Murtaza

Thanks, Murtaza

推荐答案

您应该查看 pomegranate ,其目的是提供类似的

You should have a look at pomegranate which is designed to provide similar if not identical capabilities as the one you describe.

正如 @ gergek 在评论中, leiningen2 附带 pomegranate ,所以如果你在lein2只需在slime中激活类似以下内容REPL:

As pointed out by @gergek in the comments, leiningen2 ships with pomegranate, so that if you're on lein2 you have to just fire something like the following in the slime REPL:

(require '[cemerick.pomegranate :as p])
(p/add-dependencies :coordinates '[[org.clojure/core.logic "0.7.5"]])

查看 add-dependencies docs 了解有关如何使用它的更多信息。

Have a look at add-dependencies docs for more info on how to use it.

这篇关于在slime中加载新的依赖关系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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