Fork me on GitHub
#spacemacs
<
2020-07-24
>
jumar11:07:35

I'm not sure what happened but suddenly magit key bindings in spacemacs are broken. SPC g s is undefined , etc. I haven't changed anything explicitly - the only thing that happened, I think, since it worked is that my computer ran out of battery and was turned off forcibly.

jumar11:07:33

I tried to restore my .emacs.d from a backup two weeks ago but when I start emacs it shows "deleting 14 orphan packages" and I was able to see that one of them is evil-magit. Any idea why that happens?

practicalli-john11:07:30

I would start by checking the commands are still there, SPC SPC magit and see if the commands show the keybindings. If the commands aren't there, then I'd delete the magit packages and restart Emacs

jumar11:07:33

The commands are there. But also magit-status doesn't work as before (no evil keybindings just standard emacs -> suggesting that evil-magit and possibly other packages are the problem)

jumar11:07:51

When I try to install evil-magit manually (via package-list-packages) I get this error

Compiling file /Users/jumar/.emacs.d/elpa/develop/evil-magit-20200604.110/evil-magit.el at Fri Jul 24 13:57:14 2020
Entering directory '/Users/jumar/.emacs.d/elpa/develop/evil-magit-20200604.110/'
evil-magit.el:53:1:Error: Key sequence j p starts with non-prefix key j

jumar11:07:19

It looked as if no magit package was actually installed. I've just installed magit and then tried evil-magit - all other magit related packages are shown as "available" but not "installed" (not sure if that only means there's a new version)

jumar12:07:16

After this change the emacs startup window shows again "deleting evil-magit"

jumar12:07:34

And SPC g s still doesn't work

practicalli-john12:07:11

A possible quick hack would be to set dotspacemacs-install-packages 'all in .spacemacs which should keep all packages rather than deleting unused ones. This doesnt fix the underlying problem though.

jumar12:07:06

What does it mean that a package is "unused"?

jumar12:07:56

Btw. I ran a rather old version of develop branch and just tried to update to the latest origin/develop. This is what I get during startup now:

practicalli-john12:07:10

Packages that are not defined in an enabled layer or included in the addtional-packages setting I assume.

jumar12:07:29

Maybe I should note I'm using Emacs 25.3 on Mac OS X 10.15.6

practicalli-john12:07:18

Is that the issue with older versions of Emacs? e.g. before 26.3. The RSA key for melpa was updated sometime before Emacs 26.3 and so earlier emacs versions need their key updated.

practicalli-john12:07:33

Yes, it seems it is....

practicalli-john12:07:13

When I had a Mac, I used https://emacsformacosx.com/ to install Emacs. Or you can to an internet search on how to update the keys for Emacs 25. Or install a new version of Emacs using the Spacemacs recommendations https://github.com/syl20bnr/spacemacs/tree/develop#emacs

jumar13:07:10

I ended up downloading new Emacs, switching to the latest develop branch, deleting my .spacemacs file and manually transfering relevant settings from my old .spacemacs file to the new one created by the spacemacs wizard.

practicalli-john13:07:11

SPC f e D is also useful for comparing your .spacemacs file with the spacemacs.template, opens ediff and j and k step through changes. Or in this case using SPC D f f to select two files to use with ediff

jumar14:07:51

Thanks for the tip. Btw as a side-effect it seems that the upgrade made my emacs way faster

practicalli-john14:07:14

I am trying out Emacs 28 at the moment, it seems a little faster too, although probably not as stable as 26.3. Emacs 27 should be out this year as the next stable release.

maleghast14:07:50

I don't suppose anyone knows if I can update my exec-path through Spacemacs, or if there is any particular Spacemacs way of doing it..?

maleghast14:07:05

(on my last machine it "just worked")

practicalli-john14:07:12

@maleghast If you are using Spacemacs develop branch, SPC f e e will open your .spacemacs.env file which should be automatically populated from your Operating System when Emacs is started. You can manually add entries to this file too. If new entries for PATH or other environment variables are added after Emacs is running, then add them manually or restart Emacs

practicalli-john14:07:24

Pleasure. Hope all is fine with you

practicalli-john14:07:08

I am busy bee working on https://practicalli.github.io/ and getting out and about on my bike (although not as much as I should)

maleghast14:07:17

Glad to hear you are well 🙂

maleghast14:07:46

It's been a long time since I've seen anyone from the wider community in the flesh, I haven't seen my own team for a few months either....

maleghast14:07:59

Not complaining, going full-remote has definitely had its perks

maleghast14:07:18

How are you doing..?

maleghast15:07:50

That sounds like a great idea

maleghast15:07:05

You've heard about Cognitect and NuBank I assume..?

practicalli-john15:07:02

Yes, I want some of that action :rolling_on_the_floor_laughing:

practicalli-john15:07:02

Its all for my ever growing books on Clojure. Starting to get them into a much better shape and using lots of deps.edn and Clojure CLI tools.

practicalli-john15:07:01

I am thinking of getting a proper job and moving to Scotland at some point

maleghast17:07:37

Would be lovely to see you... Things have changed / moved on a lot at Cervest of late, so we are still on mission, but focusign a lot more on disclosure solutions and that kind fo thing for risk / climate risk to asset bases.

maleghast17:07:55

COVID-19 has made us 100% Remote Friendly, I am 100% Remote now, which does not preclude the idea of maybe quarterly visits to the office starting e/o Q1 next year, so I am quite pleased albeit I am missing having regular access to London theatres and my social life down there...

maleghast17:07:08

Scotland has a lot to recommend it though 🙂

maleghast17:07:16

Where would you move to?

practicalli-john18:07:54

Not sure yet, somewhere pretty, which seems to be most of Scotland. Perth and Inverness look interesting, as I could go cycling over the Cairngorms