我花了很多时间来配置和测试 Qt4 的 emacs 语义和自动完成功能。由于间接包含,我发现这些甚至无法解析或找到 Qt4 包含文件。例如,QString> include qstring.h (include ../../src/tools/qstring.h, mingw) 我总是得到“Wrong type argument: 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))