Closed ivan-m closed 7 years ago
I have a few files that I've picked up along the way that aren't available via package.el. Previously I had just either autoloaded or require'd them.
I'm now trying to load them up using req-package but it doesn't seem to work; for example if I have this in my config:
(req-package hs-lint :loader :path :commands hs-lint)
But when I try and launch Emacs I get the following backtrace:
Debugger entered--Lisp error: (error "Package ‘hs-lint-’ is unavailable") signal(error ("Package ‘hs-lint-’ is unavailable")) error("Package `%s-%s' is unavailable" hs-lint "") package-compute-transaction(nil ((hs-lint))) package-install(hs-lint) use-package-ensure-elpa(hs-lint t) use-package-ensure-elpa(hs-lint) (progn (quote "/Users/ivan/.emacs.d/site-lisp/hs-lint.el") (use-package-ensure-elpa (quote hs-lint)) (if (fboundp (quote hs-lint)) nil (autoload (function hs-lint) "hs-lint" nil t)) (condition-case err (progn) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "hs-lint" ":init" (error-message-string err)) :error)))) (eval-after-load (quote hs-lint) (function (lambda nil (progn (condition-case err (progn (req-package-handle-loading ... ...) (req-package-loaded ...)) ((debug error) (ignore ...))) t))))) eval((progn (quote "/Users/ivan/.emacs.d/site-lisp/hs-lint.el") (use-package-ensure-elpa (quote hs-lint)) (if (fboundp (quote hs-lint)) nil (autoload (function hs-lint) "hs-lint" nil t)) (condition-case err (progn) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "hs-lint" ":init" (error-message-string err)) :error)))) (eval-after-load (quote hs-lint) (function (lambda nil (progn (condition-case err (progn (req-package-handle-loading ... ...) (req-package-loaded ...)) ((debug error) (ignore ...))) t)))))) req-package-eval-form((use-package hs-lint :init (progn) :config (progn (req-package-handle-loading (quote (hs-lint nil)) (lambda nil (progn))) (req-package-loaded (quote (hs-lint nil)))) :preface (message "Load Path: %s" load-path) (req-package-providers-present-path (quote hs-lint)) :commands hs-lint)) #[nil "\301!\207" [EVAL req-package-eval-form] 2]() req-package-handle-loading((hs-lint nil) #[nil "\301!\207" [EVAL req-package-eval-form] 2]) req-package-eval((hs-lint nil)) #[(key value) "\302 \303#\303\232\205 \304\305 #\210\306!\207" [key req-package-deps-left gethash 0 puthash -1 req-package-eval] 4]((hs-lint nil) 0) maphash(#[(key value) "\302 \303#\303\232\205 \304\305 #\210\306!\207" [key req-package-deps-left gethash 0 puthash -1 req-package-eval] 4] #s(hash-table size 200 test equal rehash-size 1.5 rehash-threshold 0.8 data ((exec-path-from-shell nil) -1 (diminish nil) -1 (bind-key nil) -1 (alect-themes nil) -1 (tramp nil) -1 (recentf nil) -1 (notifications nil) -1 (lorem-ipsum nil) -1 (rainbow-delimiters nil) -1 (whitespace nil) -1 (flycheck nil) -1 (flycheck-color-mode-line nil) -1 (flyspell nil) -1 (auto-highlight-symbol nil) -1 (subword nil) -1 (mmm-mode nil) -1 (company nil) -1 (goto-chg nil) -1 (paredit nil) -1 (paredit-menu (paredit)) -1 (hydra nil) -1 (org nil) -1 (csv-mode (org)) 1 (ispell nil) -1 (rw-hunspell (ispell rw-language-and-country-codes rw-ispell)) 2 (font-utils nil) -1 (unicode-fonts (font-utils)) -1 (ascii-art-to-unicode nil) -1 (paren nil) -1 (saveplace nil) -1 (sql nil) -1 (image-file nil) -1 (delsel nil) -1 (unkillable-scratch nil) -1 (man nil) -1 (woman (faces)) 1 (compile nil) -1 (bury-successful-compilation nil) -1 (ediff nil) -1 (darcsum nil) -1 (helm nil) -1 (graphviz-dot-mode nil) -1 (nix-mode nil) -1 (nixos-options nil) -1 (yaml-mode nil) -1 (zoom-frm nil) -1 (auctex nil) -1 (auctex (reftex)) 1 (latex (auctex flyspell)) 1 (auctex (org)) 1 ...))) req-package-finish() eval-buffer(#<buffer *load*> nil "/Users/ivan/.emacs.d/init.el" nil t) ; Reading at buffer position 2046 load-with-code-conversion("/Users/ivan/.emacs.d/init.el" "/Users/ivan/.emacs.d/init.el" t t) load("/Users/ivan/.emacs.d/init" t t) #[0 "\205\266 \306=\203 \307\310Q\202? \311=\204 \307\312Q\202? \313\307\314\315#\203* \316\202? \313\307\314\317#\203>
I have a few files that I've picked up along the way that aren't available via package.el. Previously I had just either autoloaded or require'd them.
I'm now trying to load them up using req-package but it doesn't seem to work; for example if I have this in my config:
But when I try and launch Emacs I get the following backtrace: