【问题标题】:Qt4 include file prevent emacs semantic or auto complete from working?Qt4包含文件阻止emacs语义或自动完成工作?
【发布时间】:2012-08-03 15:37:12
【问题描述】:

我花了很多时间来配置和测试 Qt4 的 emacs 语义和自动完成功能。 由于间接包含,我发现这些甚至无法解析或找到 Qt4 包含文件。 例如,QString>include qstring.h (include ../../src/tools/qstring.h, mingw) 我总是得到“错误的类型参数:stringp,nil”(在 Linux 或 Mingw 上尝试) 我不知道 Lisp。你能帮我解决这个问题吗? 非常感谢!

调试跟踪如下:

 Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  call-process(nil nil #<buffer *clang-output*> nil "-cc1" "-fsyntax-only" "-I~/project/qt481-mingw/include" "-I~/project/qt481-mingw/include/Qt" "-I~/project/qt481-mingw/include/QtCore" "-I~/project/qt481-mingw/include/QtGui" "-code-completion-at" "c:/Users/ygao/project/tests/test-qt-semantic.cpp:13:8" "c:/Users/ygao/project/tests/test-qt-semantic.cpp")

  apply(call-process nil nil #<buffer *clang-output*> nil ("-cc1" "-fsyntax-only" "-I~/project/qt481-mingw/include" "-I~/project/qt481-mingw/include/Qt" "-I~/project/qt481-mingw/include/QtCore" "-I~/project/qt481-mingw/include/QtGui" "-code-completion-at" "c:/Users/ygao/project/tests/test-qt-semantic.cpp:13:8" "c:/Users/ygao/project/tests/test-qt-semantic.cpp"))

  (if ac-clang-auto-save (apply (quote call-process) ac-clang-executable nil buf nil args) (apply (quote call-process-region) (point-min) (point-max) ac-clang-executable nil buf nil args))

【问题讨论】:

    标签: emacs qt4 elisp emacs23 qt4.8


    【解决方案1】:

    从堆栈跟踪来看,ac-clang-executable 似乎为零。尝试M-x customize-option RET ac-clang-executable 并将其设置为您的clang 二进制文件的路径。

    【讨论】:

      猜你喜欢
      • 2010-12-03
      • 1970-01-01
      • 2014-08-08
      • 1970-01-01
      • 1970-01-01
      • 2011-08-05
      • 2016-06-04
      • 2012-10-09
      • 2018-07-29
      相关资源
      最近更新 更多