This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-07
Channels
- # aleph (4)
- # announcements (7)
- # arachne (1)
- # beginners (138)
- # calva (5)
- # cider (1)
- # clara (14)
- # clj-kondo (1)
- # cljsrn (2)
- # clojars (4)
- # clojure (247)
- # clojure-dev (33)
- # clojure-europe (3)
- # clojure-italy (71)
- # clojure-losangeles (6)
- # clojure-romania (6)
- # clojure-spain (11)
- # clojure-uk (17)
- # clojurescript (95)
- # core-async (2)
- # cursive (19)
- # datomic (7)
- # duct (27)
- # figwheel (1)
- # graalvm (22)
- # juxt (7)
- # kaocha (8)
- # leiningen (1)
- # luminus (7)
- # lumo (4)
- # off-topic (38)
- # reagent (4)
- # reitit (11)
- # shadow-cljs (30)
- # spacemacs (42)
- # tools-deps (103)
- # xtdb (5)
Back in a situation where switching between basically any project in Cursive causes all the symbols to be unresolved 😞
log has these:
2019-08-07 16:52:40,923 [3644447] INFO - il.indexing.FileBasedIndexImpl - Rebuild requested for index ClojureSymbolMeta
java.lang.Throwable
at com.intellij.util.indexing.FileBasedIndex.requestRebuild(FileBasedIndex.java:78)
at cursive.intentions.resolve$rebuild_all_indexes_BANG_.invoke(resolve.clj:142)
at clojure.lang.Var.invoke(Var.java:383)
at cursive.api.DelayedFn.invoke(DelayedFn.java:36)
at cursive.settings.ClojureProjectResolveSettings$loadState$1.run(ClojureResolveSettings.kt:95)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2019-08-07 16:52:41,068 [3644592] INFO - il.indexing.FileBasedIndexImpl - Rebuild requested for index ClojureKeywordDefinition
java.lang.Throwable
at com.intellij.util.indexing.FileBasedIndex.requestRebuild(FileBasedIndex.java:78)
at cursive.intentions.resolve$rebuild_all_indexes_BANG_.invoke(resolve.clj:142)
at clojure.lang.Var.invoke(Var.java:383)
at cursive.api.DelayedFn.invoke(DelayedFn.java:36)
at cursive.settings.ClojureProjectResolveSettings$loadState$1.run(ClojureResolveSettings.kt:95)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
I had that happen for a while (not sure why it stopped), and just restart (no invalidate) would help
@U055NJ5CC That’s a platform issue. A fix has been developed, and is possibly in the new 2019.2.1 build, although I’m waiting on JetBrains to confirm that.
It’s not in the new build 😞. But will hopefully be in the next one - it’s still waiting for sign-off inside JetBrains.
i'm new to cursive, coming from vim+fireplace, and i'm looking to do some breakpoint debugging. are there any tutorials for getting that to work? I have intellij and cursive working, i can run a test from the cursive repl. how do i make cursive "pause" at a line and step through execution?
It’s not as quickly digestible as proper documentation, sorry, but it’s the closest thing right now.
@UEENNMX0T I gave a talk a couple of years ago about debugging with Cursive: https://www.youtube.com/watch?v=ql77RwhcCK0. It’s basically a long demo of what you can do with the debugger, and discussion of some of the issues when debugging Clojure code.
oh fantastic, thank you! i'll check that out!
Set a breakpoint by clicking in the left margin next to the line number, and then start your repl with the “bug” button instead of the green arrow button.
oh fantastic, thank you