brianjcj / auto-complete-clang

auto complete source for clang. AC+Clang+Yasnippet!
190 stars 32 forks source link

Lisp error why autocompleting #33

Open tomluchowski opened 8 years ago

tomluchowski commented 8 years ago

I get lisp error while autocompleting : Here's a colored version of above : http://pastebin.com/GTFwbQJt

Debugger entered--Lisp error: (error "Invalid argument 3 of operation `call-process-region'") call-process-region(1 5932 nil nil #<buffer clang-output> nil "-cc1" "-fsyntax-only" "-x" "c++" "-I/usr/include/c++/4.8" "-I/usr/include/c++/4.8/x86_64-suse-linux" "-I/usr/include/c++/4.8/backward" "-I/usr/lib64/gcc/x86_64-suse-linux/4.8/include" "-I/usr/local/include" "-I/usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed" "-I/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/include" "-I/usr/include" "-I/usr/include/OGRE" "-I/usr/include/OGRE/Ogre" "-I/usr/include/OGRE/OGRE" "-I/home/tom/Opendungeons_github/OpenDungeonstomluchowski/source" "-I/usr/include/glibmm-2.4" "-I/usr/lib64/glibmm-2.4/include" "-I/usr/include/sigc++-2.0" "-I/usr/lib64/sigc++-2.0/include" "-I/usr/include/glib-2.0" "-I/usr/lib64/glib-2.0/include" "-I/usr/include/libxml++-2.6" "-I/usr/lib64/libxml++-2.6/include" "-I/usr/include/libxml2" "-I/usr/include/glibmm-2.4" "-I/usr/include/glibmm-2.4/glibmm" "-I/usr/include/glibmm-2.4/glibmm/private" "-I/usr/include/libxml++-2.6/libxml++" "-I/usr/include/libxml++-2.6/libxml++/exceptions" "-I/usr/include/libxml++-2.6/libxml++/io" "-I/usr/include/libxml++-2.6/libxml++/nodes" "-I/usr/include/libxml++-2.6/libxml++/parsers" "-I/usr/include/libxml++-2.6/libxml++/validators" "-I/usr/include/cegui-0" "-I/usr/include/OIS" "-code-completion-at" "-:85:5" "-") apply(call-process-region 1 5932 nil nil #<buffer clang-output> nil ("-cc1" "-fsyntax-only" "-x" "c++" "-I/usr/include/c++/4.8" "-I/usr/include/c++/4.8/x86_64-suse-linux" "-I/usr/include/c++/4.8/backward" "-I/usr/lib64/gcc/x86_64-suse-linux/4.8/include" "-I/usr/local/include" "-I/usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed" "-I/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/include" "-I/usr/include" "-I/usr/include/OGRE" "-I/usr/include/OGRE/Ogre" "-I/usr/include/OGRE/OGRE" "-I/home/tom/Opendungeons_github/OpenDungeonstomluchowski/source" "-I/usr/include/glibmm-2.4" "-I/usr/lib64/glibmm-2.4/include" "-I/usr/include/sigc++-2.0" "-I/usr/lib64/sigc++-2.0/include" "-I/usr/include/glib-2.0" "-I/usr/lib64/glib-2.0/include" "-I/usr/include/libxml++-2.6" "-I/usr/lib64/libxml++-2.6/include" "-I/usr/include/libxml2" "-I/usr/include/glibmm-2.4" "-I/usr/include/glibmm-2.4/glibmm" "-I/usr/include/glibmm-2.4/glibmm/private" "-I/usr/include/libxml++-2.6/libxml++" "-I/usr/include/libxml++-2.6/libxml++/exceptions" "-I/usr/include/libxml++-2.6/libxml++/io" "-I/usr/include/libxml++-2.6/libxml++/nodes" "-I/usr/include/libxml++-2.6/libxml++/parsers" "-I/usr/include/libxml++-2.6/libxml++/validators" "-I/usr/include/cegui-0" "-I/usr/include/OIS" "-code-completion-at" "-:85:5" "-")) (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)) (setq res (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))) (let ((buf (get-buffer-create "clang-output")) res) (save-current-buffer (set-buffer buf) (erase-buffer)) (setq res (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))) (save-current-buffer (set-buffer buf) (if (eq 0 res) nil (ac-clang-handle-error res args)) (ac-clang-parse-output prefix))) ac-clang-call-process("mPac" "-cc1" "-fsyntax-only" "-x" "c++" "-I/usr/include/c++/4.8" "-I/usr/include/c++/4.8/x86_64-suse-linux" "-I/usr/include/c++/4.8/backward" "-I/usr/lib64/gcc/x86_64-suse-linux/4.8/include" "-I/usr/local/include" "-I/usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed" "-I/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/include" "-I/usr/include" "-I/usr/include/OGRE" "-I/usr/include/OGRE/Ogre" "-I/usr/include/OGRE/OGRE" "-I/home/tom/Opendungeons_github/OpenDungeonstomluchowski/source" "-I/usr/include/glibmm-2.4" "-I/usr/lib64/glibmm-2.4/include" "-I/usr/include/sigc++-2.0" "-I/usr/lib64/sigc++-2.0/include" "-I/usr/include/glib-2.0" "-I/usr/lib64/glib-2.0/include" "-I/usr/include/libxml++-2.6" "-I/usr/lib64/libxml++-2.6/include" "-I/usr/include/libxml2" "-I/usr/include/glibmm-2.4" "-I/usr/include/glibmm-2.4/glibmm" "-I/usr/include/glibmm-2.4/glibmm/private" "-I/usr/include/libxml++-2.6/libxml++" "-I/usr/include/libxml++-2.6/libxml++/exceptions" "-I/usr/include/libxml++-2.6/libxml++/io" "-I/usr/include/libxml++-2.6/libxml++/nodes" "-I/usr/include/libxml++-2.6/libxml++/parsers" "-I/usr/include/libxml++-2.6/libxml++/validators" "-I/usr/include/cegui-0" "-I/usr/include/OIS" "-code-completion-at" "-:85:5" "-") apply(ac-clang-call-process "mPac" ("-cc1" "-fsyntax-only" "-x" "c++" "-I/usr/include/c++/4.8" "-I/usr/include/c++/4.8/x86_64-suse-linux" "-I/usr/include/c++/4.8/backward" "-I/usr/lib64/gcc/x86_64-suse-linux/4.8/include" "-I/usr/local/include" "-I/usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed" "-I/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/include" "-I/usr/include" "-I/usr/include/OGRE" "-I/usr/include/OGRE/Ogre" "-I/usr/include/OGRE/OGRE" "-I/home/tom/Opendungeons_github/OpenDungeonstomluchowski/source" "-I/usr/include/glibmm-2.4" "-I/usr/lib64/glibmm-2.4/include" "-I/usr/include/sigc++-2.0" "-I/usr/lib64/sigc++-2.0/include" "-I/usr/include/glib-2.0" "-I/usr/lib64/glib-2.0/include" "-I/usr/include/libxml++-2.6" "-I/usr/lib64/libxml++-2.6/include" "-I/usr/include/libxml2" "-I/usr/include/glibmm-2.4" "-I/usr/include/glibmm-2.4/glibmm" "-I/usr/include/glibmm-2.4/glibmm/private" "-I/usr/include/libxml++-2.6/libxml++" "-I/usr/include/libxml++-2.6/libxml++/exceptions" "-I/usr/include/libxml++-2.6/libxml++/io" "-I/usr/include/libxml++-2.6/libxml++/nodes" "-I/usr/include/libxml++-2.6/libxml++/parsers" "-I/usr/include/libxml++-2.6/libxml++/validators" "-I/usr/include/cegui-0" "-I/usr/include/OIS" "-code-completion-at" "-:85:5" "-")) (save-restriction (widen) (apply (quote ac-clang-call-process) ac-prefix (ac-clang-build-complete-args (- (point) (length ac-prefix))))) (if (ac-in-string/comment) nil (and ac-clang-auto-save (buffer-modified-p) (basic-save-buffer)) (save-restriction (widen) (apply (quote ac-clang-call-process) ac-prefix (ac-clang-build-complete-args (- (point) (length ac-prefix)))))) ac-clang-candidate() ac-candidates-1(((candidates . ac-clang-candidate) (candidate-face . ac-clang-candidate-face) (selection-face . ac-clang-selection-face) (prefix . ac-clang-prefix) (requires . 0) (document . ac-clang-document) (action . ac-clang-action) (cache) (symbol . "c"))) ac-candidates() ac-update(t) ac-update-greedy(t) auto-complete() call-interactively(auto-complete nil nil)

tomluchowski commented 8 years ago

FIXED : the clang wasn't installed on my system in the first place ...