Unable to evaluate functions in Cursor output.calva-repl
Hi, I am new to calva and clojure so let me know if I am missing details!
I am using cursor and having no issues jacking in and loading files but i am unable to run anything in the output.calva-repl window. If I type something and hit enter, it acts like this is a normal text edit and nothing is evaluated. Is there some setting I need to edit?
Hi! Thanks for reaching out.
I am thinking it could be a Ux issue. If Calva is configured to send evaluation results to somewhere else than the repl window, then you may just be missing them. The getting started project, as well as the mini project that Calva creates have configuration that sends output to the Output Terminal and also they do not open the repl prompt window automatically.
A thing is that generally with Clojure, it is more effective to evaluate things from the project source files. And use (comment ...) forms for explorative code. These forms are called Rich Comment Forms, because Rich Hickey is known for working like that and because it makes these forms very rich.
So, some questions to know more about what is (not) going on:
- Does evaluations in the source files work? (things like Evaluate Current Form, and Evaluate Top Level Form).
- Do you find the evaluation results somewhere else when you evaluate in the repl window? There is a command Calva: Show/Open the result output destination to reveal the currently configured result output destination.
This is ultimately a matter of preference, but: I recommend having Calva configured to show results in the Output Terminal. I also recommend to not bother with the REPL Window, and instead use the source files for evaluating code.