emacsorphanage / req-package

dependency management system on top of use-package
GNU General Public License v3.0
152 stars 14 forks source link

New version causes void-variable for `req-package-paths` #49

Closed terlar closed 6 years ago

terlar commented 6 years ago

With the new version I cannot use req-package as it tries to access an undefined variable. I am not sure if the ht-set should do something magic with this variable or if it needs to be defined somewhere earlier. There is currently no other reference.

Debugger entered--Lisp error: (void-variable req-package-paths)
  req-package-schedule((readable nil) nil nil (use-package readable :init (progn) :config (progn (req-package-handle-loading '(readable nil) (lambda nil (progn))) (req-package-loaded '(readable nil))) :load-path my-site-lisp-dir :commands readable-mode) (my-site-lisp-dir))
  (if FORCE (progn (req-package--log-debug "package force-requested: %s %s" PKG EVAL) (req-package-handle-loading PKG (function (lambda nil (req-package-eval-form EVAL))))) (req-package-schedule PKG DEPS LOADER EVAL LOAD-PATH))
  (if DISABLED (req-package--log-info "package %s is disabled. skipping" (car PKG)) (if FORCE (progn (req-package--log-debug "package force-requested: %s %s" PKG EVAL) (req-package-handle-loading PKG (function (lambda nil (req-package-eval-form EVAL))))) (req-package-schedule PKG DEPS LOADER EVAL LOAD-PATH)))
  (let* ((PKG 'readable) (ARGS '(:load-path my-site-lisp-dir :commands readable-mode)) (SPLIT1 (req-package-args-extract-arg :require ARGS nil)) (SPLIT2 (req-package-args-extract-arg :loader (car (cdr SPLIT1)) nil)) (SPLIT3 (req-package-args-extract-arg :init (car (cdr SPLIT2)) nil)) (SPLIT4 (req-package-args-extract-arg :config (car (cdr SPLIT3)) nil)) (SPLIT5 (req-package-args-extract-arg :force (car (cdr SPLIT4)) nil)) (SPLIT6 (req-package-args-extract-arg :load-path (car (cdr SPLIT5)) nil)) (SPLIT7 (req-package-args-extract-arg :disabled (car (cdr SPLIT6)) nil)) (DEPS (-flatten (car SPLIT1))) (LOADER (car (car SPLIT2))) (INIT (cons 'progn (car SPLIT3))) (PKG (list PKG DEPS)) (CONFIG (req-package-patch-config PKG (cons 'progn (car SPLIT4)))) (FORCE (car (car SPLIT5))) (REST (car (cdr SPLIT5))) (LOAD-PATH (-flatten (car SPLIT6))) (DISABLED (-flatten (car SPLIT7))) (EVAL (req-package-gen-eval PKG INIT CONFIG REST))) (if DISABLED (req-package--log-info "package %s is disabled. skipping" (car PKG)) (if FORCE (progn (req-package--log-debug "package force-requested: %s %s" PKG EVAL) (req-package-handle-loading PKG (function (lambda nil (req-package-eval-form EVAL))))) (req-package-schedule PKG DEPS LOADER EVAL LOAD-PATH))))
  eval-buffer(#<buffer  *load*-175027> nil "/home/terje/.emacs.d/lisp/base-ui.el" nil t)  ; Reading at buffer position 7935
  load-with-code-conversion("/home/terje/.emacs.d/lisp/base-ui.el" "/home/terje/.emacs.d/lisp/base-ui.el" nil t)
  require(base-ui)
  (if noninteractive nil (require 'base-keybinds) (require 'base-popups) (require 'base-projects) (require 'base-modeline) (require 'base-editor) (require 'base-ui))
  eval-buffer(#<buffer  *load*-716794> nil "/home/terje/.emacs.d/lisp/base.el" nil t)  ; Reading at buffer position 4406
  load-with-code-conversion("/home/terje/.emacs.d/lisp/base.el" "/home/terje/.emacs.d/lisp/base.el" nil t)
  require(base)
  eval-buffer(#<buffer  *load*> nil "/home/terje/.emacs.d/init.el" nil t)  ; Reading at buffer position 352
  load-with-code-conversion("/home/terje/.emacs.d/init.el" "/home/terje/.emacs.d/init.el" t t)
  load("/home/terje/.emacs.d/init" t t)
  #f(compiled-function () #<bytecode 0x301697>)()
  command-line()
  normal-top-level()
edvorg commented 6 years ago

Hi sorry for that, it required some further cleanup. fixed in 15c0dfe