Fork me on GitHub
#cursive
<
2019-08-07
>
ikitommi13:08:33

Back in a situation where switching between basically any project in Cursive causes all the symbols to be unresolved 😞

ikitommi13:08:55

Invalidate and Restart helps, but kinda harsh for this.

ikitommi13:08:48

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)

polymeris14:08:44

I had that happen for a while (not sure why it stopped), and just restart (no invalidate) would help

ikitommi14:08:42

thanks! much better (until a real fix is found)

cfleming21:08:40

@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.

cfleming01:08:45

It’s not in the new build 😞. But will hopefully be in the next one - it’s still waiting for sign-off inside JetBrains.

Noah Bogart14:08:42

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?

cfleming21:08:11

It’s not as quickly digestible as proper documentation, sorry, but it’s the closest thing right now.

cfleming21:08:12

@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.

Noah Bogart21:08:26

oh fantastic, thank you! i'll check that out!

manutter5114:08:50

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.

Noah Bogart14:08:44

oh fantastic, thank you

kanwei19:08:34

FYI 2019.2.1 Preview is out and deps.edn seems to work again 🙂

🎉 8
souenzzo13:08:01

Sync finish event has not been received here

kenny20:08:49

Could the auto suggest feature be improved a bit? There's a bunch of classes that appear first which are never used. I was really after the auto fill for clojure.data.csv which is way at the bottom of this list.

cfleming21:08:47

Yes, I’ll see if I can filter those out.

kenny21:08:20

Great, thanks!