Fork me on GitHub
#cursive
<
2018-10-10
>
souenzzo00:10:31

Hey I'm trying to use clojure 1.10.0-beta2 + midje 1.9.3 + jvm11 and I'm having trouble generating stubs exception on thread

souenzzo00:10:41

2018-10-09 21:25:46,039 [ 788322]   INFO - il.indexing.FileBasedIndexImpl - Rebuild requested for index ClojureSymbolMeta 
java.lang.Throwable
	at com.intellij.util.indexing.FileBasedIndex.requestRebuild(FileBasedIndex.java:70)
	at cursive.stubs.ReplStubsNotifications$createNotification$1$whenDone$1.run(Stubs.kt:213)
	at cursive.stubs$generate_stubs$fn__6643$process__6644.invoke(stubs.clj:294)
	at cursive.stubs$generate_stubs$fn__6643.invoke(stubs.clj:363)
	at cursive.task$backgroundable$reify__6451.run(task.clj:12)
	at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:736)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:580)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
	at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:395)
	at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
2018-10-09 21:25:46,109 [ 788392]   INFO - il.indexing.FileBasedIndexImpl - scheduleIndexRebuild, reason: checkRebuild 

Alex Miller (Clojure team)01:10:11

there were issues in midje with Java 11. I sent a PR yesterday that was merged. not sure if you’re using that or not.

miikka09:10:44

I'd like to configure my Cursive REPL to automatically have a tap function that prints the stuff to the REPL. I'm now running this manually to get *out* right:

(let [out *out*]
  (defn repl-prn [& args]
    (binding [*out* out]
      (apply prn args))))
(add-tap repl-prn)

miikka09:10:10

If I do just (add-tap prn), it goes to the terminal where my boot instance is running.

miikka09:10:15

Oh, and by the way, is there a way to tell Cursive that if I use a function called foo, I always mean that it's some.namespace/foo and that Cursive should add a (:require [some.namespace :refer [foo]]) if I use that function somewhere?

cfleming10:10:29

@miikka So I’m not very familiar with the tap stuff yet, but that looks like a good use case for bound-fn: https://clojuredocs.org/clojure.core/bound-fn

cfleming10:10:04

Are you running the REPL under boot and then connecting via a remote REPL from Cursive?

cfleming10:10:23

Re: your foo question, not yet but I’m planning to add that, yes.

sgerguri11:10:02

@cfleming Is deps support on the roadmap for the foreseeable future?

cfleming11:10:25

@sgerguri Yes, it’s in the latest EAP, and nearly finished.

sgerguri11:10:34

Ah splendid!

stijn12:10:31

it works pretty well! 😄

danm13:10:40

Will deps support make boot support easier as well, or are they totally separate things?

simon17:10:03

This might be an intellij question but — how would one add syntax highlighting for a build.boot file so that is not just plaintext like a .txt file?

tanzoniteblack18:10:20

if you want to change syntax highlighting for all .boot files, you can do it in the File Types section of the intellij settings