cursive

Issues at: https://git.io/cursive-issues
onetom 2021-04-02T14:41:25.142900Z

So, the matching-paren highlighting seems broken again in the upcoming IntelliJ 2021.1 I've added a comment to the ticket which reported the same error 2 years ago: https://youtrack.jetbrains.com/issue/IDEA-215291 Would be good to raise awareness of this problem, because it's super annoying in Clojure, where it's very common to have adjacent parens.

cfleming 2021-04-04T19:49:16.154200Z

Ugh, bummer. I’m away with my family over Easter but will look at this when I’m back.

Adie 2021-04-02T15:21:30.143800Z

I have registered cursive with intellij. I now want to run the tests of one of my clojure services. How do I run the tests using cursive?

Daniel Wellman 2021-04-02T15:48:31.144Z

Hi Adie, you can either: 1. Use the standard IntelliJ “Run Tests…” option if you have a test file open, which will compile the Cursive code then run the test. If your project takes a while to compile, this is a slower option. 2. However, if you have a REPL session running, you can also run the tests via the Tools > REPL > Run Tests … options (there are few to either run the tests in the current namespace, the test function under the cursor, or re-run the last test command). This test output is put in the gutter/margin of the test source file, unlike the first option which uses the standard IntelliJ test runner. It’s very fast and I try to use this mode all the time. Here’s some background on the second option: https://cursive-ide.com/userguide/testing.html

👍 1
mokr 2021-04-02T16:03:19.147400Z

Hi, after a complete reinstall of IntelliJ 2020.3 + Cursive on MacOS, where I deleted all preference, application support and cache directories as well, I struggle with IntelliJ forgetting what I did in my previous session. More specifically I get this dialog:

Unindexed remote maven repositories found.
			The following repositories used in your projects have not been indexed yet: 
			<https://repo1.maven.org/maven2>
			<https://repo.clojars.org>
			If you want to use dependency completion for artifacts in these repositories,
			Open Repositories List, select the required repositories and press the "Update" button
			You can disable this notification.
I scan both indexes and everything looks good. After a restart I get the same message. Any ideas?

mokr 2021-04-03T14:21:19.150500Z

Thanks, good to know that it is not just my setup at least. I saw Tony Kay use this autocomplete in one of his many great videos on Fulcro, so I was hoping to do the same as part of upping my IntelliJ/Cursive skills.

aratare 2021-04-03T14:24:36.150700Z

You can just follow the instruction in the popup and update it manually. I used to use it for a bit, but found it not really useful because it might find a bunch of libraries with the same name, so I’d still have to go and double check the author anyway.

mokr 2021-04-03T18:34:17.151Z

@rextruong Maybe I wasn’t clear enough, but the “I scan indexes and everything looks good” is that manual step. I’ve manually transitioned them from “never” (indexed) to current time several times, but a restart clears it, triggering the popup once again on the next start. So, IntelliJ has a severe case of amnesia it seems 🙂

aratare 2021-04-04T03:16:24.151400Z

My bad then

isak 2021-04-02T16:27:02.149500Z

Is it possible to add custom colors/backgrounds to source code in Cursive/IntelliJ? For example, if I have this keyword in my code, I'd like to change the appearance of text like "mt-2" and "p-2" (Tailwind classes for margin-top and padding) so they are easier to spot.

[:input.mt-1.p-2.border.border-gray-300.rounded-sm.bg-white ...

cfleming 2021-04-04T19:50:56.154500Z

I don’t think there’s any good way to do this, sorry. The issue is that those classes are just part of a normal keyword, even identifying them as hiccup isn’t totally trivial.

isak 2021-04-05T14:59:34.155400Z

Ah, ok :thumbsup::skin-tone-2:

2021-04-02T17:46:14.149800Z

many others in this channel have reported the same (this prompt always appears on restart). I’ve personally seen it too