如何在`lein repl`运行时重新编译并重新加载Java源代码?

编程入门 行业动态 更新时间:2024-10-22 18:46:49
本文介绍了如何在`lein repl`运行时重新编译并重新加载Java源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个Clojure项目,正在使用leiningen.我还使用tools.namespace在运行REPL时重新加载Clojure代码.如果要在项目中包含Java源代码,可以在REPL运行时重新编译并重新加载它吗?最方便/最动态的方式是什么?我可以这样做,使其与tools.namespace一起正常工作吗?

I have a Clojure project, and I'm using leiningen. I'm also using tools.namespace to reload Clojure code while running a REPL. If I want to include Java source in the project, can I recompile and reload it while the REPL is running? What is the most convenient/dynamic way of doing it? Can I do it so that it works well with tools.namespace?

推荐答案

我在这里回答自己的赏金问题,但是我做了一些工作来解决这个问题:

I'm answering my own bounty here but I did do a bit of work getting this up:

使用 Vinyasa ,

这是一篇博客文章:

在emacs/nrepl中动态重载Java代码

...实际上...有点不起作用了...您必须回到较早的版本才能获得支持.

... actually... it's kinda not working anymore... you have to do back to the earlier versions in order to get the support.

更多推荐

如何在`lein repl`运行时重新编译并重新加载Java源代码?

本文发布于:2023-11-07 11:11:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1566293.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:源代码   加载   如何在   repl   lein

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!