GithubHelp home page GithubHelp logo

Comments (4)

Wilfred avatar Wilfred commented on May 22, 2024

Hmm, looks like it may be an issue with package.el rather than ag.el. Is that the full traceback? It's not clear to me what's calling (memq (aref package-info 0) cl-struct-package-desc-tags).

from ag.el.

donhill avatar donhill commented on May 22, 2024

Here is the complete output -

Debugger entered--Lisp error: (wrong-type-argument arrayp ([cl-struct-package-desc ag (20140322 948) "A front-end for ag ('the silver searcher'), the C ack replacement." nil nil nil "/home/dhill/.emacs.d/elpa/ag-20140322.948" nil nil]))
  aref(([cl-struct-package-desc ag (20140322 948) "A front-end for ag ('the silver searcher'), the C ack replacement." nil nil nil "/home/dhill/.emacs.d/elpa/ag-20140322.948" nil nil]) 0)
  (memq (aref package-info 0) cl-struct-package-desc-tags)
  (and (memq (aref package-info 0) cl-struct-package-desc-tags))
  (or (and (memq (aref package-info 0) cl-struct-package-desc-tags)) (error "%s accessing a non-%s" (quote package-desc-reqs) (quote package-desc)))
  (progn (or (and (memq (aref package-info 0) cl-struct-package-desc-tags)) (error "%s accessing a non-%s" (quote package-desc-reqs) (quote package-desc))) (aref package-info 4))
  (mapcar (quote car) (progn (or (and (memq (aref package-info 0) cl-struct-package-desc-tags)) (error "%s accessing a non-%s" (quote package-desc-reqs) (quote package-desc))) (aref package-info 4)))
  (mapcar (quote donhill/package-requirements) (mapcar (quote car) (progn (or (and (memq (aref package-info 0) cl-struct-package-desc-tags)) (error "%s accessing a non-%s" (quote package-desc-reqs) (quote package-desc))) (aref package-info 4))))
  (cons package (mapcar (quote donhill/package-requirements) (mapcar (quote car) (progn (or (and (memq (aref package-info 0) cl-struct-package-desc-tags)) (error "%s accessing a non-%s" (quote package-desc-reqs) (quote package-desc))) (aref package-info 4)))))
  (donhill/flatten (cons package (mapcar (quote donhill/package-requirements) (mapcar (quote car) (progn (or (and (memq ... cl-struct-package-desc-tags)) (error "%s accessing a non-%s" (quote package-desc-reqs) (quote package-desc))) (aref package-info 4))))))
  (cond ((null package-info) (list package)) (t (donhill/flatten (cons package (mapcar (quote donhill/package-requirements) (mapcar (quote car) (progn (or ... ...) (aref package-info 4))))))))
  (let ((package-info (cdr (assoc package package-alist)))) (cond ((null package-info) (list package)) (t (donhill/flatten (cons package (mapcar (quote donhill/package-requirements) (mapcar (quote car) (progn ... ...))))))))
  donhill/package-requirements(ag)
  mapcar(donhill/package-requirements (ag coffee-mode color-theme-sanityinc-tomorrow expand-region dash dart-mode fill-column-indicator haml-mode idomenu inf-ruby less-css-mode magit markdown-mode multiple-cursors paredit rainbow-mode rhtml-mode ruby-compilation scss-mode smartparens undo-tree window-number yagist yaml-mode yasnippet))
  (apply (quote append) (mapcar (quote donhill/package-requirements) packages))
  (delete-dups (apply (quote append) (mapcar (quote donhill/package-requirements) packages)))
  donhill/packages-requirements((ag coffee-mode color-theme-sanityinc-tomorrow expand-region dash dart-mode fill-column-indicator haml-mode idomenu inf-ruby less-css-mode magit markdown-mode multiple-cursors paredit rainbow-mode rhtml-mode ruby-compilation scss-mode smartparens undo-tree window-number yagist yaml-mode yasnippet))
  (let ((packages-and-dependencies (donhill/packages-requirements packages))) (let ((--dolist-tail-- (mapcar (quote car) package-alist)) package) (while --dolist-tail-- (setq package (car --dolist-tail--)) (if (memq package packages-and-dependencies) nil (donhill/package-delete-by-name package)) (setq --dolist-tail-- (cdr --dolist-tail--)))))
  donhill/package-delete-unless-listed((ag coffee-mode color-theme-sanityinc-tomorrow expand-region dash dart-mode fill-column-indicator haml-mode idomenu inf-ruby less-css-mode magit markdown-mode multiple-cursors paredit rainbow-mode rhtml-mode ruby-compilation scss-mode smartparens undo-tree window-number yagist yaml-mode yasnippet))
  donhill/package-install-and-remove-to-match-list(ag coffee-mode color-theme-sanityinc-tomorrow expand-region dash dart-mode fill-column-indicator haml-mode idomenu inf-ruby less-css-mode magit markdown-mode multiple-cursors paredit rainbow-mode rhtml-mode ruby-compilation scss-mode smartparens undo-tree window-number yagist yaml-mode yasnippet)
  eval-buffer(#<buffer  *load*-233293> nil "/home/dhill/.emacs.d/donhill/init/packages.el" nil t)  ; Reading at buffer position 2739
  load-with-code-conversion("/home/dhill/.emacs.d/donhill/init/packages.el" "/home/dhill/.emacs.d/donhill/init/packages.el" nil nil)
  load("/home/dhill/.emacs.d/donhill/init/packages" nil)
  (let ((file (file-name-sans-extension (expand-file-name path user-emacs-directory)))) (load file noerror))
  donhill/load-init-file("donhill/init/packages")
  eval-buffer(#<buffer  *load*> nil "/home/dhill/.emacs.d/init.el" nil t)  ; Reading at buffer position 557
  load-with-code-conversion("/home/dhill/.emacs.d/init.el" "/home/dhill/.emacs.d/init.el" t t)
  load("/home/dhill/.emacs.d/init" t t)
  #[0 "�\205\262    \306=\203�\307�\310Q\202;   \311=\204�\307�\312Q\202;\313\307\314\315#\203*\316\202;\313\307\314\317#\203:\320\nB�\321\202;\316\322�\323�\322\211#\210�\322=\203a\324\325\326\307�\327Q!\"\323�\322\211#\210�\322=\203`��\210�\203\243\330�!\331\232\203\243\332�!\211\333P\334�!\203}\211\202\210\334�!\203\207�\202\210\314\262��\203\241\335��\"\203\237\336\337��#\210\340\341!\210��\266�\f?\205\260\314�\323\342\322\211#)\262�\207" [init-file-user system-type delayed-warnings-list user-init-file inhibit-default-init inhibit-startup-screen ms-dos "~" "/_emacs" windows-nt "/.emacs" directory-files nil "^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" "^_emacs\\(\\.elc?\\)?$" (initialization "`_emacs' init file is deprecated, please use `.emacs'") "~/_emacs" t load expand-file-name "init" file-name-as-directory "/.emacs.d" file-name-extension "elc" file-name-sans-extension ".el" file-exists-p file-newer-than-file-p message "Warning: %s is newer than %s" sit-for 1 "default"] 7 "\n\n(fn)"]()
  command-line()
  normal-top-level()

from ag.el.

Wilfred avatar Wilfred commented on May 22, 2024

The traceback mentions functions donhill/package-requirements and donhill/flatten. I guess these are functions you've written? Can I see the source?

Also, it's suspicious that ag is simply the first package alphabetically. If you remove ag and try again, do you still get the error?

from ag.el.

donhill avatar donhill commented on May 22, 2024

I am closing this issue. I started removing packages from my config and I still get the arrayp without loading up 'ag package. I must be missing a dependency somewhere as this is a clean env I am setting up.

from ag.el.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.