This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-09-15
Channels
- # announcements (15)
- # babashka (8)
- # beginners (23)
- # biff (20)
- # calva (6)
- # cider (9)
- # clerk (31)
- # clj-kondo (3)
- # clj-otel (2)
- # clojure (116)
- # clojure-argentina (1)
- # clojure-austin (5)
- # clojure-europe (64)
- # clojure-nl (3)
- # clojure-norway (23)
- # clojure-sweden (40)
- # clojure-uk (1)
- # cursive (16)
- # data-science (2)
- # datahike (8)
- # emacs (3)
- # events (1)
- # hyperfiddle (24)
- # malli (5)
- # off-topic (24)
- # re-frame (9)
- # releases (1)
- # solo-full-stack (25)
- # sql (18)
- # tree-sitter (19)
- # xtdb (10)
Good day!
Is there a way to get symbols navigation/highlight for symbols only kondo knows about?
So the situation is following:
• I have a custom macro, which defines bunch of symbols,
• it cannot be resolve as
ed, as there are no similar oes cursive knows about,
• cursive highlights all of the syms as unresolved
• I added kondo hook describing approximate macroexpansion result (it is (let[x ... y ...] body)
)
• I installed https://github.com/brcosta/clj-extras-plugin
• cursive now does not highlight syms as unresolved, but:
a. placing cursor on symbol within body or declaration (inside macro form) does not highlight it elsewhere in the form
b. neither go-to-definition (cmd+click), nor show-usages work.
I'd like to have at least a working too
Spent too much time on it already, so am hoping for easy-fix :D
So, this sounds more like a question for clj-extras than for Cursive. Cursive unfortunately doesn’t support this yet, but I don’t know how the extras part works. Perhaps you could ask this in #C02UN1B0998.
for some reason (maybe after clojure-lsp install) this hook stopped resolving syms. so for now I abandoned even what i got partially working, and just toned down severity of unresolved syms.
I don't know what the 'Code with me' support is supposed to be like (is it still experimental?), but currently I'm coding with a colleague and copy/paste is broken in the REPL pane - not sure if this is a known issue, or perhaps I just need to update my intellij / plugins (or my colleague does)?
using the arrows keys to navigate text in the REPL output appears to be broken too
I would definitely class the Code with me support as experimental, mostly because I don’t use it myself, and it’s very poorly documented by JetBrains. I’ll test these cases out and see if I can figure them out.
I don't know if this is a Cursive thing or a MacOS or IntelliJ thing but sometimes when I copy and paste, instead of pasting what I just copied it pastes a seemingly arbitrary file path
I’m not sure what’s happening with your system, but you get the strangest errors 😕. I’m not sure about this one either, sorry.
it only happens in IntelliJ and I can't see the pattern yet. Sometimes I have to try a couple of times before it pastes what I copied
hi. I am trying to use deps integration on windows with cursive 1.13.1-eap and I have set env var (in form field labelled deps.clj env vars
) CLOJURE_CLI_ALLOW_HTTP_REPO=1
so that I can use http repos, but I'm still seeing deps error from cursive that http is not supported.
how should I set this env var so that I can use http repositories?
This is because tools.deps doesn’t provide an abstraction for reading environment variables. The env vars in that config are passed to deps.clj itself (so things like CLJ_CONFIG are obeyed) but there doesn’t seem to be a good way to configure this one. I’ll ask over on http://ask.clojure.org.
I’ve asked this here: https://ask.clojure.org/index.php/13300/abstract-env-var-reading-in-tools-deps. Currently there’s no way to do this in Cursive, sorry.
Note there’s a comment (https://ask.clojure.org/index.php/12698/deps-all-pulling-from-http-maven-repos?show=12702#a12702) on the original issue saying Alex would like to know about your use case, since the recommendation is that everything should be HTTPS these days.