简体   繁体   English

没有应用程序连接到 REPL 服务器

[英]No application has connected to the REPL server

I am trying to evaluate some Clojure forms in VS Code using the Calva REPL.我正在尝试使用 Calva REPL 在 VS Code 中评估一些 Clojure 表单。

When I run any of these commands, I get the error: No application has connected to the REPL server. Make sure your JS environment has loaded your compiled ClojureScript code.当我运行这些命令中的任何一个时,我收到错误: No application has connected to the REPL server. Make sure your JS environment has loaded your compiled ClojureScript code. No application has connected to the REPL server. Make sure your JS environment has loaded your compiled ClojureScript code.

It doesn't seem to let me switch namespaces.它似乎不允许我切换命名空间。 Thanks in advance.提前致谢。

在此处输入图片说明

By the comments to the question I am assuming this is a browser project.通过对问题的评论,我假设这是一个浏览器项目。 And by the error message, that it is shadow-cljs.根据错误消息,它是 shadow-cljs。

With shadow-cljs Calva opens up the REPL window a bit prematurely, because we still lack a reliable way to ensure the connection to the ClojureScript application.使用 shadow-cljs Calva 有点过早地打开了 REPL 窗口,因为我们仍然缺乏一种可靠的方法来确保与 ClojureScript 应用程序的连接。 Once you have the prompt, like you have there (embarrassingly undefined ), try reloading the web page with the application.一旦你得到提示,就像你在那里一样(令人尴尬的是undefined ),尝试用应用程序重新加载网页。 You should be able to evaluate something then, and the prompt should get something less undefined.然后你应该能够评估一些东西,并且提示应该得到不那么不确定的东西。

I can recommend joining the #calva channel on the Clojurians Slack , for faster help.我建议您加入Clojurians Slack 上#calva 频道,以获得更快的帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM