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.
Ugh, bummer. I’m away with my family over Easter but will look at this when I’m back.
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?
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
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?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.
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.
@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 🙂
My bad then
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 ...
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.
Ah, ok :thumbsup::skin-tone-2:
many others in this channel have reported the same (this prompt always appears on restart). I’ve personally seen it too