darkstego / wakib-emacs

Emacs Starter Kit based on Wakib keybindings
35 stars 2 forks source link

Default install throws error #14

Open danielcranford opened 2 months ago

danielcranford commented 2 months ago

After installing via git clone https://github.com/darkstego/wakib-emacs.git ~/.emacs.d, the following error is thrown any time I run emacs: package.el is not yet initialized!

Emacs version GNU Emacs 26.1 running on RHEL 8

With --debug-init

Debugger entered--Lisp error: (error "package.el is not yet initialized!")
  signal(error ("package.el is not yet initialized!"))
  error("package.el is not yet initialized!")
  package-installed-p(use-package)
  (if (package-installed-p 'use-package) nil (package-refresh-contents) (package-install 'use-package))
  eval-buffer(#<buffer  *load*> nil "/home/whatever/.emacs.d/init.el" nil t)  ; Reading at buffer position 1445
  load-with-code-conversion("/home/whatever/.emacs.d/init.el" "/home/whatever/.emacs.d/init.el" t t)
  load("/home/whatever/.emacs.d/init" t t)
  #f(compiled-function () #<bytecode 0x23ba29>)()
  command-line()
  normal-top-level()
darkstego commented 2 months ago

Can you test it on a recent version of Emacs. 26.1 is over 6 years old at this point and a lot has changed since then.

danielcranford commented 2 months ago

Unfortunately, I'm stuck on RHEL 8 (which is not going anywhere quickly) where the default version is 26.1. Ubuntu 22 isn't much better with the default emacs version being 27.1. If emacs has changed so much that supporting old versions is impossible, maybe add a version check/warning?

danielcranford commented 1 month ago

Everything seems to work fine on emacs 29.3 on Windows. A different problem pops up on emacs 27.1 on Ubuntu 22.04 (certificate error, packages not installed). It seems like project is rather dependent on more recent versions of emacs than will be found in most distro repos (even for relatively recent distros). Suggest adding this disclaimer to your docs and/or throwing a warning message on startup when run by an older/untested version of emacs.