This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-14
Channels
- # aleph (1)
- # aws-lambda (10)
- # beginners (161)
- # bitcoin (2)
- # boot (20)
- # cider (3)
- # clara (46)
- # cljs-dev (35)
- # cljsrn (9)
- # clojure (123)
- # clojure-boston (1)
- # clojure-colombia (1)
- # clojure-dusseldorf (3)
- # clojure-gamedev (2)
- # clojure-germany (2)
- # clojure-greece (1)
- # clojure-italy (7)
- # clojure-losangeles (3)
- # clojure-nl (2)
- # clojure-russia (15)
- # clojure-spec (1)
- # clojure-uk (7)
- # clojurescript (75)
- # community-development (5)
- # cursive (5)
- # datomic (25)
- # docs (3)
- # emacs (1)
- # fulcro (11)
- # graphql (131)
- # heroku (1)
- # jobs (1)
- # juxt (55)
- # lein-figwheel (2)
- # luminus (1)
- # off-topic (4)
- # om (8)
- # onyx (32)
- # pedestal (19)
- # re-frame (53)
- # reagent (11)
- # remote-jobs (1)
- # rum (12)
- # shadow-cljs (12)
- # spacemacs (53)
- # testing (2)
- # unrepl (18)
On the off chance someone has insight into this one: My remaining problem (after reinstalling basically everything) is that when I save a cljs file, emacs freezes completely for a while (say, 5-180 seconds) with maxed out CPU (on one core). Anyone encountered this lately?
all of the latest comments in this channel are making me rue updating my spacemacs... 😄
Yeah, so far seems like just cljs. I should try a couple of other clj/cljc files to be certain, though. If cider is not running, it behaves just fine, no freezing. If cider is running, it consistently freezes.
I'm using a figwheel-aware REPL:
(setq cider-cljs-lein-repl
"(do (require 'figwheel-sidecar.repl-api)
(figwheel-sidecar.repl-api/start-figwheel! \"login\" \"imageviewer\" \"harmonium\")
(figwheel-sidecar.repl-api/cljs-repl))")
I do clear trailing whitespace, I think that's it. Currently frozen, but once it unfreezes I'll go verify whether I'm doing anything else.
Next I'm going to try eliminating my .spacemacs entirely (I've already got a pretty old version checked out, from well before all this started).
Aha! Fresh .spacemacs seems to have eliminated it. So now hopefully it's just a matter of bisecting what's in my .spacemacs.
It's aggressive-friggin-indent-mode
. I should have tried that sooner -- I had some bad slowdown problems with it before, but they had been resolved for a while. I really love the behavior, but not at the cost of freezing emacs for extended periods of time.
Yeah, I'm very glad to have finally figured it out, this set of issues cost me pretty much a full day of work. The relief slightly outweighs the frustration 😉
Wow, glad you got to the bottom of it @eggsyntax! And lame about the lost work. 😥
That's fair. 👍 Plus, I'm guessing you learned some things about lower-level happenings of [spac]emacs.
it seems like I’ve been frequently running into emacs crashing when I run one of these large functions and I don’t know why
Things do get fairly bogged down for me when I have too much data in a buffer. vim scales way better that way.
When you say "crashing", does it just instantly crash, or does it get really slow/unresponsive for a while first?
also is there a way to clear the repl so that I don’t have these massive swaths of screen being blasted by text?
also any advice when the REPL hangs? It seems like it’s not really doing anything and then the results of the last function call suddenly popup
I agree with @jeff.terrell, btw, if I have to deal with a really huge file, I usually do it in vim.
It’s not massively huge, It’s probably only like 200 lines of .csv BUT it generates a lot of output from turning the csv into a series of maps