cursive

Issues at: https://git.io/cursive-issues
robert-stuttaford 2021-03-08T06:30:21.138100Z

is there a way to make IntelliJ also highlight occurrences of Datalog variables?

mikejcusack 2021-03-08T14:28:16.140700Z

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.

cfleming 2021-03-08T20:30:03.141700Z

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.

mikejcusack 2021-03-08T20:34:24.141900Z

Those are my questions as well

robert-stuttaford 2021-03-09T10:27:39.144500Z

afaik ?anything is a valid Clojure symbol, so i'd say the scope would be the same as any other Clojure symbol

robert-stuttaford 2021-03-09T10:27:57.144700Z

i think core.logic uses this convention as well

robert-stuttaford 2021-03-09T10:28:28.144900Z

you could stop quoting your Datalog queries if you had a def for each ?thing 🙂

mikejcusack 2021-03-09T19:33:18.150400Z

I don't think that would be a good idea

cfleming 2021-03-09T19:57:20.150600Z

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.

✅ 2
robert-stuttaford 2021-03-10T07:04:08.153300Z

@mike.j.cusack of course, it's a terrible idea 🙂 my point was, it would work because ?these ?are ?just ?symbols

aratare 2021-03-08T09:50:45.140500Z

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.

mikejcusack 2021-03-08T14:29:09.140900Z

What's your repl launch configuration?

aratare 2021-03-08T14:31:11.141100Z

Pretty much the standard one

mikejcusack 2021-03-08T14:31:25.141300Z

What is it literally

cfleming 2021-03-08T20:20:11.141500Z

This sort of thing can be caused by lein plugins - are you using any?