This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-29
Channels
- # adventofcode (7)
- # announcements (11)
- # beginners (76)
- # boot (3)
- # calva (139)
- # cider (24)
- # clara (2)
- # cljdoc (11)
- # cljs-dev (90)
- # cljsjs (1)
- # cljsrn (3)
- # clojure (98)
- # clojure-austin (2)
- # clojure-brasil (2)
- # clojure-dev (16)
- # clojure-europe (3)
- # clojure-italy (55)
- # clojure-nl (37)
- # clojure-sweden (11)
- # clojure-uk (40)
- # clojurebridge (1)
- # clojurescript (107)
- # core-logic (10)
- # cursive (34)
- # data-science (9)
- # datascript (19)
- # datomic (48)
- # emacs (6)
- # figwheel (13)
- # figwheel-main (3)
- # fulcro (67)
- # jobs (1)
- # juxt (4)
- # lumo (8)
- # mount (1)
- # off-topic (29)
- # onyx (1)
- # reagent (7)
- # reitit (3)
- # ring-swagger (5)
- # shadow-cljs (39)
- # spacemacs (5)
- # tools-deps (1)
i’m having difficulty making it behave correctly on a clojure macro https://github.com/clojure/core.match indent is way off
ok i managed to make it behave correctly by doing alt+enter on match
, then enter, then select indent
but it would still be useful to hook on cljfmt rules instead of duplicating the logic across editor configs
@guillaume.carbonneau There isn’t anything like that at the moment, no, but it’s something that a few people have asked about.
I have a deps project, and i'm trying to hook up to a figwheel clojurescript REPL to it
and wondering how I can stick --middleware "[cider.piggieback/wrap-cljs-repl]"
into the nrepl spawned by cursive
naive (cljs-repl)
tells me
ExceptionInfo Failed to launch Figwheel CLJS REPL: nREPL connection found but unable to load piggieback.
This is commonly caused by
A) not providing piggieback as a dependency and/or
B) not adding piggieback middleware into your nrepl middleware chain.
Please see the documentation for piggieback here
Note: Cider will inject this config into your project.clj.
This can cause confusion when your are not using Cider. clojure.core/ex-info (core.clj:4739)
is there a recommended way to do this?
I do have piggieback in my classpath
its how to wrap the nrepl middleware when its a cursive nrepl
switching over to clojure.main REPL seems to do the trick
that I don't understand
It is possible to do IntelliJ -> Tools -> IDE Scripting Engine -> Clojure via instaling the Clojure JSR https://intellij-support.jetbrains.com/hc/en-us/articles/115000877044-DataGrip-FAQ [I have this working] Are there any plans to make it as easy to extend IntelliJ via Clojure as it is to extend Emacs via Elisp ?
switching over to clojure.main REPL seems to do the trick
@ben.hammond Yes, there’s no good way right now to install middleware into the Cursive nREPL stack for that first REPL option.
@todo It’s possible to some extent, but I haven’t investigated in much. It’s fairly poorly documented, and you can’t extend everything about IntelliJ that way like you can with emacs.
Is it anywhere on your roadmap?
Yes, the next major thing on my roadmap is making CLJS REPLs easier, hopefully as close as possible to how easy they are for Clojure
@cfleming: agreed on the lack of documenation part -- I've been grepping through the IntelliJ community edition source to figure out how to do things What do you mean by you can't extend everything? In my limited understanding, anything you can do via a "real" Java/Kotlin plugin, you can do at the IDE Scripting Console
@todo So some things can’t be created dynamically, I believe. Indexes would be one example, if you need a new index you pretty much have to write a plugin. You can install extensions for most extension points at runtime, but it can get pretty funky.
BTW if you’re using Cursive you can get a REPL on your open IDE instance if you want.
@cfleming: I purchased a Cursive license a while back, but have not used it much since I shortly switchec to Kotlin aftertwards. What do you mean by "get a REPL on your OpeN IDE instance" ? Does Cursive alfready offer the full power of "ide scripting console"
Also, if you’re just playing around with this then you can use a (free) non-commercial licence.
I really did purchase a license a while back, I'm not sure if it was 1 year or if it was perpeutual though
Help->Edit Custom Properties, and in the file that opens, add idea.is.internal=true
.