我花了一天时间调试它,但无法查看我的设置有什么问题。我使用Linux(Fedora 22)运行Emacs 24.5.1,在公司代理后面,并且有环境变量" http_proxy"," https_proxy"," ftp_proxy"所有设置正确。我也有" setq url-proxy-services ..."在我的init.el。
我使用以下方法将MELPA添加为存储库: (add-to-list' package-archives '(" melpa"。" https://melpa.org/packages/"))
但emacs一直在抛出这个堆栈跟踪错误(emacs --debug-init):
Debugger entered--Lisp error: (file-error "https://melpa.org/packages/async-20150909.2257.tar" "Internal server error")
signal(file-error ("https://melpa.org/packages/async-20150909.2257.tar" "Internal server error"))
url-insert-file-contents("https://melpa.org/packages/async-20150909.2257.tar")
package-install-from-archive([cl-struct-package-desc async (20150909 2257) "Asynchronous processing in Emacs" ((emacs (24)) (cl-lib (0 5))) tar "melpa" nil ((:url . "https://github.com/jwiegley/emacs-async")) nil])
mapc(package-install-from-archive ([cl-struct-package-desc async (20150909 2257) "Asynchronous processing in Emacs" ((emacs (24)) (cl-lib (0 5))) tar "melpa" nil ((:url . "https://github.com/jwiegley/emacs-async")) nil] [cl-struct-package-desc helm-core (20151024 2233) "Development files for Helm" ((emacs (24)) (cl-lib (0 5)) (async (1 5))) tar "melpa" nil ((:url . "https://emacs-helm.github.io/helm/")) nil] [cl-struct-package-desc helm (20151024 2233) "Helm is an Emacs incremental and narrowing framework" ((emacs (24)) (cl-lib (0 5)) (async (1 5)) (helm-core (1 8 0))) tar "melpa" nil ((:url . "https://emacs-helm.github.io/helm/")) nil]))
package-download-transaction(([cl-struct-package-desc async (20150909 2257) "Asynchronous processing in Emacs" ((emacs (24)) (cl-lib (0 5))) tar "melpa" nil ((:url . "https://github.com/jwiegley/emacs-async")) nil] [cl-struct-package-desc helm-core (20151024 2233) "Development files for Helm" ((emacs (24)) (cl-lib (0 5)) (async (1 5))) tar "melpa" nil ((:url . "https://emacs-helm.github.io/helm/")) nil] [cl-struct-package-desc helm (20151024 2233) "Helm is an Emacs incremental and narrowing framework" ((emacs (24)) (cl-lib (0 5)) (async (1 5)) (helm-core (1 8 0))) tar "melpa" nil ((:url . "https://emacs-helm.github.io/helm/")) nil]))
package-install(helm)
(progn (package-install p))
(if (not (package-installed-p p)) (progn (package-install p)))
(while --dolist-tail-- (setq p (car --dolist-tail--)) (if (not (package-installed-p p)) (progn (package-install p))) (setq --dolist-tail-- (cdr --dolist-tail--)))
(let ((--dolist-tail-- ngupta/packages) p) (while --dolist-tail-- (setq p (car --dolist-tail--)) (if (not (package-installed-p p)) (progn (package-install p))) (setq --dolist-tail-- (cdr --dolist-tail--))))
eval-buffer(#<buffer *load*> nil "/home/ngupta/.emacs.d/init.el" nil t) ; Reading at buffer position 1037
load-with-code-conversion("/home/ngupta/.emacs.d/init.el" "/home/ngupta/.emacs.d/init.el" t t)
load("/home/ngupta/.emacs.d/init" t t)
#[0 "\205\262
这是我的init.el供参考:
(require 'package) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) (package-initialize) (setq url-using-proxy t) (setq url-proxy-services '(("no_proxy" . "^\\(localhost\\|10.*\\)") ("http" . "www-proxy.us.mycompany.com:80") ("https" . "www-proxy.us.mycompany.com:80") ("ftp" . "www-proxy.us.mycompany.com:80")))
答案 0 :(得分:0)
您可以尝试使用这些变量
MapViewController