compile_commands.json generated ERROR with ccls under VIM mode #20369

issue Yihen-Liu opened this issue on November 11, 2020
  1. Yihen-Liu commented at 9:48 AM on November 11, 2020: none

    <!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->

    <!-- Describe the issue -->

    $ ./autogen.sh $ ./configure -without-gui $ compliedb -n make

    when I use vim to open the project , the are some warning information display as follow: WX20201111-174002

    which are all about c++ standard library. does it have relationship to Makefile which was auto generated by autopen.sh? Expected behavior NO ERROR DISPLAY

    <!--- What behavior did you expect? -->

    Actual behavior

    <!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->

    To reproduce

    <!--- How reliably can you reproduce the issue, what are the steps to do so? -->

    System information bitcoin version: commit-id 218fe60d91a9190aa0ee561479044df368214766

    <!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->

    <!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->

    <!-- GUI-related issue? What is your operating system and its version? If Linux, what is your desktop environment and graphical shell? -->

    <!-- Any extra information that might be useful in the debugging process. -->

    <!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->

  2. Yihen-Liu added the label Bug on Nov 11, 2020
  3. fanquake removed the label Bug on Nov 11, 2020
  4. fanquake commented at 9:53 AM on November 11, 2020: member

    This seems like a configuration issue with your editor, and not a problem with Bitcoin Core. I have used compiledb to generate a compile_commands.json before, see here: https://github.com/fanquake/core-review/blob/master/clang-tools.md#generating-a-compilation-database, however we have no official documentation relating to its usage, or for editor configuration.

  5. MarcoFalke added the label Questions and Help on Nov 11, 2020
  6. Yihen-Liu commented at 11:27 AM on November 12, 2020: none

    @fanquake thanks for your mention. I have solved this problem by following website: https://stackoverflow.com/questions/61150687/how-to-add-include-path-for-language-servers-in-coc-settings-json-file

    "initializationOptions": {
    "cache": {
    "directory": "/tmp/ccls"
    },
    "clang": {
    "extraArgs": [
    "-I",
    "/opt/ros/kinetic/include/"
    ]
    }
    }

    the MAIN REASON is coc.vim setting is incorrect about ccls;

  7. Yihen-Liu closed this on Nov 12, 2020

  8. DrahtBot locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 09:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me