cursive

Issues at: https://git.io/cursive-issues
salam 2021-06-16T01:17:53.034900Z

i use “⌘ F12” (Navigate | File Structure) to get an overview of the current namespace.

onetom 2021-06-16T02:18:07.038800Z

@cfleming i was reporting an issue with paren highlighting back in april: https://clojurians.zulipchat.com/#narrow/stream/180378-slack-archive/topic/cursive/near/233632162 i've found the cause of the phenomena! Preferences / Editor / General / Appearance / Use block caret if it's ON, the highlighted matching paren is the unexpected one. if it's OFF, then it works as advertised. i tried to find a related github issue to note this finding there, but i couldn't.

👍 1
onetom 2021-06-17T05:44:38.053200Z

Added a comment here: https://youtrack.jetbrains.com/issue/IDEA-215291#focus=Comments-27-4965809.0-0

onetom 2021-06-16T02:21:19.039100Z

i had this cursive doc page open on my machine for some reason: https://cursive-ide.com/userguide/repl.html and i've noticed that in the animated images, the caret was a bar, not a block. that gave me the idea

onetom 2021-06-16T02:23:15.039400Z

+1 for Cmd-F12, because it allows narrowing by simply starting to type a substring of the identifier you are looking for

onetom 2021-06-16T02:25:33.039600Z

i've pasted the code example in the ticket into one of my freshly opened REPL tool windows and it did not print any exceptions.

onetom 2021-06-16T02:26:54.039800Z

Im on the Jun 8 2021 IntelliJ Ultimate EAP, with Cursive 1.10.3-eap1-2021.2

onetom 2021-06-16T02:29:53.040Z

ah, if I send the expression from the editor, then the error appears.

onetom 2021-06-16T02:41:06.040300Z

there is a Preferences / Editor / General / Auto Import dialog, but it only shows settings for a few languages and Clojure is not on the list. if this style choice ever becomes an option, i would probably expect to find it within this dialog.

indy 2021-06-16T03:05:05.045800Z

This is exactly what I was looking for. Thank you. It would be nice if this can also be made part of Breadcrumb navigation (`Jump to navigation bar`) like in other langs.

shinichy 2021-06-16T05:07:46.048400Z

Is there any way to see the detail of a test failure in REPL? I know I can see them in a tooltip, but it’s a little hassle to navigate to the test code.

onetom 2021-06-17T04:11:40.051100Z

this has been discussed before, but unfortunately there is no way to do that now. what i didn't know though, is that it's slightly easier to get to the test failure if your gutter is on and click the fail-icon there. u don't have to hover and wait at least for the dialog with the link to the diff.

onetom 2021-06-17T04:13:27.051300Z

otherwise, i've hooked up kaocha.repl/run to a REPL command and then assigned it to Cmd-R to conveniently run tests. it was not a great choice of keyboard shortcut because i often restart the REPL accidentally 🙂 but other than that, it's a pretty pleasant workflow.

onetom 2021-06-17T04:14:05.051500Z

i wish i wouldn't need to carry a koacha setup around for every project, but that's the best i could come up so far

onetom 2021-06-17T04:15:14.051700Z

here is a related issue: https://github.com/cursive-ide/cursive/issues/2229

onetom 2021-06-17T04:18:45.052Z

btw, do u know that you can run clojure tests using the same machinery provided to other languages in intellij? u have to create a run configuration for the tests u want to run and wait for your clojure app to start up, so it's slower than a repl-based approach, but it's also cleaner, because u are guaranteed not to have any misleading REPL state affecting your tests. it's documented here: https://cursive-ide.com/userguide/testing.html#test-runner

shinichy 2021-06-17T05:27:24.052600Z

Yes, the problem is starting up a REPL in my test is very slow because of a lot of initial setups.

shinichy 2021-06-17T05:27:54.052800Z

kaocha.repl/run approach sounds interesting. I’ll try it. Thanks!

shinichy 2021-06-17T05:29:32.053Z

I didn’t know that there’s already an issue. Yes, checking a diff is also another pain point. I don’t want to use my mouse to check the test result basically.

cfleming 2021-06-16T05:19:22.048500Z

Primarily because syntax-quoting is mostly used for code, and quoting is usually used for data. However it’s true that often the code isn’t valid, the most egregious case being CLJS macros where there’s no good way to tell if the macro is designed to generate Clojure or CLJS. This is something that I’ve gone back and forth on, and I’m open to persuasion on not marking inside syntax quotes.

cfleming 2021-06-16T05:21:00.048700Z

There’s no option for this at the moment, but I have (somewhat) short-term plans for improving all the namespace rewriting stuff to make it more configurable and just all around better.

👍 2
1
cfleming 2021-06-16T05:21:20.048900Z

I’ve asked in the JetBrains slack how to do this.

cfleming 2021-06-16T05:21:54.049100Z

Hmm, interesting - have you searched in YouTrack? That sounds like an IntelliJ issue to me.

👍 1
indy 2021-06-16T05:45:11.049800Z

Nice, thank you :)

2021-06-16T22:16:37.050400Z

anyone knows how to print diffs on IntelliJ when using Nubank Matcher Combinators?

➕ 3