I see a new play button next to my deftests. If I click it I see several options: Run test, debug test, run with cpu profiler, ... If I click run with cpu profiler, I get a red popup in the corner pointing to the Run tab saying "Error running 'Test user/my-test': Internal error: Don't know how to patch selected configuration" Is running with cpu profiler not currently supported?
Iām not sure about that actually, Iāll check it. Iām hoping to add coverage support, but itās more complicated than I hoped because of how Clojure works.
Actually @abdusalam sorry, I can repro your error, I was trying it with a local REPL not a remote one. Iāll fix that.
Also fixed the indentation, and the marking elements disabled is now more consistent and obvious too.
i just checked out the new EAP build and it looks great! now that the tabs have a close button (X) in them, is there any difference between that button and the one in the toolbar of the REPL tool window? the latter seems redundant now?
Possibly, I think mostly it makes that consistent with the run config action toolbar, although youāre right that itās probably not needed.
copy to scratch file š š š
Thanks @cfleming for fixing the namespaced keywords!! Huge!!
Thanks everyone! @ajarosinski In recent IntelliJ versions that is becoming a complex and subtle area of the code which is also difficult to test automatically - let me know if you see any more weirdness.
For sure I definitely will do. I know how much I appreciate this tool so anyway I can help is great!
@cfleming Not sure if this is the display name bug you mentioned. I updated to 1.10.0-eap2-2020.3 and all my run configs have this red X next to them.
@kenny Did you get that with eap1?
Yes
So thatās a different problem that I talked about in the release notes - the migration which fixes the display name field for existing run configs doesnāt fix IDE-local ones, only project-shared ones.
If you choose edit configurations and open those configs and then apply, that should fix it - the defaulting will be done in the editor.
Whatās the difference between IDE-local and project-shared?
If you look in the REPL run config, thereās a checkbox in the top right - āStore as project fileā. If thatās checked, then the run config will be stored as a separate file in .idea and can be shared in VCS etc.
Ah, got it. Will try this tomorrow. Thanks.
i just tried the new test runner and it works like a charm! this is huge, especially for folks who are used to the traditional tdd approach in intellij idea. i just found a minor bug as shown in the screenshot attached. anyway, thanks a lot!
Thanks! Iām glad itās useful, I already use it all the time. With that screenshot, did the error message persist even after entering a display name, or had that been defaulted when you opened it?
yes and yes: when i created the run configuration, the error message was already there even though the Display Name was already pre-populated with the default value that was the same as that for Name (āUnnamedā). changing the Display Name didnāt make the error message go away.
Hmm, strange, thanks - Iāll try to reproduce that.
I canāt reproduce this. Iāll see if anyone else has the same problem and and see if I can see any pattern in whoās getting it.
thatās strange. iāll go back and try it again. this might just be me nitpicking but the other thing thatās been bugging me about this run configuration window is the way some options are indented. i feel like the labels āHostā, āPort,ā and āContext Moduleā can use more indentation to make it clear that they are the children of the āConnect to serverā radio button (same amount of indentation that the āProjectā label has under the radio button āUse port from nREPL fileā.)
Good idea, Iāll fix that.
Whatās the trick for getting to connect to remote Babashka REPL? The connect process just waits
Have you started babashka with an nrepl server?
https://book.babashka.org/#repl and ctrl-f for Cursive
if that info is out of date, please let me know