cursive

Issues at: https://git.io/cursive-issues
cfleming 2020-08-15T00:14:22.064Z

I can’t see how Cursive would ever cause that behaviour. Have you tried disabling the rainbow brackets plugin? Cursive actually has its own rainbow brackets (Preferences | Languages & Frameworks | Clojure | Appearance options | Rainbow parentheses) so you shouldn’t need that.

👍 1
2020-08-15T01:58:19.064300Z

Well this is embarrassing, I had mapped the [ to “wrap with []“… foolish, but I think my thoughts were that this would apply to vims command mode only disabled the idea key mapping and all is well now thanks @thheller & @cfleming

cfleming 2020-08-15T02:46:18.064500Z

No worries, glad it’s working 🙂

2020-08-15T21:21:38.069100Z

[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.

2020-08-16T16:19:39.086100Z

Ah, thank you @cfleming — 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.

salam 2020-08-15T21:36:56.070500Z

what’s the classpath you chose in the run configuration to start the repl?

2020-08-15T21:49:58.070700Z

There was no option to select a classpath. I just picked “Start IDE repl” from the Tools menu.

salam 2020-08-15T21:52:16.073400Z

“IDE repl” in Tools menu? i’m not sure what that is and how it’s configured.

2020-08-15T21:52:54.074500Z

salam 2020-08-15T21:54:00.075700Z

yeah, that might be something excercism-specific.

salam 2020-08-15T21:54:49.076700Z

can you try running the repl using a regular run configuration?

salam 2020-08-15T21:55:37.078100Z

Control + Option + R and Edit Run Configurations.

1
2020-08-15T21:59:26.078400Z

It works! Thank you so much, that has been a big help.

👍 1
2020-08-15T22:00:32.078700Z

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…

👍 1
cfleming 2020-08-15T22:25:47.082900Z

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.