Sarcasm / irony-mode

A C/C++ minor mode for Emacs powered by libclang
GNU General Public License v3.0
906 stars 99 forks source link

completion fails on when using command lines options #494

Open trax44 opened 6 years ago

trax44 commented 6 years ago

Bonjour,

Completion works fine on a simple file (so emacs conf should be fine I guess)

but fails on a full project (cmake/(ninja|makefile))

This is appended in irony logs

execute: Command{action=Command::SetUnsaved, file='/home/trax/XXXX.cpp', unsavedFile='/tmp/irony-unsaved-5523I5H', dir='', line=0, column=0, prefix='', caseStyle='exact', flags=[], opt=off}
execute: Command{action=Command::Complete, file='/home/trax/XXXX.cpp', unsavedFile='', dir='', line=24, column=5, prefix='', caseStyle='exact', flags=['-x', 'c++', '-working-directory', '/home/trax/XXX/build_make/src', '-I/home/trax/XXX/src', '-I/home/trax/XXX/build_make/src', '-isystem', '/home/trax/.hunter/_Base/4c27150/6e7b155/cb5b22b/Install/include', '-isystem', '/home/trax/.hunter/_Base/4c27150/6e7b155/cb5b22b/Install/include/cryptopp', '-Wall', '-std=c++17', '-g', '-O0', '-Wall', '-std=c++17'], opt=off}
execute: Command{action=Command::Candidates, file='', unsavedFile='', dir='', line=0, column=0, prefix='', caseStyle='case-insensitive', flags=[], opt=off}

irony version 1.2.0 libclang 3.9