Fork me on GitHub
#spacemacs
<
2017-08-09
>
clojer00:08:54

On my dual monitor OS X Sierra desktop Spacemacs crashes when I click “Update Packages”. On my Macbook Pro, also running Sierra, I don’t have this problem but if I copy the Macbook Pro’s .emacs.d to the Mac emacs crashes completely on startup. Any ideas?

ag00:08:40

@clojer how did you install emacs? I recommend using brew install emacs-plus

clojer00:08:26

Same on both machines - MacPorts. It’s been working perfectly for ages but just today - poof, up in smoke.

clojer00:08:05

This is Emacs OS X, not regular emacs.

ag00:08:10

Non GNU ports of Emacs known to have variety of issues. Spacemacs guys recommend using brew's emacs-plus formula. I myself after trying ports multiple times always get back to GNU version

ag00:08:19

maybe something borked in the config cd ~/.emacs.d && rm -rf elpa .cache

clojer00:08:41

I’ll give that a try.

clojer00:08:33

But it’s the same .emacs.d which works fine on my Macbook Pro.

clojer00:08:02

Surely rm elpa will gut everything out of Spacemacs, no?

ag00:08:48

Restarting Emacs will reinstall all the packages

clojer00:08:42

Emacs OS X just crashed immediately on startup.

clojer00:08:55

It’s a fresh install of Emacs OS X as well.

clojer00:08:01

… just to be sure.

clojer00:08:10

The only combo that doesn’t crash on startup is a backup of .emacs.d from a month ago but that crashes if I click “Update Packages”.

ag00:08:58

as I said, emacs ports have issues. try GNU version. it works (most of the time).

clojer00:08:13

It’s something to do with .emacs.d because vanilla Emacs OS X doesn’t crash like this.

ag00:08:55

does running emacs -q work?

clojer01:08:12

It’s weird because the same combo of .emacs.d and Emacs OS X works fine on my Macbook Pro.

clojer01:08:09

emacs -q just starts standard emacs. Surely that has nothing to do with this problem which is confined to Emacs OS X?

ag01:08:47

okay, wherever you installed it, try running it with -q key

ag01:08:56

or --no-init-file - if it makes clearer what I mean

clojer01:08:29

-q just starts vanilla Emacs OS X with no Spacemacs

clojer01:08:41

Doesn’t crash.

ag01:08:28

now remove/backup elpa and .cache and try restarting, it should get all the packages automatically.

clojer01:08:23

But I did that last time and it just crashed

clojer01:08:08

Did it. Crashed again.

clojer01:08:10

Thanks anyway.

clojer01:08:02

Any idea which part of the OSX crash report might be enlightening?

pesterhazy08:08:17

Spacemacs tip of the day: searching in your project using ripgrep (`rg`) with helm-ag

socksy10:08:30

> 2. Make Spacemacs use helm-project-do-ag directly when pressing SPC / without preselecting the symbol under the cursor. huh? What version of spacemacs are you currently using? I don't think this has been the default behaviour for a very long time (`SPC *` to search for symbol under the cursor, SPC / for normal search)

pesterhazy10:08:16

If I don't remap SPC /, my spacemacs defaults to Helm Projectile Grep, and it does preselect the word-at-point for me

pesterhazy10:08:42

For the record, dotspacemacs-search-tools '("ag" "pt" "ack" "grep")

jeff.terrell12:08:57

Nice tip @pesterhazy. 👍 FWIW, I've built muscle memory around SPC s t P, which is similar. It looks like SPC s a P might do the same thing (approximately?) as what you've defined there. Of course, it's two extra keystrokes. simple_smile

pesterhazy12:08:36

@jeff.terrell I also have that muscle memory, so I have to redefine SPC /. Fortunately it's pretty easy

nha14:08:15

It automatically select word at point? Is is a setting? ^M s a p does not do that for me (in holy mode)

nha14:08:44

Actually you are right - grep selects it but not ag

nha14:08:05

I would be curious to know why

jeff.terrell14:08:24

@nha - I think that's the difference between the p and P at the end. The former gives you a blank prompt, but the latter fills in the prompt with the word under the cursor.

nha14:08:24

Oh nice! it work perfectly 🙂 (although I don’t know why s g p does behave like s g P in my case)

jeff.terrell14:08:34

Oh, huh, I dunno! Maybe it's a bug. simple_smile

nha14:08:59

Ah in any case, very happy about P, I will use this one a lot 🙂

pesterhazy14:08:04

looks like develop supports rg natively

pesterhazy22:08:58

If you're in the shell you may need to escape the asterisk