Fork me on GitHub
#cursive
<
2017-11-01
>
vikeri08:11:49

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.

horza12:11:42

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.

horza12:11:06

some "don't touch the file until I edit it" option would be really nice

horza12:11:00

(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)

kennytilton14:11:57

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)))

kaiw16:11:48

anyone had any luck getting a mono repo to play nicely with cursive? specifically using the lein monolith plugin for managing deps

danm16:11:53

Yes. But no. We have a monorepo with a whole load of Clojure projects in, but we're not using the lein monolith plugin

danm16:11:20

We're actually using boot, so I have a boot task that builds the project.clj per project in the monorepo

vikeri07:11:14

Yeah I found that one and liked it, but didn’t see any concrete suggestions of how to implement it

cfleming21:11:04

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.

cfleming21:11:51

I may try to separate out the part which prevents the problem you’re experiencing from the new v3 integration.

cfleming21:11:43

@hiskennyness I’ll try to reproduce what you’re seeing there.

cfleming21:11:38

@horza (BTW in that wiki page, specifically “Run Paren Mode before Editor action” relates to your suggestion).

vikeri07:11:52

Ok nice, so you basically reformat the code with an external tool instead of the built in formatter?