Emacs noob在这里,出于某种原因,当我尝试
时~/.emacs
编辑: 我找到了类似的here,但没有明确的答案。
但是,这是我在进行堆栈跟踪时得到的结果:
Debugger entered--Lisp error: (file-error "Searching for program" "no such file or directory" "global")
call-process("global" nil #<buffer *CEDET Global*> nil "-pq")
apply(call-process "global" nil #<buffer *CEDET Global*> nil "-pq")
cedet-gnu-global-call(("-pq"))
cedet-gnu-global-root()
(if (cedet-gnu-global-root) (setq semanticdb-project-system-databases (cons ... semanticdb-project-system-databases) semanticdb-find-default-throttle (append semanticdb-find-default-throttle ...)) (if dont-err-if-not-available nil (error "No Global support in %s" default-directory)))
semanticdb-enable-gnu-global-in-buffer(t)
semanticdb-enable-gnu-global-hook()
run-hooks(semantic-init-mode-hook)
semantic-new-buffer-fcn()
run-hooks(mode-local-init-hook)
#[nil "\300 \210\301\302!\207" [activate-mode-local-bindings run-hooks mode-local-init-hook] 2]()
mode-local-map-file-buffers(#[nil "\300 \210\301\302!\207" [activate-mode-local-bindings run-hooks mode-local-init-hook] 2] #[nil " =?\207" [mode-local--init-mode major-mode] 2] (#<buffer visualizer.cpp>))
mode-local-post-major-mode-change()
run-hooks(find-file-hook)
after-find-file(nil t)
find-file-noselect-1(#<buffer visualizer.cpp> ~/Documents/visualizer.cpp" nil nil "~/Documents/visualizer.cpp" (11403418 2054))
find-file-noselect("~/Documents/visualizer.cpp" nil nil t)
find-file("~/Documents/visualizer.cpp" t)
call-interactively(find-file nil nil)
call-process("global" nil #<buffer *CEDET Global*> nil "-pq")
apply(call-process "global" nil #<buffer *CEDET Global*> nil "-pq")
cedet-gnu-global-call(("-pq"))
cedet-gnu-global-root()
(if (cedet-gnu-global-root) (setq semanticdb-project-system-databases (cons ... semanticdb-project-system-databases) semanticdb-find-default-throttle (append semanticdb-find-default-throttle ...)) (if dont-err-if-not-available nil (error "No Global support in %s" default-directory)))
semanticdb-enable-gnu-global-in-buffer(t)
semanticdb-enable-gnu-global-hook()
run-hooks(semantic-init-mode-hook)
semantic-new-buffer-fcn()
run-hooks(mode-local-init-hook)
#[nil "\300 \210\301\302!\207" [activate-mode-local-bindings run-hooks mode-local-init-hook] 2]()
mode-local-map-file-buffers(#[nil "\300 \210\301\302!\207" [activate-mode-local-bindings run-hooks mode-local-init-hook] 2] #[nil " =?\207" [mode-local--init-mode major-mode] 2] (#<buffer visualizer.cpp>))
mode-local-post-major-mode-change()
run-hooks(find-file-hook)
after-find-file(nil t)
find-file-noselect-1(#<buffer visualizer.cpp> ~/Documents/visualizer.cpp" nil nil "~/Documents/visualizer.cpp" (11403418 2054))
find-file-noselect("~/Documents/visualizer.cpp" nil nil t)
find-file("~/Documents/visualizer.cpp" t)
call-interactively(find-file nil nil)
答案 0 :(得分:3)
它只发生在C ++ - 文件吗?
;; gnu global support
(require 'semanticdb-global)
(semanticdb-enable-gnu-global-databases 'c-mode)
(semanticdb-enable-gnu-global-databases 'c++-mode)
该错误似乎表明您的路径中找不到GNU Global。