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

startup error on ubuntu 14.04 - works find on OSX #50

Closed
donhill opened this issue Jun 5, 2014 · 4 comments
Closed

startup error on ubuntu 14.04 - works find on OSX #50

donhill opened this issue Jun 5, 2014 · 4 comments

Comments

@donhill
Copy link

donhill commented Jun 5, 2014

I am running ubuntu 14.04 with GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.6). I have the same config on OSX and it works fine. I am getting the following error on startup.

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])

When I enable debub-init I get

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)

Any thoughts on how to fix this. I am new to emacs so if I need to run more tests please let me know.

@Wilfred
Copy link
Owner

Wilfred commented Jun 5, 2014

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).

@donhill
Copy link
Author

donhill commented Jun 5, 2014

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()

@Wilfred
Copy link
Owner

Wilfred commented Jun 7, 2014

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?

@donhill
Copy link
Author

donhill commented Jun 8, 2014

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.

@donhill donhill closed this as completed Jun 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants