This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-10
Channels
- # announcements (10)
- # aws (5)
- # babashka (81)
- # babashka-sci-dev (4)
- # beginners (100)
- # calva (60)
- # clj-kondo (34)
- # clojars (1)
- # clojure (30)
- # clojure-austin (12)
- # clojure-berlin (1)
- # clojure-europe (45)
- # clojure-italy (5)
- # clojure-losangeles (9)
- # clojure-nl (3)
- # clojure-norway (10)
- # clojure-spec (1)
- # clojurescript (8)
- # community-development (2)
- # conjure (5)
- # cursive (10)
- # data-science (2)
- # datalog (1)
- # emacs (4)
- # events (10)
- # fulcro (6)
- # jobs-discuss (8)
- # lambdaisland (3)
- # leiningen (2)
- # luminus (5)
- # membrane (61)
- # off-topic (8)
- # portal (5)
- # releases (20)
- # sci (25)
- # scittle (6)
- # shadow-cljs (25)
- # testing (6)
- # xtdb (11)
What's the chances of Cursive being made to parse templated strings from clojure.core.strint
? We quite often use <<
from that module, and at the moment Cursive tells us that all our bindings which are only used within the templated string are unused.
Hmm, I’m not sure about that, it looks like it’s been incubating since 2012. Can you give me a simple example of something that doesn’t work correctly?
Fair. I’ve been told by @U09LZR36F that it is very much “here be Dragons” territory that is unlikely to ever move into core proper (as, for example, I discovered that
(let [a “foo”]
(<< “test ~{a}”))
interpolates properly, but
(let [a “foo”
tmpl “test ~{a}”]
(<< tmpl))
totally doesn’t), so it might well not be worth your time.
Anyway, if it is, it’s simply a case that Cursive would grey out the a
var in the let
binding as unused in my first (i.e. working) example above, because it doesn’t recognise the ~{a}
within the string arg to <<
as a use of the var.Hey, when doing
(require '[java-time :as jt])
cursive will often complain that jt can’t be resolved and won’t offer completions. Is this happening to anybody else? Do I need to restart something to get it recognized?Is java-time added to your project correctly? Can you see it in External Libraries in your project view?
yes, it’s in project.clj and in external libraries as well EDIT: I can also use the functions from java-time in the REPL
I also get this behavior for org.httpkit.client which I’m refering to as http: http/post cannot be resolved
I made a minimal project for you here: https://github.com/jakuzure/cursive-intellij-unresolved-minimal after creating the new project I was asked to generate stubs, which I did, after that java-time aka jt was resolved correctly and also fixed in my previous project. I still get the same behavior for httpkit though