entered--Lisp error: (wrong-type
2016-09-23 本文已影响68人
齐格Insight
今天我打开一个新的elisp文件,emacs报了如下错误:
entered--Lisp error: (wrong-type-argument stringp 69)
可是我的配置一点都没改,怎么突然变成这样了?果断打开debug开关
M-x toggle-debug-on-error
发现*Backtrace*如下:
Debugger entered--Lisp error: (wrong-type-argument stringp 69)
string-match("\n" 69 0)
split-string(69 "\n")
semantic-gcc-fields(69)
semantic-gcc-setup()
byte-code("\306\307!\210\306\310!\210\306\311!\210\306\312!\210\306\313!\210\306\314!\210\306\315!\210\306\316!\210\306\317!\210\306\320!\210\321\322!\2037�\323\324\325\326#\210\202<�\327\330\331\"\210\332\333��\334 \335�#\210\336\337 \"*\210\340\302\341\342\343\344\343\307\345\346\347\350&�\210\n�\351\352�BC\353\333#\210\336\354\333\"\210�\210)\334\352\333��\355\f!\356��; \204\224��<\211�\204\224��=��0\205\223�\357�;�0\"� \203\277�
\204\277� \360N\203\256�\357�; \360N\"\211�\204\224� \211�\335N\206\271� \361N)\211�\204\230�
,\362\363#\210\334\352\333\302#\210\340\364\356\365\343\344\343\307\345\366& \210�4�>\351\367�>BC\353\333#\210\336\370\333\"\210�>\210)\334\367\333��\355\f!\356��; \204���<\211�\204���=��0\205��\357�;�0\"� \203@�
\204@� \360N\203/�\357�; \360N\"\211�\204�� \211�\335N\206:� \361N)\211�\204��
,\362\363#\210�?\371>\203P�\372 \210\356\207" [parent mode semantic-c-dependency-system-include-path tmp0 symbol bind require semantic semantic/analyze semantic/analyze/refs semantic/bovine semantic/bovine/gcc semantic/idle semantic/lex-spp semantic/bovine/c-by semantic/db-find hideif fboundp c-end-of-macro byte-code "\300\301\302\"\207" [defalias semantic-c-end-of-macro c-end-of-macro] 3 defalias semantic-c-end-of-macro #[nil "\300�\210`Sf\301=\205��m?\205��\300u\210\202��\207" [nil 92] 2 "Go to the end of a preprocessor directive.\nMore accurately, move point to the end of the closest following line\nthat doesn't end with a line continuation backslash.\n\nThis function does not do any hidden buffer changes."] c++-mode c-mode put mode-local-parent mode-local-map-mode-buffers activate-mode-local-bindings custom-declare-variable (quote ("/usr/include")) "The system include path used by the C language." :group c :type (repeat (directory :tag "Directory")) :set #[(sym val) "\303� \"\210 �\304\305\nBC\306\307#\210\310\311\307\"\210\n\210)\312\313!\205\"�\310\313\307\"\207" [sym val tmp0 set-default mode-local-bind semantic-dependency-system-include-path (mode-variable-flag t) c-mode mode-local-map-mode-buffers #[nil "\302\301!\210�\211�\207" [tmp0 semantic-dependency-system-include-path make-local-variable] 2] fboundp semantic-decoration-unparsed-include-do-reset] 4] mode-local-bind semantic-dependency-system-include-path (mode-variable-flag t) #[nil "\302\301!\210�\211�\207" [tmp0 semantic-dependency-system-include-path make-local-variable] 2] symbol-name nil intern-soft mode-local-symbol-table derived-mode-parent ...] 12)
require(semantic/bovine/c)
eval-buffer(#<buffer *load*> nil "/Users/aborn/.emacs.d/elpa/srefactor-20160420.1533/srefactor.el" nil t) ; Reading at buffer position 4044
load-with-code-conversion("/Users/aborn/.emacs.d/elpa/srefactor-20160420.1533/srefactor.el" "/Users/aborn/.emacs.d/elpa/srefactor-20160420.1533/srefactor.el" nil t)
require(srefactor)
spacemacs/lazy-load-srefactor()
run-hooks(change-major-mode-after-body-hook prog-mode-hook emacs-lisp-mode-hook)
apply(run-hooks (change-major-mode-after-body-hook prog-mode-hook emacs-lisp-mode-hook))
run-mode-hooks(emacs-lisp-mode-hook)
emacs-lisp-mode()
set-auto-mode-0(emacs-lisp-mode nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
find-file-noselect-1(#<buffer init-aborn.el> "~/.spacemacs.d/init-aborn.el" nil nil "~/.spacemacs.d/init-aborn.el" (91355377 16777220))
find-file-noselect("/Users/aborn/.spacemacs.d/init-aborn.el")
ido-buffer-internal(raise-frame)
ido-switch-buffer()
call-interactively(ido-switch-buffer nil nil)
command-execute(ido-switch-buffer)