i use “⌘ F12” (Navigate | File Structure) to get an overview of the current namespace.
@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.
Added a comment here: https://youtrack.jetbrains.com/issue/IDEA-215291#focus=Comments-27-4965809.0-0
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
+1 for Cmd-F12, because it allows narrowing by simply starting to type a substring of the identifier you are looking for
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.
Im on the Jun 8 2021 IntelliJ Ultimate EAP, with Cursive 1.10.3-eap1-2021.2
ah, if I send the expression from the editor, then the error appears.
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.
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.
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.
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.
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.
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
here is a related issue: https://github.com/cursive-ide/cursive/issues/2229
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
Yes, the problem is starting up a REPL in my test is very slow because of a lot of initial setups.
kaocha.repl/run
approach sounds interesting. I’ll try it. Thanks!
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.
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.
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.
I’ve asked in the JetBrains slack how to do this.
Hmm, interesting - have you searched in YouTrack? That sounds like an IntelliJ issue to me.
Nice, thank you :)
anyone knows how to print diffs on IntelliJ when using Nubank Matcher Combinators?