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))I'd be interested to learn why you use defs like that
stuff can be eval'd easily in the repl to see the bound value
we keep the test system around too
I do the same, don't really care about editor complaining :)
I see. I occasionally use this trick for debugging but remove it from code I publish.
Thank you
Could using tap> be an alternative?
is there any way to make this configurable? cc @cfleming
There isn't right now, but I'll take a look at how I might make that work better.
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.
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.