Open imcvampire opened 7 years ago
Sorry for the delay. What's the contents of compile_commands.json
? This sounds like it's a problem with that file not being valid JSON.
Sorry but I can't get your point. What do you mean about compile_commands.json
?
@imcvampire he means http://clang.llvm.org/docs/JSONCompilationDatabase.html
I just tested with a single .cpp
file with no compile_commands.json
@imcvampire You can make a file like that yourself, but you should use CMake. CMake versions 2.8 and above with
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
somewhere in CMakeLists.txt should do just fine. Some references: Official tutorial Documentation All links above should be available in the man database, if you have cmake installed. If you want to write the file yourself, however, see the link @toogley gave you.
I'm facing the same issue. I modified deoplete_clang2.py so that it would show me the contents of the json file if the json.load fails. The result is that the file exists but is empty. I have checked out the deoplete-clang commit 8877dda0a474824. I'm on Archlinux using the clang package version 5.0.1-2.
This is full messages: