vermiculus / magithub

**DEPRECATED - please use Forge instead!** -- Magit-based interfaces to GitHub
GNU General Public License v3.0
579 stars 63 forks source link

Correct error handlers #299

Closed vermiculus closed 6 years ago

vermiculus commented 6 years ago

Caused by https://github.com/magit/ghub/commit/6fd4434c2dc7552e24ab31c9a548c3699a5c8b5a

May also need to make changes in ghub+.

wbolster commented 6 years ago

i see this after upgrading melpa packages:

Error (use-package): magithub/:catch: :condition-case must be a list of error handlers; see the documentation: ((ghub-404 nil))

is this what this bug is about or is that something else?

vermiculus commented 6 years ago

@wbolster See the ghub commit from above, but that certainly looks related. I think I do indeed check that symbols listed in condition-case are error-symbols (that's in apiwrap.el); since ghub-404 is no longer defined, it's no longer an error symbol.

wbolster commented 6 years ago

ok, thanks.

until this issue is properly fixed a :init block like this works around the problem:

(use-package magithub
  :demand t
  :after magit
  :init
  ;; fixme this is a temporary hack; see https://github.com/vermiculus/magithub/issues/299
  (define-error 'ghub-404 "Not Found" 'ghub-http-error)
  :config
  (magithub-feature-autoinject t))
vermiculus commented 6 years ago

@aspiers ^

vermiculus commented 6 years ago

This should be fixed with the latest HEAD of ghub+, so I will close this issue. If anyone is still having this problem, please reopen this issue and let me know 😄

ping @aspiers @seagle0128

seagle0128 commented 6 years ago

It does work for me.