Closed jiangjianshan closed 4 years ago
Hello. The first line of .ccls
should be %compile_commands.json
, instead of %compile_commands.json%
@MaskRay , sorry for late reply. Why the issue has been closed? I write the issue a long time ago and take some times to see whether there are some reply but don't have them for a long days. I have actually use "%compile_commands.json%" as the picture showing there.
Please re-read MaskRay's comment. You wrote %compile_commands.json%
. That's wrong. It should be %compile_commands.json
(no trailing percent sign).
Please check the docs more carefully and you'll see that they do not use a trailing percent (if you find some docs that are wrong please provide a link to said docs).
@madscientist , thanks for your hint.
**Hello,
System information
git describe --tags --long
): 0.20190823.6-22-gcb08df44Language client (and version): coc.nvim
I have several embedded software project and its C compiler for TriCore which is GNU GCC cross-toolchain but it triple is 'tricore'.
the .ccls file I written is here:
the piece of compile_commands.json is here:
the piece of coc-settings.json is here: "languageserver": { "ccls": { "command": "ccls", "filetypes": [ "c", "cpp", "objc", "objcpp" ], "rootPatterns": [ ".ccls", "compile_commands.json", ".git/", ".svn/", ".hg/" ], "initializationOptions": { "cache": { "directory": ".ccls-cache" }, "cacheFormat": "json", "clang": { "extraArgs": [ "-nostdinc++" ], "excludeArgs": [] }, "client": { "snippetSupport": true }, "completion": { "placeholder": false, "detailedLabel": false, "filterAndSort": false }, "index": { "onChange": true, "trackDependency": 1 } } } }
I have put .ccls and compile_commands.json into the project root directory, they can't work because if I want to jump to one of definition, it will throw out such kind of error:
I think there should be something wrong with my .ccls and compile_commands.json which is using C compiler which name is 'tricore-gcc.exe'. What is the correct setting for these two files? I have look through the wiki inside ccls github but can't find the answer.