Fork me on GitHub
#cursive
<
2023-09-15
>
misha08:09:15

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

cfleming02:09:26

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.

cfleming02:09:39

What does your kondo hook look like?

misha19:09:53

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.

Rachel Westmacott10:09:07

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)?

Rachel Westmacott10:09:59

using the arrows keys to navigate text in the REPL output appears to be broken too

cfleming02:09:09

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.

octahedrion10:09:07

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

cfleming02:09:49

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.

octahedrion10:09:09

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

henryw37411:09:29

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?

cfleming02:09:37

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.

cfleming02:09:31

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.

👍 1
cfleming02:09:54

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.