You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I can't get company working correctly with precompiled headers, nor with cotire, nor manually, otherwise it works perfectly fine.
So my project is organized in a typical way, I have the root containing the first CMakeLists.txt, with build/src/extlib/include... sub folders.
I have generated cmake files in the build directory, and created the json database with the appropriate flags, here is a typical command line :
"command": "/usr/bin/c++ . . . -Winvalid-pch -include /path/to/pch.hpp -std=gnu++1z -o CMakeFiles/main.dir/main.cpp.o -c /path/to/main.cpp",
Now when I open main.cpp with emacs, I get the following error message :
Error from syntax checker irony: Irony-Mode server error: parse-error, "failed to parse file", "/path/to/main.cpp"
after typing some things I get
Irony I/O task: error in callback: (irony-server-error complete-error "failed to perform code completion" "path/to/main.cpp" 15 5)
From what I have tested, removing the "-include ", or the .gch file generated corrects the problem.
The text was updated successfully, but these errors were encountered:
Hi there, I can't get company working correctly with precompiled headers, nor with cotire, nor manually, otherwise it works perfectly fine.
So my project is organized in a typical way, I have the root containing the first CMakeLists.txt, with build/src/extlib/include... sub folders.
I have generated cmake files in the build directory, and created the json database with the appropriate flags, here is a typical command line :
"command": "/usr/bin/c++ . . . -Winvalid-pch -include /path/to/pch.hpp -std=gnu++1z -o CMakeFiles/main.dir/main.cpp.o -c /path/to/main.cpp",
Now when I open main.cpp with emacs, I get the following error message :
Error from syntax checker irony: Irony-Mode server error: parse-error, "failed to parse file", "/path/to/main.cpp"
after typing some things I get
Irony I/O task: error in callback: (irony-server-error complete-error "failed to perform code completion" "path/to/main.cpp" 15 5)
From what I have tested, removing the "-include ", or the .gch file generated corrects the problem.
The text was updated successfully, but these errors were encountered: