Fork me on GitHub
#cursive
<
2021-12-17
>
souenzzo13:12:10

when we do #_ before a ^metadata, cursive highlights as if just the metadata is ignored. But the form will be ignored too.

sb15:12:45

If I use remote repl connection (nrepl) configuration, that is much-much faster (init phase/ mount lib) than when I start as local “Run with Leiningen”. Is that normal? or do I need to add extra params?

cfleming05:12:07

Do you mean the REPL startup? That’s because if you use a remote connection, it’s connecting to a server which is already started, so that doesn’t include any of the startup time before the REPL is ready.

macrobartfast16:12:31

Using cursive for a bit in Intellij… is there a way to get C-c C-c and C-c C-e to work like in Emacs (for sending form under point and before point to REPL, respectively)?

R.A. Porter16:12:10

I can't answer that precise question, but IJ itself has a set of emacs keybindings that you could switch to. If you did, it'd probably make your overall editor experience feel a bit more familiar; likewise, it would also probably change many of the Cursive-specific bindings.

macrobartfast16:12:24

Thank you for replying! I did try the Emacs bindings… it didn’t seem to enable C-c C-c, for instance (which is my usual way of evaluating the form under the point).

macrobartfast16:12:34

So still thrashing a bit. 🙂

Colin P. Hill16:12:50

You should be able to add whatever binding you want for whatever command you want. IntelliJ supports two-stroke sequences, so C-c C-c and C-c C-e should both be doable.

Daniel Stephens16:12:30

@macrobartfast As Colin mentions, I think equivalent behaviours are implemented by cursive so you can setup shortcuts as you wish for them

ikitommi16:12:56

@macrobartfast you should use something like integrant and call (reset) to reload everything. It’s in order of milliseconds

macrobartfast16:12:30

@ikitommi gotcha! just about to set up integrant, so that’s perfect.

macrobartfast16:12:49

(I accidentally deleted the message here that @ikitommi was responding to, which was how to reload an app as quickly as possible)

souenzzo17:12:11

my cursive always loses its "ignore directory" configuration and stuck trying to index .shadow-cljs and cljs-generated files 😞 I need to wait until the index finish to edit this configuration and make it ignore the dirs

cfleming05:12:37

When you say it always loses it, do you mean that it gets overwritten on a project sync? If you mark your directory then go to the lein or deps toolwindow and hit refresh, does it lose it then?

souenzzo12:12:36

Hello This morning I removed all my project files, did a clean git clone (we do not commit any of node_modules or .shadow-cljs files) Also, removed all my intellij plugins, removed .cache and .local/share/JetBrains directiries So I did a "fresh start" of the intellij with my project still, i couldn't open the project I was using this project with cursive/intellij for ~6 months now, without any problems There is others developers, with linux/mac in this project too, all them with intellij/cursive It stuck in Synchronizing Clojure Deps project with the messae Reading projects\n Reading appstream-model The project is a "monorepo", where there is a projects folder with ~20 clojure projects, all them with a deps.edn, many of them using git and local/root Here my logs https://gist.github.com/souenzzo/cc097812768a4e7e0504a9ea36c8d134

souenzzo17:12:37

stuck again in Synchronizing Clojure Deps project How can I debug why it stuck in Synchronizing Clojure Deps project ?

souenzzo17:12:48

there is no CPU activity

souenzzo17:12:01

if I click in x button, it stuck in Stopping - Synchronizin Clojure D...

souenzzo17:12:17

this is really annoying

cfleming05:12:44

Ugh, sorry, that does sound painful. Can you get a thread dump of the IDE when it’s stuck synchronising to see where it’s blocked?

souenzzo15:12:51

it is nice that I can get the intellij threaddump from intellij profile tab https://gist.github.com/souenzzo/cc097812768a4e7e0504a9ea36c8d134#file-switch-to-clojure-cli-java

souenzzo15:12:07

i switched from tools.deps directly to tools.deps CLI, the WAITING stacktrace chagend, but seems to be the same issue. Which clojure cli command do cursive execute? I can run it directly?

souenzzo15:12:11

I downgraded tools.deps directly 0.11.935 and now it is working again. Recap: • my cli version is 1.10.3.1020. it stuck. stacktrace in the git • using tools.deps 0.12.x directly stuck. stracktrace in the git • using tools.deps 0.11.x works If you want a complete thread dump, or if you want me to do some other debug thing to understand better my issue, I'm open to do it.

cfleming05:12:45

Oh, thanks, it might be an issue with new t.d.a versions, I’ll try to repro.

Fudge18:12:33

I'm unable to download JDK 8 in my macbook, any suggestions on how I can download JDK 8?

R.A. Porter18:12:04

https://adoptium.net/ and if you use brew you should be able to tap this cask: https://formulae.brew.sh/cask/temurin

R.A. Porter18:12:44

(Adoptium used to be AdoptOpenJDK)

Lennart Buit21:12:14

are you perhaps on an M1 mac?

cfleming05:12:56

I find it easiest to use IntelliJ to do this. Open any project, then File-&gt;Project Structure. Select SDKs in the list on the left, and press +. Select “Download JDK” then you can choose your distribution, architecture and version easily.

👍 1