This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-10
Channels
- # 100-days-of-code (2)
- # announcements (2)
- # aws (11)
- # beginners (114)
- # boot (6)
- # calva (11)
- # cider (11)
- # cljdoc (2)
- # cljs-dev (7)
- # clojure (126)
- # clojure-berlin (1)
- # clojure-conj (4)
- # clojure-dev (1)
- # clojure-germany (12)
- # clojure-italy (22)
- # clojure-spec (96)
- # clojure-uk (111)
- # clojurescript (27)
- # core-async (8)
- # cursive (17)
- # datomic (26)
- # devops (5)
- # editors (15)
- # emacs (13)
- # events (1)
- # figwheel-main (27)
- # fulcro (64)
- # hyperfiddle (29)
- # jobs (8)
- # jobs-discuss (7)
- # liberator (4)
- # off-topic (46)
- # om (9)
- # onyx (1)
- # overtone (1)
- # perun (8)
- # re-frame (28)
- # reagent (35)
- # reitit (5)
- # shadow-cljs (96)
- # spacemacs (1)
- # testing (10)
- # timbre (8)
- # tools-deps (63)
- # unrepl (1)
- # yada (10)
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
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
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.
@U064X3EF3 I'm on midje 1.9.3
https://github.com/marick/Midje/blob/master/CHANGELOG.md#193---2018-10-09
; Wrong typo, edited on main post. tnx.
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)
If I do just (add-tap prn)
, it goes to the terminal where my boot instance is running.
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?
@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
Are you running the REPL under boot and then connecting via a remote REPL from Cursive?
Will deps support make boot support easier as well, or are they totally separate things?
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?
if you want to change syntax highlighting for all .boot
files, you can do it in the File Types
section of the intellij settings