This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-12-16
Channels
- # admin-announcements (44)
- # adventofcode (2)
- # avi (1)
- # beginners (22)
- # boot (328)
- # cider (1)
- # cljs-dev (6)
- # cljsrn (29)
- # clojure (164)
- # clojure-chicago (1)
- # clojure-dev (7)
- # clojure-nl (5)
- # clojure-russia (73)
- # clojure-seattle (1)
- # clojure-turkiye (2)
- # clojured (1)
- # clojurescript (98)
- # core-async (6)
- # cursive (26)
- # datomic (9)
- # editors (5)
- # emacs (41)
- # events (3)
- # garden (2)
- # hoplon (125)
- # ldnclj (18)
- # om (178)
- # omnext (8)
- # onyx (5)
- # parinfer (1)
- # proton (5)
- # re-frame (20)
hello people, I have a question: when I paste multiline strings into a string, cursive converts the line breaks to \n, this is good for single line strings but when editing multiline strings it's a bit of pain, is there a way to disable this so when I paste it keeps the line breaks?
@wilkerlucio: I think Paste Simple will do that.
cool, that works
anyone has issues with debugging component based workflow on cursive? i can’t seem to get the breakpoints to work
@settinghead: The most likely problem is that currently breakpoints don’t work inside deftype or defrecord method bodies.
ah that’s good to know
@cfleming: is that something clojure could do better?
like are you missing line info in those or something?
@alexmiller: maybe. It’s a tricky issue. The problem is that it’s essentially impossible to identify in Clojure what the classname for a particular line of code (or expression, in general) is.
Instead of a class, you can use a “limited regular expression” to identify potential classes that JDI should check the breakpoint for.
When someone sets a breakpoint in a namespace, the best I can do is to match on munged_ns.name$*
, which catches all functions in that ns.
However that doesn’t catch records or types in that ns, which are named like munged_ns.name.Record
The problem is if I match on munged_ns.name*
then I’ll also get munged_ns.name_2
et al
I haven’t done another pass over the debugger since working out what the problem was, so I’m not sure if I can set up multiple filters, or manually filter things afterwards, or other hacks.
The problem with manually filtering afterwards is that munged_ns.name*
or even munged_ns.name.*
will match all classes in the package hierarchy under that point.
But I may be able to filter on munged_ns.name$*
` and then all the names of classes defined in that ns explicitly, or something.
I suspect (but I don’t actually know) that this filtering may be why debugging in Clojure is so much slower than in Java.
sounds tricky :)