Okay, I'm not sure is it bug of irony or rather of clang, but after spending almost day investigating code and stuff guess this post is reasonable.
TL;DR: irony server can return errors if you work with project through symlink,(clang_parseTranslationUnit(2) in TUManager returns CXErrorASTReadError(very informative... <<) )
To reproduce - in example just create folder 'test', some #helloworld cpp file inside, and symlink on 'test' i.e. 'testsym'.
Create compilation database from 'testsym'. And json will be generated with current path(cmake-3.9.6) or real one(meson-0.44.1)
And then open respectively test/yourapp.cc or testsym/yourapp.cc in emacs and see the error.
Okay, I'm not sure is it bug of irony or rather of clang, but after spending almost day investigating code and stuff guess this post is reasonable.
TL;DR: irony server can return errors if you work with project through symlink,(clang_parseTranslationUnit(2) in TUManager returns CXErrorASTReadError(very informative... <<) )
To reproduce - in example just create folder 'test', some #helloworld cpp file inside, and symlink on 'test' i.e. 'testsym'. Create compilation database from 'testsym'. And json will be generated with current path(cmake-3.9.6) or real one(meson-0.44.1) And then open respectively test/yourapp.cc or testsym/yourapp.cc in emacs and see the error.