在Vscode中的Clojure,Calva与编译路径混在一起?
因此,我通过Lein,测试和运行设置了一个项目,正常工作。我在VSCODE(安装CALVA)中打开它,并且在运行相同的测试时:Lein Run Test
我获得c:\ users \ felix \ appData \ local \ local \ temp \ clojure-323906518265182638120769。 EDN
因此,当我用Calva打开Vscode的项目时,有些东西使Lein突然在我的本地temp文件夹中寻找.clj文件。我该如何停止在其他地方停止查看,为什么在我在Vscode中打开它之前可以很好地运行它?
So I setup a project with Lein, test and run, works fine. I open it in VSCode (where Calva is installed) and when running the same test: lein run test
I get C:\Users\felix\AppData\Local\Temp\clojure-3239065182638120769.edn
So there is something when I open the project in VSCode with Calva that makes Lein suddenly look for the .clj files in my Local Temp folder. How can I make it stop looking elsewhere, why could it run it fine before I opened it in VSCode?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
lein test
就是实现这一点的方法,这里有一篇关于 leiningen 测试过程的精彩文章:https://medium.com/helpshift-engineering/the-convoluted-magic-of-leiningen-test-selectors-2eb6c452dfcf另一个很棒的事情是你可以在 calva 中运行测试!
https://calva.io/test-runner/
lein test
is the way to do it, here's a great write up on leiningen's test process: https://medium.com/helpshift-engineering/the-convoluted-magic-of-leiningen-test-selectors-2eb6c452dfcfAnother awesome thing is you can just run the tests in calva!
https://calva.io/test-runner/