cursive

helios 2025-02-04T11:16:26.396909Z

How do you recommend I should do to be able to use def inside a deftest and have it be resolved? In my codebase we use this pattern a lot and there are hundreds of warnings in each test ns

(deftest foo
  (def bar 1))

imre 2025-02-04T11:20:23.050569Z

I'd be interested to learn why you use defs like that

helios 2025-02-04T11:21:03.006369Z

stuff can be eval'd easily in the repl to see the bound value

helios 2025-02-04T11:21:09.432569Z

we keep the test system around too

Roman Liutikov 2025-02-04T11:22:50.336749Z

I do the same, don't really care about editor complaining :)

๐Ÿ‘ 2
imre 2025-02-04T11:36:40.952219Z

I see. I occasionally use this trick for debugging but remove it from code I publish.

imre 2025-02-04T11:36:43.664259Z

Thank you

grav 2025-02-09T20:49:56.314479Z

Could using tap> be an alternative?

helios 2025-04-17T09:40:22.132759Z

is there any way to make this configurable? cc @cfleming

cfleming 2025-04-17T18:36:18.363389Z

There isn't right now, but I'll take a look at how I might make that work better.

๐Ÿ™ 1
Jan ล urรกลˆ 2025-02-04T14:36:41.471529Z

Ok, this is so annoying... For some reason, requiring a namespace in ClojureScript doesn't resolve it in the REPL (which itself is annoying), but when I type a character, the import tooltip reappears after some animation. So while I'm trying to write something, the unresolved symbol keeps flashing... I think the flashing is quite new, It probably first appeared after I updated IntelliJ less than a week ago, where, if you have the cursor on an unresolved symbols for long enough, the tooltip appears, that wasn't a thing before that.

cfleming 2025-02-05T20:44:44.127669Z

Just to be clear, you're talking about in the REPL editor itself, right? Yes, it's been a while, I'd have to check, but I think the CLJS REPL editor doesn't support completion from the running REPL, due to limitations in how the REPLs works. However that popup is definitely not expected, I'll check that and fix it.