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

New install fails: tabbar is a system package but spacemacs is trying to delete it. #12182

Open
qqldd opened this Issue Apr 15, 2019 · 7 comments

Comments

Projects
None yet
4 participants
@qqldd
Copy link

commented Apr 15, 2019

Description :octocat:

New install of spacemacs. On first start, complains about

error: Package ‘tabbar-20160524’ is a system package, not deleting

Reproduction guide 🐞

  1. Using spacemacs on master branch with default .spacemacs
  2. Start emacs

Observed behaviour: 👀 💔
error: Package ‘tabbar-20160524’ is a system package, not deleting

Expected behaviour: ❤️ 😄
emacs should start and installing packages without this complain.

Emacs version: 26.1

Backtrace 🐾

Debugger entered--Lisp error: (error "Package ‘tabbar-20160524’ is a system package, not deleting")
  signal(error ("Package ‘tabbar-20160524’ is a system package, not deleting"))
  error("Package `%s' is a system package, not deleting" "tabbar-20160524")
  package-delete(#s(package-desc :name tabbar :version (20160524) :summary "Display a tab bar in the header line" :reqs nil :kind nil :archive nil :dir "/usr/share/emacs/26.1+gg1+14/site-lisp/elpa/tabbar-20160524" :extras ((:url . "https://github.com/dholm/tabbar") (:keywords "convenience")) :signed nil) t t)
  (progn (package-delete p t t))
  (if p (progn (package-delete p t t)))
  (let ((p (car (cdr (assq pkg-name package-alist))))) (if p (progn (package-delete p t t))))
  (cond ((version<= "25.0.50" emacs-version) (let ((p (car (cdr (assq pkg-name package-alist))))) (if p (progn (package-delete p t t))))) (t (let ((p (car (cdr (assq pkg-name package-alist))))) (if p (progn (package-delete p))))))
  configuration-layer//package-delete(tabbar)
  (while --dolist-tail-- (setq orphan (car --dolist-tail--)) (setq deleted-count (1+ deleted-count)) (spacemacs-buffer/replace-last-line (format "--> deleting %s... [%s/%s]" orphan deleted-count orphans-count) t) (configuration-layer//package-delete orphan) (spacemacs//redisplay) (setq --dolist-tail-- (cdr --dolist-tail--)))
  (let ((--dolist-tail-- orphans) orphan) (while --dolist-tail-- (setq orphan (car --dolist-tail--)) (setq deleted-count (1+ deleted-count)) (spacemacs-buffer/replace-last-line (format "--> deleting %s... [%s/%s]" orphan deleted-count orphans-count) t) (configuration-layer//package-delete orphan) (spacemacs//redisplay) (setq --dolist-tail-- (cdr --dolist-tail--))))
  (progn (spacemacs-buffer/set-mode-line "Uninstalling not used packages...") (spacemacs//redisplay) (spacemacs-buffer/append (format "Found %s orphan package(s) to delete...\n" orphans-count)) (setq deleted-count 0) (let ((--dolist-tail-- orphans) orphan) (while --dolist-tail-- (setq orphan (car --dolist-tail--)) (setq deleted-count (1+ deleted-count)) (spacemacs-buffer/replace-last-line (format "--> deleting %s... [%s/%s]" orphan deleted-count orphans-count) t) (configuration-layer//package-delete orphan) (spacemacs//redisplay) (setq --dolist-tail-- (cdr --dolist-tail--)))) (spacemacs-buffer/append "\n"))
  (if orphans (progn (spacemacs-buffer/set-mode-line "Uninstalling not used packages...") (spacemacs//redisplay) (spacemacs-buffer/append (format "Found %s orphan package(s) to delete...\n" orphans-count)) (setq deleted-count 0) (let ((--dolist-tail-- orphans) orphan) (while --dolist-tail-- (setq orphan (car --dolist-tail--)) (setq deleted-count (1+ deleted-count)) (spacemacs-buffer/replace-last-line (format "--> deleting %s... [%s/%s]" orphan deleted-count orphans-count) t) (configuration-layer//package-delete orphan) (spacemacs//redisplay) (setq --dolist-tail-- (cdr --dolist-tail--)))) (spacemacs-buffer/append "\n")) (spacemacs-buffer/message "No orphan package to delete."))
  (let* ((dependencies (configuration-layer//get-packages-upstream-dependencies-from-alist)) (implicit-packages (configuration-layer//get-implicit-packages-from-alist packages)) (orphans (configuration-layer//get-orphan-packages packages implicit-packages dependencies)) (orphans-count (length orphans)) deleted-count) (if orphans (progn (spacemacs-buffer/set-mode-line "Uninstalling not used packages...") (spacemacs//redisplay) (spacemacs-buffer/append (format "Found %s orphan package(s) to delete...\n" orphans-count)) (setq deleted-count 0) (let ((--dolist-tail-- orphans) orphan) (while --dolist-tail-- (setq orphan (car --dolist-tail--)) (setq deleted-count (1+ deleted-count)) (spacemacs-buffer/replace-last-line (format "--> deleting %s... [%s/%s]" orphan deleted-count orphans-count) t) (configuration-layer//package-delete orphan) (spacemacs//redisplay) (setq --dolist-tail-- (cdr --dolist-tail--)))) (spacemacs-buffer/append "\n")) (spacemacs-buffer/message "No orphan package to delete.")))
  configuration-layer/delete-orphan-packages((ace-jump-helm-line ace-link ace-window adaptive-wrap aggressive-indent async auto-compile auto-highlight-symbol avy bind-key bind-map clean-aindent-mode column-enforce-mode define-word desktop diminish dumb-jump elisp-slime-nav eval-sexp-fu evil evil-anzu evil-args evil-ediff evil-escape evil-exchange evil-iedit-state evil-indent-plus evil-lisp-state evil-matchit evil-mc evil-nerd-commenter evil-numbers evil-search-highlight-persist evil-surround evil-tutor evil-unimpaired evil-visual-mark-mode evil-visualstar exec-path-from-shell expand-region eyebrowse fancy-battery fill-column-indicator flx-ido golden-ratio google-translate helm helm-ag helm-descbinds helm-flx helm-make helm-mode-manager helm-projectile helm-swoop helm-themes highlight-indentation highlight-numbers highlight-parentheses hl-todo hungry-delete hydra indent-guide link-hint linum-relative lorem-ipsum macrostep move-text neotree open-junk-file org-bullets org-plus-contrib paradox pcre2el persp-mode popup popwin projectile rainbow-delimiters request restart-emacs smartparens spaceline toc-org undo-tree use-package uuidgen vi-tilde-fringe volatile-highlights which-key winum ws-butler))
  (progn (configuration-layer/delete-orphan-packages packages))
  (if (and (or (eq 'used dotspacemacs-install-packages) (eq 'used-only dotspacemacs-install-packages)) (not configuration-layer-force-distribution) (not configuration-layer-exclude-all-layers)) (progn (configuration-layer/delete-orphan-packages packages)))
  (let ((packages (append (configuration-layer/filter-objects configuration-layer--used-distant-packages (function (lambda (x) (let ((pkg (configuration-layer/get-package x))) (not (eieio-oref pkg ':lazy-install)))))) (if (eq 'all dotspacemacs-install-packages) (progn (let (all-other-packages) (let ((--dolist-tail-- (configuration-layer/get-layers-list)) layer) (while --dolist-tail-- (setq layer (car --dolist-tail--)) (let ((configuration-layer--declared-layers-usedp nil) (configuration-layer--load-packages-files t)) (configuration-layer/declare-layer layer) (let* ((obj (configuration-layer/get-layer layer)) (pkgs (if obj (progn (eieio-oref obj ':packages))))) (configuration-layer/make-packages-from-layers (list layer)) (let ((--dolist-tail-- pkgs) pkg) (while --dolist-tail-- (setq pkg (car --dolist-tail--)) (let ((pkg-name (if (listp pkg) (car pkg) pkg))) (if (member pkg-name all-other-packages) all-other-packages (setq all-other-packages (cons pkg-name all-other-packages)))) (setq --dolist-tail-- (cdr --dolist-tail--)))))) (setq --dolist-tail-- (cdr --dolist-tail--)))) (configuration-layer//get-distant-packages all-other-packages nil))))))) (configuration-layer//install-packages packages) (if (and (or (eq 'used dotspacemacs-install-packages) (eq 'used-only dotspacemacs-install-packages)) (not configuration-layer-force-distribution) (not configuration-layer-exclude-all-layers)) (progn (configuration-layer/delete-orphan-packages packages))))
  (if no-install nil (let ((packages (append (configuration-layer/filter-objects configuration-layer--used-distant-packages (function (lambda (x) (let ((pkg (configuration-layer/get-package x))) (not (eieio-oref pkg ':lazy-install)))))) (if (eq 'all dotspacemacs-install-packages) (progn (let (all-other-packages) (let ((--dolist-tail-- (configuration-layer/get-layers-list)) layer) (while --dolist-tail-- (setq layer (car --dolist-tail--)) (let ((configuration-layer--declared-layers-usedp nil) (configuration-layer--load-packages-files t)) (configuration-layer/declare-layer layer) (let* ((obj (configuration-layer/get-layer layer)) (pkgs (if obj (progn (eieio-oref obj ':packages))))) (configuration-layer/make-packages-from-layers (list layer)) (let ((--dolist-tail-- pkgs) pkg) (while --dolist-tail-- (setq pkg (car --dolist-tail--)) (let ((pkg-name (if (listp pkg) (car pkg) pkg))) (if (member pkg-name all-other-packages) all-other-packages (setq all-other-packages (cons pkg-name all-other-packages)))) (setq --dolist-tail-- (cdr --dolist-tail--)))))) (setq --dolist-tail-- (cdr --dolist-tail--)))) (configuration-layer//get-distant-packages all-other-packages nil))))))) (configuration-layer//install-packages packages) (if (and (or (eq 'used dotspacemacs-install-packages) (eq 'used-only dotspacemacs-install-packages)) (not configuration-layer-force-distribution) (not configuration-layer-exclude-all-layers)) (progn (configuration-layer/delete-orphan-packages packages)))))
  configuration-layer/sync()
  (if (not (version<= spacemacs-emacs-min-version emacs-version)) (error (concat "Your version of Emacs (%s) is too old. " "Spacemacs requires Emacs version %s or above.") emacs-version spacemacs-emacs-min-version) (load-file (concat (file-name-directory load-file-name) "core/core-load-paths.el")) (require 'core-spacemacs) (spacemacs/init) (configuration-layer/sync) (spacemacs-buffer/display-startup-note) (spacemacs/setup-startup-hook) (require 'server) (if (server-running-p) nil (server-start)))
  eval-buffer(#<buffer  *load*> nil "/home/myrice/.emacs.d/init.el" nil t)  ; Reading at buffer position 1264
  load-with-code-conversion("/home/myrice/.emacs.d/init.el" "/home/myrice/.emacs.d/init.el" t t)
  load("/home/myrice/.emacs.d/init" t t)
  #f(compiled-function () #<bytecode 0x1e005d>)()
  command-line()
  normal-top-level()
@qqldd

This comment has been minimized.

Copy link
Author

commented Apr 15, 2019

spacemacs seems mark almost all packages to orphan. I got:

Found 98 orphan package(s) to delete...
--> deleting tabbar... [1/98]

I tried develop branch, the result is the same.

@qqldd

This comment has been minimized.

Copy link
Author

commented Apr 15, 2019

Update, this probably my system issue. The above issue appears on my Debian but on the Mac OS 10.13.6 I cannot reproduce it.

@quaker4lyf

This comment has been minimized.

Copy link

commented Apr 16, 2019

I'm seeing this as well. I checked out master branch, renamed my .spacemacs file to something else so that spacemacs will create a new one, started spacemacs and got the same error messages

@quaker4lyf

This comment has been minimized.

Copy link

commented Apr 16, 2019

Here's my workaround to get me unblocked for my daily job. I checked out develop again (because I use gruvbox-theme which doesn't load correctly in master branch), restored my .spacemacs file, and then added all the system packages that spacemacs wants to delete to dotspacemacs-additional-packages list. E.g.
dotspacemacs-additional-packages '([...] tabbar session pod-mode muttrc-mode mutt-alias initsplit htmlize graphviz-dot-mode folding eproject csv-mode browse-kill-ring boxquote bm bar-cursor apache-mode)

@qqldd

This comment has been minimized.

Copy link
Author

commented Apr 16, 2019

@quaker4lyf Yes, I am doing the same for develop branch since it is only has ~17 'orphan' package. I also add these packages to the additional packages... Hope we can find out why they are marked as orphan

@CestDiego

This comment has been minimized.

Copy link
Contributor

commented Apr 23, 2019

I am experiencing the same. Not sure what caused it. I just restarted

@duianto

This comment has been minimized.

Copy link
Collaborator

commented Apr 23, 2019

What's everyone's system info SPC h d s?

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