This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-17
Channels
- # adventofcode (25)
- # announcements (2)
- # babashka (16)
- # babashka-sci-dev (16)
- # beginners (213)
- # calva (15)
- # clj-kondo (126)
- # clj-on-windows (1)
- # cljdoc (5)
- # cljfx (1)
- # cljs-dev (6)
- # clojure (230)
- # clojure-europe (38)
- # clojure-nl (3)
- # clojure-uk (3)
- # conjure (10)
- # core-async (15)
- # cursive (33)
- # fulcro (58)
- # hyperfiddle (4)
- # jobs-discuss (1)
- # kaocha (5)
- # lsp (46)
- # meander (3)
- # off-topic (30)
- # polylith (10)
- # portal (9)
- # re-frame (5)
- # reitit (7)
- # releases (2)
- # ring (17)
- # sci (8)
- # shadow-cljs (6)
- # specter (1)
- # sql (1)
- # testing (9)
- # tools-deps (4)
- # vim (12)
when we do #_
before a ^metadata
, cursive highlights as if just the metadata is ignored. But the form will be ignored too.
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?
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.
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)?
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.
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).
So still thrashing a bit. 🙂
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.
@macrobartfast As Colin mentions, I think equivalent behaviours are implemented by cursive so you can setup shortcuts as you wish for them
@macrobartfast you should use something like integrant and call (reset)
to reload everything. It’s in order of milliseconds
@ikitommi gotcha! just about to set up integrant, so that’s perfect.
(I accidentally deleted the message here that @ikitommi was responding to, which was how to reload an app as quickly as possible)
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
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?
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
stuck again in Synchronizing Clojure Deps project
How can I debug why it stuck in Synchronizing Clojure Deps project
?
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?
https://gist.github.com/souenzzo/cc097812768a4e7e0504a9ea36c8d134#file-threaddump-java
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
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?
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.
I'm unable to download JDK 8 in my macbook, any suggestions on how I can download JDK 8?
https://adoptium.net/ and if you use brew you should be able to tap this cask: https://formulae.brew.sh/cask/temurin
(Adoptium used to be AdoptOpenJDK)
are you perhaps on an M1 mac?