Track down Magit version error

25 views
Skip to first unread message

msgs...@gmail.com

unread,
Jul 30, 2016, 4:28:33 AM7/30/16
to ma...@googlegroups.com

Putting in my .emacs file:

(load-library "magit-autoloads")
(require 'magit)

gives the error/warning:

Cannot determine Magit’s version (error
"/home/user/.emacs.d/elpa/magit-20160724.858/magit.el" repo static elpa)

What am I doing wrong?

How do I fix this?




Rémi Vanicat

unread,
Jul 30, 2016, 7:36:19 AM7/30/16
to msgs...@gmail.com, ma...@googlegroups.com


Le sam. 30 juil. 2016 10:28, <msgs...@gmail.com> a écrit :

       Putting in my .emacs file:

(load-library "magit-autoloads")
(require 'magit) 

If you load magit-autoloads, you don't need to (require 'magit), if you (require 'magit), you don't need the autoloads. The idea of autoloads is to prepare Emacs to load magit when you will need it, when require load it immediately. But this is probably not what cause your problem. 


         gives the error/warning:

Cannot determine Magit’s version (error
"/home/user/.emacs.d/elpa/magit-20160724.858/magit.el" repo static elpa)

         What am I doing wrong?

         How do I fix this?

Why don't you just use (package-initialize)? It is the way packages from elpa/melpa are intended to be loaded. It might be the cause of your problem. 
Reply all
Reply to author
Forward
0 new messages