This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-18
Channels
- # admin-announcements (3)
- # arachne (8)
- # beginners (55)
- # boot (51)
- # cbus (1)
- # cider (15)
- # cljs-dev (5)
- # cljsrn (8)
- # clojure (203)
- # clojure-austin (2)
- # clojure-belgium (12)
- # clojure-boston (6)
- # clojure-czech (47)
- # clojure-dusseldorf (14)
- # clojure-estonia (1)
- # clojure-greece (42)
- # clojure-japan (2)
- # clojure-poland (4)
- # clojure-russia (97)
- # clojure-sg (5)
- # clojure-uk (41)
- # clojurescript (122)
- # code-reviews (4)
- # component (3)
- # core-matrix (19)
- # cursive (25)
- # datomic (16)
- # devcards (24)
- # editors (6)
- # euroclojure (1)
- # hoplon (88)
- # immutant (3)
- # incanter (4)
- # jobs (5)
- # keechma (1)
- # luminus (1)
- # om (44)
- # onyx (22)
- # parinfer (3)
- # planck (1)
- # proton (3)
- # re-frame (5)
- # reagent (30)
- # ring (2)
- # spacemacs (1)
- # untangled (92)
- # yada (1)
@lsenta: It’s a bit more complex than that unfortunately. I could probably plug into autocomplete, but that’s far from a complete solution. You also need navigation, doc, view source etc - it’s all doable from the REPL but it’s a totally different implementation from what’s there. Many things are more difficult and having two implementations would be a source of many bugs.
I just had the weirdest bug, Cursive moved around a bunch of ]
and )
all over the place
@danielcompton: Are you in parinfer mode?
I think I toggled through it
Why would it change anything?
So when you enter parinfer mode, it has to run paren mode to ensure that the indentation is within the limits required by indent mode.
I had assumed that anyone entering parinfer mode had explicitly chosen it, but of course toggling through it will trigger that.
but why would it mess up my ]
and )
?
It created invalid code
I’ll try to reproduce it
I have a fancy diff tool which doesn’t show the +/- so a screenshot is better
So in that case, the indentation causes the parens to move to invalid locations. I’ll have to check if parinfer handles that case (multi-arity fns) - IIRC there was something in their issue tracker about that.
I’m starting to think that indentation is too fragile in Clojure code for a global mode that assumes it.
It looks like the parinfer demo editor handles that case, I must have a bug in the integration.
There were quite a few things broken
I think it’s more general than just multi arity functions
Right, but in that case it hasn’t broken code, right? It’s just pulled the parens over the comments.
ah yeah, that’s not a good example