差不多正常编译,调用SPC p c projectile-compile-project,spacemacs都会卡死。虽说可以使用终端中来编译,但是使用emacs编译可以直接跳转定位到出错的位置,这个很方便。请问,由什么办法可以解决这个问题么?谢谢
你编译的是什么工程,使用的编译命令是什么?另外,你最好把你的配置的信息贴一下。
使用 SPC h I
然后把你的信息详细说明一下。
编译的是常规的C++程序, github中的spark/firmware,是采用的makefie, 调用的是 make PLATFORM=photon, 以下是配置信息。非常感谢子龙山人!
System Info
- OS: gnu/linux
- Emacs: 24.5.2
- Spacemacs: 0.105.22
- Spacemacs branch: master (rev. 9f9faa4)
- Graphic display: t
- Distribution: spacemacs
- Editing style: vim
- Completion: helm
- Layers:
((auto-completion :variables auto-completion-return-key-behavior 'complete auto-completion-tab-key-behavior 'cycle auto-completion-complete-with-key-sequence nil auto-completion-complete-with-key-sequence-delay 0.1 auto-completion-private-snippets-directory "~/.spacemacs.d/snippets/" auto-completion-enable-snippets-in-popup t auto-completion-enable-help-tooltip t auto-completion-enable-sort-by-usage t)
better-defaults emacs-lisp git markdown
(org :variables org-enable-github-support t)
(shell :variables shell-default-height 30 shell-default-position 'bottom)
spell-checking syntax-checking
(chinese :variables chinese-default-input-method 'chinese-pyim chinese-enable-fcitx t chinese-enable-youdao-dict t)
(c-c :variables c-c -default-mode-for-headers 'c -mode)
(colors :variables colors-enable-nyan-cat-progress-bar t)
version-control gtags games ranger)
Backtrace
BACKTRACE IF RELEVANT
从这里看不出来有什么问题,可以等卡死的时候调用命令: pkill -SIGUSR2 -i emacs
来恢复,这此的 stack trace 发出来看看。
stack trace:
Debugger entered–entering a function:
- eval((spaceline-ml-main)) redisplay_internal\ (C\ function)()
发现再按几次,就可以继续编译了。
好奇怪!!!
估计是spaceline的依赖package的版本问题。这个问题也出现在下面链接: http://www.gitterforum.com/discussion/syl20bnr-spacemacs?page=7712 通过SPC h d p,找出space-line的依赖package的版本号。 iPackage-Requires: ((emacs “24.3”) (cl-lib “0.5”) (powerline “2.3”) (dash “2.11.0”) (s “1.10.0”)) 但是Version: 20160508.2357 for packade s。 讨论中,说恢复之前版本就没有这个问题。