Clojure 类路径 +莱因问题

发布于 2024-11-25 04:51:22 字数 246 浏览 3 评论 0原文

这是一个关于 clojure 类路径的非常具体的问题,lein / emacs

可以说我正在处理一个项目,并且有一个带有 clojure-jack-in 的 repl。我需要向该项目添加新的依赖项,有什么方法可以运行 lein deps 然后能够立即在打开的 repl 中使用下载的 .jar (可能是 repl 命令?)?

现在,每当我需要添加新的依赖项时,我都需要重置 swank/slime 连接,使其在类路径中可见。

谢谢

here is a very specific question re the clojure class path and lein / emacs

lets say I'm working with a project and have a repl with clojure-jack-in. I need to add a new dependency to this project, is there any way to run lein deps and then be able to use the downloaded .jar in the open repl right away (possibly a repl command?)?

right now whenever I need to add a new dependency I need to reset the swank/slime connection for it to become visible in the classpath.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凉城 2024-12-02 04:51:22

我看到三个选项:

  • 使用 Jark 在 JVM 上启动 REPL,可以在运行时处理新的 jar 文件 (http://icylisper.in/jark/index.html)
  • clojure 中的 add-classpath 方法(有时会中断... < a href="http://groups.google.com/group/clojure/browse_thread/thread/43a413ae55ed25d0" rel="nofollow">http://groups.google.com/group/clojure/browse_thread/thread/43a413ae55ed25d0)
  • 编写您自己的代码来添加新的 jar 文件 (http://groups.google.com /group/clojure/browse_thread/thread/0095ea6e918c430e)

I see three options:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文