简体   繁体   中英

No application has connected to the REPL server

I am trying to evaluate some Clojure forms in VS Code using the Calva REPL.

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.

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.

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. Once you have the prompt, like you have there (embarrassingly undefined ), try reloading the web page with the application. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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