Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong type argument: cask-dependency, error #365

Closed
zonuexe opened this issue Aug 27, 2016 · 10 comments

Comments

@zonuexe
Copy link
Contributor

@zonuexe zonuexe commented Aug 27, 2016

I'm using emacs-25.1rc2. My Cask file.

% emacs --version
GNU Emacs 25.1.1
Copyright (C) 2016 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

% which cask
/Users/megurine/.cask/bin/cask

% cask --version
0.7.4
% cd ~/.emacs.d
% cask update
Wrong type argument: cask-dependency, error

% cask update --debug --verbose
Debugger entered--Lisp error: (wrong-type-argument cask-dependency error)
  signal(wrong-type-argument (cask-dependency error))
  (or (progn nil (and (vectorp (nth 0 data)) (>= (length (nth 0 data)) 8) (memq (aref (nth 0 data) 0) cl-struct-cask-dependency-tags) t)) (signal (quote wrong-type-argument) (list (quote cask-dependency) (nth 0 data))))
  (progn nil (or (progn nil (and (vectorp (nth 0 data)) (>= (length (nth 0 data)) 8) (memq (aref (nth 0 data) 0) cl-struct-cask-dependency-tags) t)) (signal (quote wrong-type-argument) (list (quote cask-dependency) (nth 0 data)))) (aref (nth 0 data) 1))
  (let* ((data (cdr err)) (dependency (progn nil (or (progn nil (and (vectorp ...) (>= ... 8) (memq ... cl-struct-cask-dependency-tags) t)) (signal (quote wrong-type-argument) (list (quote cask-dependency) (nth 0 data)))) (aref (nth 0 data) 1))) (message (error-message-string (nth 1 data))) (output (nth 2 data))) (if dependency (error "Dependency %s failed to install: %s\nOutput:\n%s" dependency message output) (error "Package installation failed: %s\nOutput:\n%s" message output)))
  (condition-case err (progn (let ((upgrades (cask-update (cask-cli--bundle)))) (if upgrades (progn (princ "Updated packages:\n") (-each upgrades (quote cask-cli--print-upgrade)))))) (cask-missing-dependencies (let ((missing-dependencies (cdr err))) (error "Some dependencies were not available: %s" (s-join ", " (-map (function symbol-name) (-map (function cask-dependency-name) missing-dependencies)))))) (cask-failed-initialization (let* ((data (cdr err)) (message (error-message-string (nth 0 data))) (output (nth 1 data))) (error "Package initialization failed: %s\nOutput:\n%s" message output))) (cask-failed-installation (let* ((data (cdr err)) (dependency (progn nil (or (progn nil ...) (signal ... ...)) (aref (nth 0 data) 1))) (message (error-message-string (nth 1 data))) (output (nth 2 data))) (if dependency (error "Dependency %s failed to install: %s\nOutput:\n%s" dependency message output) (error "Package installation failed: %s\nOutput:\n%s" message output)))))
  cask-cli/update()
  commander--handle-command(("update"))
  commander-parse(("update" "--debug" "--verbose"))
  (if commander-parsing-done nil (commander-parse (or commander-args (cdr command-line-args-left))))
  eval-buffer(#<buffer  *load*> nil "/Users/megurine/.cask/cask-cli.el" nil t)  ; Reading at buffer position 13463
  load-with-code-conversion("/Users/megurine/.cask/cask-cli.el" "/Users/megurine/.cask/cask-cli.el" nil t)
  load("/Users/megurine/.cask/cask-cli.el" nil t t)
  command-line-1(("-scriptload" "/Users/megurine/.cask/cask-cli.el" "--" "update" "--debug" "--verbose"))
  command-line()
  normal-top-level()

I could not clarify the cause of this problem.

@rejeep

This comment has been minimized.

Copy link
Member

@rejeep rejeep commented Aug 28, 2016

I've tried your Cask-file and it works fine for me. Can you remove the .cask directory and try again?

@zonuexe

This comment has been minimized.

Copy link
Contributor Author

@zonuexe zonuexe commented Aug 28, 2016

Hmm... Also erase the directory is the same behavior will occur.

@zonuexe

This comment has been minimized.

Copy link
Contributor Author

@zonuexe zonuexe commented Aug 28, 2016

diff --git a/cask-cli.el b/cask-cli.el
index b5b2eff..ec99596 100644
--- a/cask-cli.el
+++ b/cask-cli.el
@@ -95,6 +95,7 @@
   (declare (indent 0))
   `(condition-case err
        (progn ,@body)
+     (error (princ err))
      (cask-missing-dependencies
       (let ((missing-dependencies (cdr err)))
         (error "Some dependencies were not available: %s"
% cask update --debug --verbose
(cask-failed-installation error (error Package ‘term+-20160404.355’ is used by ‘term+key-intercept’ as dependency, not deleting) )%
@rejeep

This comment has been minimized.

Copy link
Member

@rejeep rejeep commented Sep 5, 2016

Then this is most likely related to Emacs 25, as I use 24 (you might also want to try and see if it works on 24). Closing as Emacs 25 is not released yet. If you do solve the issue yourself, I don't mind adding the fix, but I will not try to find it myself.

@rejeep rejeep closed this Sep 5, 2016
@UndeadKernel

This comment has been minimized.

Copy link

@UndeadKernel UndeadKernel commented Sep 20, 2016

Emacs 25 has been released and this problem still exists. Could we reopen this issue?

@lunaryorn

This comment has been minimized.

Copy link
Contributor

@lunaryorn lunaryorn commented Sep 20, 2016

@UndeadKernel I am not convinced that this is an Emacs issue. I've been using Emacs 25 since the first pretest and had no issues.

We can re-open the issue, but for us to fix this I think we either need someone who's affected to debug and fix the issue, or provide us with a minimal Cask file and a step-by-step recipe to reproduce the issue in a clean environment.

@phillord

This comment has been minimized.

Copy link
Collaborator

@phillord phillord commented Sep 22, 2016

I haven't used Cask with Emacs-24 for ages, so think it's not likely a 25 issue. A clean environment is definately the way to go.

@gongzhitaao

This comment has been minimized.

Copy link

@gongzhitaao gongzhitaao commented Sep 4, 2018

I run into this issue on Ubuntu 18.04

$ cask --version
0.8.4

$ emacs --version
GNU Emacs 25.2.2
[....]

$ cask update --verbose --debug
Importing package-keyring.gpg...
Importing package-keyring.gpg...done
Debugger entered--Lisp error: (wrong-type-argument cask-dependency error)
  signal(wrong-type-argument (cask-dependency error))
  (or (progn nil (and (vectorp (nth 0 data)) (>= (length (nth 0 data)) 8) (memq (aref (nth 0 data) 0) cl-struct-cask-dependency-tags) t)) (signal (quote wrong-type-argument) (list (quote cask-dependency) (nth 0 data))))
  (progn nil (or (progn nil (and (vectorp (nth 0 data)) (>= (length (nth 0 data)) 8) (memq (aref (nth 0 data) 0) cl-struct-cask-dependency-tags) t)) (signal (quote wrong-type-argument) (list (quote cask-dependency) (nth 0 data)))) (aref (nth 0 data) 1))
  (let* ((data (cdr err)) (dependency (progn nil (or (progn nil (and (vectorp ...) (>= ... 8) (memq ... cl-struct-cask-dependency-tags) t)) (signal (quote wrong-type-argument) (list (quote cask-dependency) (nth 0 data)))) (aref (nth 0 data) 1))) (message (error-message-string (nth 1 data))) (output (nth 2 data))) (if dependency (error "Dependency %s failed to install: %s\nOutput:\n%s" dependency message output) (error "Package installation failed: %s\nOutput:\n%s" message output)))
  (condition-case err (progn (let ((upgrades (cask-update (cask-cli--bundle)))) (if upgrades (progn (princ "Updated packages:\n") (-each upgrades (quote cask-cli--print-upgrade)))))) (cask-missing-dependencies (let ((missing-dependencies (cdr err))) (error "Some dependencies were not available: %s" (s-join ", " (-map (function symbol-name) (-map (function cask-dependency-name) missing-dependencies)))))) (cask-failed-initialization (let* ((data (cdr err)) (message (error-message-string (nth 0 data))) (output (nth 1 data))) (error "Package initialization failed: %s\nOutput:\n%s" message output))) (cask-failed-installation (let* ((data (cdr err)) (dependency (progn nil (or (progn nil ...) (signal ... ...)) (aref (nth 0 data) 1))) (message (error-message-string (nth 1 data))) (output (nth 2 data))) (if dependency (error "Dependency %s failed to install: %s\nOutput:\n%s" dependency message output) (error "Package installation failed: %s\nOutput:\n%s" message output)))))
  cask-cli/update()
  commander--handle-command(("update"))
  commander-parse(("update" "--verbose" "--debug"))
  (if commander-parsing-done nil (commander-parse (or commander-args (cdr command-line-args-left))))
  eval-buffer(#<buffer  *load*> nil "/home/gongzhitaao/.cask/cask-cli.el" nil t)  ; Reading at buffer position 13473
  load-with-code-conversion("/home/gongzhitaao/.cask/cask-cli.el" "/home/gongzhitaao/.cask/cask-cli.el" nil t)
  load("/home/gongzhitaao/.cask/cask-cli.el" nil t t)
  command-line-1(("-scriptload" "/home/gongzhitaao/.cask/cask-cli.el" "--" "update" "--verbose" "--debug"))
  command-line()
  normal-top-level()
@Fuco1

This comment has been minimized.

Copy link
Collaborator

@Fuco1 Fuco1 commented Sep 4, 2018

Can you check if there's a byte-compiled file /home/gongzhitaao/.cask/cask-cli.elc and if so delete it and try again?

@gongzhitaao

This comment has been minimized.

Copy link

@gongzhitaao gongzhitaao commented Sep 4, 2018

@Fuco1 It works. I actually delete the whole .cask directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants
You can’t perform that action at this time.