This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
[SOLVED: thanks to salam for the help!] Should Cursive automatically load and run the Clojure hello world project from http://exercism.io without additional setup?
If I “Run tests in current NS in REPL” from hello_world_test.clj
I see Could not locate hello_world__init.class, hello_world.clj or hello_world.cljc on classpath. Please check that namespaces with dashes use underscores in the Clojure file name.
(The docs suggest Cursive should load any dependent namespaces, and the hello-world-test
ns requires the hello-world
namespace.)
If I send hello_world.clj
to the REPL and then “run tests in current NS in REPL” from the test file I see Running tests in hello-world-test
but tests never appear to complete and the forms are not annotated with test results as described in the https://cursive-ide.com/userguide/testing.html.
Running lein test
produces results as expected but obviously does not offer editor integration.
There was no option to select a classpath. I just picked “Start IDE repl” from the Tools menu.
It looks like there is a difference between an “IDE: User” REPL (which Tools → Start IDE REPL generates) and a “Local: User” REPL (which the run configuration starts). I'll dig into the Cursive docs to learn more…
The IDE REPL isn’t documented - you need to have a property (`idea.is.internal=true`) set in order to see it. It opens a REPL on your open IDE instance, which is a totally different environment to your project. It’s mostly useful for me, at least at this stage.
Ah, thank you @U0567Q30W — that explains it. I have the internal flag set to true for my own theme/plugin development and didn't realise it affected Cursive in that way.