This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-04
Channels
- # announcements (25)
- # babashka (7)
- # beginners (52)
- # calva (29)
- # clara (1)
- # clj-kondo (4)
- # cljs-dev (55)
- # clojure (86)
- # clojure-europe (5)
- # clojure-finland (1)
- # clojure-france (1)
- # clojure-italy (1)
- # clojure-nl (1)
- # clojure-uk (57)
- # clojurescript (33)
- # conjure (107)
- # cursive (20)
- # datomic (37)
- # emacs (23)
- # events (13)
- # fulcro (67)
- # helix (73)
- # jobs-discuss (22)
- # lambdaisland (1)
- # leiningen (32)
- # malli (2)
- # meander (9)
- # mid-cities-meetup (1)
- # observability (1)
- # off-topic (14)
- # overtone (3)
- # pathom (39)
- # re-frame (22)
- # reagent (13)
- # reitit (13)
- # shadow-cljs (52)
- # sql (15)
- # tools-deps (29)
- # vim (11)
Hey all, since the last update 1.9.1-2020.1, (or maybe due to 2020.1 as they updated at the same time for me) it seems like I can't put breakpoints in certain files.
Instead I get the message: Line 15 in foo$eval15927 (bar) No executable code found at line 15 in class bar.foo$thing Suspend: all
I can still put breakpoints successfully in some files, and hit them, but not others.
I'm unsure if this is related to https://github.com/cursive-ide/cursive/issues/2345 or if I'm missing something, so are there any troubleshooting steps I can take on this one? I've already invalidated caches and restarted from intellij but happy to try any ideas
I think I've pinned this one down, it looks like the debugger won't load the code if the namespace contains a _
instead of a -
. Obviously this was a mistake in the code, so easily fixable in my case, but not the easiest to pin down 😅
Could be interesting if Cursive could leverage ClojureScript's type inference to display types inline in the code https://github.com/cursive-ide/cursive/issues/2365
Yes, I’ve planned that for a while for CLJS, but haven’t done anything on it yet. It’s hard to reuse the analysis environment, I’ll probably reuse a fair amount of the code that’s used for the Clojure analysis.
Doing this right for CLJS required upgrading Cursive’s knowledge of JS in general first though, which will also help node_modules imports etc.
Do you plan to propagate JS deps info into ClojureScript to improve inspections?
And JS deps type info, assuming I can get the information out of the Closure parser.
How do people use the debugger? You need to run the repl in debug mode right? Isn’t that really slow?
no, it's fine
just out of curiosity, Alex, are you a Cursive user yourself? For some reason I was under the impression all of Cognitect use emacs
people use a variety of editors at Cognitect
Hmm, I used to have the impression that it was, I’ll have to give that a whirl then, do you tend to do development in a debug repl then?
sometimes. if I'm not really doing any interop, I don't usually bother because that's really the only time I use the debugger
I asked Colin about this a while ago. He said that he always starts his REPL up in debug mode. I have started doing the same. It's nice to have the debug features readily available without needing to do a REPL restart. The only hiccup I've had is when working with large lazy seqs (and I mean decently large - to the tune of a 20-30gb csv file). Debug mode disables locals clearing which, depending on your code, can cause a lot of memory usage when working with large lazy seqs.