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

Issue with symlink #472

Open ghost opened 6 years ago

ghost commented 6 years ago

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.