This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-08
Channels
- # announcements (6)
- # beginners (100)
- # calva (17)
- # cljs-dev (31)
- # cljsrn (2)
- # clojars (3)
- # clojure (137)
- # clojure-australia (1)
- # clojure-europe (41)
- # clojure-gamedev (3)
- # clojure-italy (1)
- # clojure-nl (3)
- # clojure-poland (16)
- # clojure-serbia (7)
- # clojure-taiwan (1)
- # clojure-uk (10)
- # clojurescript (10)
- # cursive (25)
- # data-oriented-programming (4)
- # datomic (26)
- # fulcro (39)
- # graalvm (6)
- # jobs (2)
- # jobs-discuss (2)
- # kaocha (19)
- # klipse (1)
- # leiningen (3)
- # lsp (18)
- # malli (21)
- # meander (26)
- # off-topic (29)
- # pathom (39)
- # polylith (3)
- # practicalli (2)
- # re-frame (11)
- # reitit (8)
- # rewrite-clj (7)
- # sci (11)
- # shadow-cljs (44)
- # sql (8)
- # tools-deps (32)
- # xtdb (3)
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.
@U01NYKKE69G 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?
What is it literally
@U0567Q30W Just two actually: lein-cloverage
and lein-eftest
I wonder if Cloverage might be causing that. Is the project.clj anywhere I can look at, or is it private?
Sure thing. Here it is https://github.com/aratare-jp/epsilon-clj/blob/master/project.clj