is there a way to make IntelliJ also highlight occurrences of Datalog variables?
I don't believe so. There's nothing special about them as far as Clojure is concerned. They're just regular symbols in a vector.
Right. I could add special handling for symbols starting with ?
, but I’m not sure what the scope should be - current file? Top-level form? I’m also not sure if variables with that naming convention are used in other ways.
Those are my questions as well
afaik ?anything
is a valid Clojure symbol, so i'd say the scope would be the same as any other Clojure symbol
i think core.logic uses this convention as well
you could stop quoting your Datalog queries if you had a def
for each ?thing
🙂
I don't think that would be a good idea
Yes, ?anything
is a valid symbol. But symbols on their own don’t have a scope, the scope is implied by the thing (fn, macro, datalog query, core.logic) using them. I have a similar problem with hiccup support - since everything is data, there’s nothing to say what is a datalog query in the code unless you pass an explicit data structure to a function which is well-known to accept one.
@mike.j.cusack of course, it's a terrible idea 🙂 my point was, it would work because ?these ?are ?just ?symbols
Hi there. I’ve come across some weird behaviour but not sure why it’s happening. So if I start a REPL with cursive when first start Intellij, I get Suppressed exit
with no extra info. lein compile
doesn’t make any difference. But if I run lein repl
in a terminal then exit it, then suddenly cursive will allow me to start a REPL perfectly fine again. Has anyone seen anything like this? Thanks in advance.
What's your repl launch configuration?
Pretty much the standard one
What is it literally
This sort of thing can be caused by lein plugins - are you using any?