dgtized / github-clone.el

Fork and clone Github projects from Emacs
58 stars 14 forks source link

Crash when cloning #12

Closed Wilfred closed 8 years ago

Wilfred commented 8 years ago

I'm getting the following traceback when calling M-x github-clone:

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  signal(wrong-type-argument (number-or-marker-p nil))
  (if (or (null num) (zerop num)) (signal (car err) (cdr err)) (eieio-oset req (quote :num-retries) (1- num)) (gh-url-run-request req resp))
  (let ((num (eieio-oref req (quote :num-retries)))) (if (or (null num) (zerop num)) (signal (car err) (cdr err)) (eieio-oset req (quote :num-retries) (1- num)) (gh-url-run-request req resp)))
  (condition-case err (progn (eieio-oset resp (quote :-req) req) (gh-url-response-init resp (current-buffer))) (error (let ((num (eieio-oref req (quote :num-retries)))) (if (or (null num) (zerop num)) (signal (car err) (cdr err)) (eieio-oset req (quote :num-retries) (1- num)) (gh-url-run-request req resp)))))
  (let* ((--cl-rest-- req-resp) (req (if (= (length --cl-rest--) 2) (car-safe (prog1 --cl-rest-- (setq --cl-rest-- (cdr --cl-rest--)))) (signal (quote wrong-number-of-arguments) (list nil (length --cl-rest--))))) (resp (car --cl-rest--))) (condition-case err (progn (eieio-oset resp (quote :-req) req) (gh-url-response-init resp (current-buffer))) (error (let ((num (eieio-oref req (quote :num-retries)))) (if (or (null num) (zerop num)) (signal (car err) (cdr err)) (eieio-oset req (quote :num-retries) (1- num)) (gh-url-run-request req resp))))))
  (progn (let* ((--cl-rest-- req-resp) (req (if (= (length --cl-rest--) 2) (car-safe (prog1 --cl-rest-- (setq --cl-rest-- ...))) (signal (quote wrong-number-of-arguments) (list nil (length --cl-rest--))))) (resp (car --cl-rest--))) (condition-case err (progn (eieio-oset resp (quote :-req) req) (gh-url-response-init resp (current-buffer))) (error (let ((num (eieio-oref req ...))) (if (or (null num) (zerop num)) (signal (car err) (cdr err)) (eieio-oset req (quote :num-retries) (1- num)) (gh-url-run-request req resp)))))))
  gh-url-set-response(nil ([object gh-api-paged-request "gh-api-paged-request" "GET" "https://api.github.com/user" nil (("Authorization" . "token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") ("Content-Type" . "application/json")) "null" nil 0 nil] [object gh-api-paged-response "gh-api-paged-response" nil nil nil nil nil (closure (t) (&rest args) (apply (quote gh-object-read) (quote gh-users-user) args)) [object gh-api-paged-request "gh-api-paged-request" "GET" "https://api.github.com/user" nil (("Authorization" . "token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") ("Content-Type" . "application/json")) "null" nil 0 nil]]))
  #[(req &optional resp) "\306\307\310\311\"\310\312\"\310\313\"\310\314\"\310\315\"\211\203!

(I've redacted the github token.)

Any idea what might be wrong? I do have a checkout of the repo by this point, but it's before it asked me whether I want to fork.

dgtized commented 8 years ago

Yea I need to take a look at this again. I've been using hub instead of late so I think sadly I have let this languish. gh.el has changed a bit (which I have noticed more because of problems with gist.el), but also I think the github api changed a little. I don't have time to take a look at this just yet, but hopefully in the next week.

Wilfred commented 8 years ago

I have upgraded gh.el and I can no longer reproduce this, so I'm going to close.