This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-01
Channels
- # aws (2)
- # aws-lambda (18)
- # beginners (68)
- # boot (6)
- # cider (2)
- # clara (2)
- # clojars (27)
- # clojure (68)
- # clojure-austin (5)
- # clojure-berlin (6)
- # clojure-dev (28)
- # clojure-greece (7)
- # clojure-italy (46)
- # clojure-japan (3)
- # clojure-nl (1)
- # clojure-russia (8)
- # clojure-sg (1)
- # clojure-spec (17)
- # clojure-uk (86)
- # clojurescript (82)
- # community-development (2)
- # cursive (18)
- # datomic (11)
- # duct (5)
- # fulcro (254)
- # garden (2)
- # graphql (6)
- # hoplon (19)
- # instaparse (4)
- # kekkonen (2)
- # leiningen (4)
- # luminus (3)
- # lumo (9)
- # off-topic (28)
- # om (7)
- # onyx (38)
- # other-languages (27)
- # portkey (7)
- # protorepl (1)
- # re-frame (56)
- # reagent (64)
- # ring (14)
- # ring-swagger (7)
- # shadow-cljs (255)
- # sql (2)
- # vim (11)
- # yada (10)
Has anyone managed to get any of the clojure formatters to work concistently with Cursive’s built in? I looked at cljfmt but couldn’t get it to work, boot-fmt might work since it’s very flexible but it seemed like a lot of work to get it to output like Cursive.
There's one thing slightly annoying me with parinfer. My project has some code that's poorly formatted and whenever I open one of those files with parinfer on, it does its thing and then everything's broken until I turn parinfer off and revert.
(also, this stuff is mostly in a git submodule I don't have access to, so "fix the bad formatting" is sadly not a viable solution)
Aha. Both cmd-F and shift-cmd-F (the IDE find commands) flash the “Edit” menu label in the menubar but fail to bring up the dialog iff I have selected any term in this snippet:
(#?(:clj dosync :cljs do)
(with-integrity (:change (c-slot c))
(c-value-assume c new-value nil)))
anyone had any luck getting a mono repo to play nicely with cursive? specifically using the lein monolith plugin for managing deps
Yes. But no. We have a monorepo with a whole load of Clojure projects in, but we're not using the lein monolith plugin
We're actually using boot, so I have a boot task that builds the project.clj per project in the monorepo
Yeah I found that one and liked it, but didn’t see any concrete suggestions of how to implement it
@horza See here for gory details on why that is hard: https://github.com/shaunlebron/parinfer/wiki/Problems-integrating-parinfer-into-Cursive
I have a better solution in a branch as part of the parinfer v3 integration, but unfortunately it has some bugs which are show-stopping in Cursive and Shaun has been busy.
I may try to separate out the part which prevents the problem you’re experiencing from the new v3 integration.
@hiskennyness I’ll try to reproduce what you’re seeing there.
@horza (BTW in that wiki page, specifically “Run Paren Mode before Editor action” relates to your suggestion).
@vikeri This is the approach we are using at my company: https://github.com/ComputeSoftware/cljfmt-cli#usage-in-intellij