spacemacs 重启后 (require 'org)报错

org

#1

挺奇怪的一个问题,直接启动emacs 不会有啥问题,如果使用spacemacs/restart-emacs 重启后 (require 'org)就会出错,出错原因是:
Debugger entered–Lisp error: (file-error “Creating directory” “No such file or directory” “/var/folders/qq/hwq1nxjn7ng_whzhmsnnyv580000gq/T/babel-547245Qd”)
make-directory("/var/folders/qq/hwq1nxjn7ng_whzhmsnnyv580000gq/T/babel-547245Qd")
我自己试了下直接在scratch里调用 (make-directory “/var/folders/qq/hwq1nxjn7ng_whzhmsnnyv580000gq/T/babel-547245Qd”) 也是会报错的.
找了一圈也没找到特别好的思路来解决,也不太像是权限问题…


#2

完整的 Backtrace 应当会显示谁在执行 (make-directory ...)


#3

完整的backtrace 里头指向到 (require ‘ob-core) 里面的这句
byte-code(“\204!\302\301!\204!\303\302\301!\203e\304 !\203e \206\305\306\307”!\210\310\311\312\313\314DD\315\316\317\320\321&a\207" [noninteractive org-babel-temporary-directory boundp (lambda (def-tmp-var) (defvar org-babel-temporary-directory def-tmp-var "Directory to hold temporary files created to execute code blocks.\nUsed by `org-babel-temp-file’. This directory will be removed on\nEmacs shutdown.")) file-exists-p make-temp-file “babel-” t custom-declare-variable org-babel-remote-temporary-directory funcall function #[0 “\300\207” ["/tmp/"] 1 “/tmp/”] “Directory to hold temporary files on remote hosts.” :group org-babel :type string] 8)
还有一件很神奇的事就是重启后files.el.gz 会打不开.