Fork me on GitHub
#spacemacs
<
2017-09-14
>
vuuvi00:09:46

Nope I haven't actually had any of those problems (fortunately)

vuuvi00:09:12

I haven't opened much more than Clojure, .csv and text tho

vuuvi00:09:18

Markdown too I guess

vuuvi00:09:43

It was slower when reloading .spacemacs tho and it threw the error

eggsyntax01:09:04

Gotcha. Thanks!

eggsyntax17:09:06

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?

reefersleep17:09:55

all of the latest comments in this channel are making me rue updating my spacemacs... 😄

chris17:09:08

is it just cljs files

chris17:09:14

no other files?

chris17:09:25

is cider running?

chris17:09:44

are you running a special repl in cider (figwheel or just like lein/boot default repl)

eggsyntax17:09:29

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.

eggsyntax17:09:38

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

chris17:09:08

hmm, when I was using lein that was basically what I had too

chris17:09:28

do you have anything in your before save hook

chris17:09:38

(like cleaning whitespace/formatting)

eggsyntax17:09:21

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.

eggsyntax17:09:00

Yeah, just (add-hook 'before-save-hook 'delete-trailing-whitespace)

eggsyntax17:09:10

(which I've had active for at least a year)

eggsyntax17:09:12

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

eggsyntax17:09:32

Aha! Fresh .spacemacs seems to have eliminated it. So now hopefully it's just a matter of bisecting what's in my .spacemacs.

eggsyntax17:09:08

Which'll take ages, but I'm just glad there's a direction to go for a solution.

eggsyntax18:09:48

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.

chris18:09:17

oh son of a bitch

chris18:09:29

I disabled aggressive-indent-mode a long time ago because it was so slow

chris18:09:32

that's really annoying

chris18:09:37

at least you figured it out

eggsyntax18:09:28

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 😉

jeff.terrell19:09:59

Wow, glad you got to the bottom of it @eggsyntax! And lame about the lost work. 😥

eggsyntax19:09:58

Oh well... far outweighed by the time that spac/emacs has saved me overall 🙂

jeff.terrell19:09:51

That's fair. 👍 Plus, I'm guessing you learned some things about lower-level happenings of [spac]emacs.

vuuvi19:09:25

I am working with some .csv files that can generate a lot of output

vuuvi19:09:14

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

vuuvi19:09:21

anyone have problems with spacemacs crashing?

jeff.terrell19:09:21

Things do get fairly bogged down for me when I have too much data in a buffer. vim scales way better that way.

jeff.terrell19:09:44

When you say "crashing", does it just instantly crash, or does it get really slow/unresponsive for a while first?

vuuvi19:09:06

the screen goes gray and everything stops responding

vuuvi19:09:59

also is there a way to clear the repl so that I don’t have these massive swaths of screen being blasted by text?

eggsyntax19:09:51

You mean just clear what's on the screen? I use Cmd-k.

vuuvi19:09:20

okay! thanks!

eggsyntax19:09:26

cider-repl-clear-buffer

vuuvi19:09:00

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

eggsyntax19:09:45

I agree with @jeff.terrell, btw, if I have to deal with a really huge file, I usually do it in vim.

eggsyntax19:09:05

Try keyboard-quit (ctrl-g) or cider-interrupt (ctrl-c ctrl-c).

eggsyntax19:09:39

And don't turn aggressive-indent-mode on 😆

vuuvi19:09:32

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

eggsyntax19:09:36

Ah, right, gotcha. Not sure, then. One option might be to just spit it to a file instead of printing or returning it in the REPL.

vuuvi19:09:47

that’s a good idea

vuuvi19:09:06

I just killed the buffer and reloaded cider and things seem to be going well

vuuvi19:09:37

also , s c will clear the buffer in spacemacs

eggsyntax19:09:24

Totally. Same command, different key binding.

vuuvi23:09:11

spacemacs has crashed twice on me today…. when I return to my main buffer from the repl and type SPC SPC it locks up….any idea why?