ergoemacs / ergoemacs-mode

ergoemacs-mode
ergoemacs.github.io/
GNU General Public License v3.0
293 stars 35 forks source link

Errors after update: “File already exists error list-utils-pkg.el” #350

Closed linevych closed 9 years ago

linevych commented 9 years ago

I had an error after updating ergoemacs:

Debugger entered--Lisp error: (file-already-exists "File already exists "/home/linevich/.emacs.d/elpa-24-3-1-x86-64-pc-linux-gnu/list-utils-20140508.1341/list-utils-pkg.el")
  write-region("(define-package \"list-utils\" \"20140508.1341\" \"List-manipulation utility functions\" (quote nil))\n" nil "/home/linevich/.emacs.d/elpa-24-3-1-x86-64-pc-linux-gnu/list-utils-20140508.1341/list-utils-pkg.el" nil nil nil excl)
  package-unpack-single("list-utils" "20140508.1341" "List-manipulation utility functions" nil)
  package-download-single(list-utils "20140508.1341" "List-manipulation utility functions" nil)
  package-download-transaction((ucs-utils list-utils pcache persistent-soft font-utils unicode-fonts))
  package-install(unicode-fonts)
  ergoemacs-component-struct--ensure(unicode-fonts)
  ergoemacs-component-struct--apply-inits()
  run-hooks(ergoemacs-mode-startup-hook)
  ergoemacs-mode(1)
  eval-buffer(#<buffer  *load*> nil "/home/linevich/.emacs.d/init.el" nil t)  ; Reading at buffer position 524
  load-with-code-conversion("/home/linevich/.emacs.d/init.el" "/home/linevich/.emacs.d/init.el" t t)
  load("/home/linevich/.emacs.d/init" t t)
  #[0 "\205\262

I tried to remove this file, and had the next one traceback:

Debugger entered--Lisp error: (file-already-exists "Файл вже існує" "/home/linevich/.emacs.d/elpa-24-3-1-x86-64-pc-linux-gnu/pcache-20150125.1653/pcache-pkg.el")
  write-region("(define-package \"pcache\" \"20150125.1653\" \"persistent caching for Emacs\" (quote ((eieio \"1.3\"))))\n" nil "/home/linevich/.emacs.d/elpa-24-3-1-x86-64-pc-linux-gnu/pcache-20150125.1653/pcache-pkg.el" nil nil nil excl)
  package-unpack-single("pcache" "20150125.1653" "persistent caching for Emacs" ((eieio (1 3))))
  package-download-single(pcache "20150125.1653" "persistent caching for Emacs" ((eieio (1 3))))
  package-download-transaction((ucs-utils list-utils pcache persistent-soft font-utils unicode-fonts))
  package-install(unicode-fonts)
  ergoemacs-component-struct--ensure(unicode-fonts)
  ergoemacs-component-struct--apply-inits()
  run-hooks(ergoemacs-mode-startup-hook)
  ergoemacs-mode(1)
  eval-buffer(#<buffer  *load*> nil "/home/linevich/.emacs.d/init.el" nil t)  ; Reading at buffer position 524
  load-with-code-conversion("/home/linevich/.emacs.d/init.el" "/home/linevich/.emacs.d/init.el" t t)
  load("/home/linevich/.emacs.d/init" t t)
  #[0 "\205\262

When I removed this file too, I had the same error as at the beginning "list-utils-pkg.el" exists.
How to fix this?
Config here.
P.S Sorry for my English :)

mattfidler commented 9 years ago

This seems like a package management issue.

I would delete the elpa versions of ergoemacs-mode and list-utils and then use the stable melpa repository. This require updating your config to:

(add-to-list 'package-archives
         ;'("melpa" . "http://melpa.milkbox.net/packages/")
             '("melpa-stable" . "http://stable.melpa.org/packages/")
         '("marmalade" ."http://marmalade-repo.org/packages/")
         )

Then re-downloading the stable ergoemacs-mode.

linevych commented 9 years ago

Thanks a lot, it works!