2

I installed Conquer Of Completion (COC) plugin and now I can edit C++ projects with Vim taking advantage of syntax highlighting, autocompletion, inline error messages, etc. But when I try to open bitcoin source code files I get too many errors, like:

Too many errors emitted, stopping now 'wallet/coinselection.h' file not found Unknown type name 'OutputGroup' Etc.

Is there a best practice to work with the bitcoin source code in Vim, or at least some general recommendations you can share?

Thanks!

8
  • We would need your code to reproduce the problem. But maybe the message of coc is correct and ther are many warning to report in the source file. Aug 27, 2022 at 21:00
  • 1
    It’s an open source project github.com/bitcoin/bitcoin code compiles w/o errors Aug 27, 2022 at 22:02
  • Thanks, I'll have a look. Which lsp did you install for c++? Aug 28, 2022 at 2:10
  • 1
    Thanks, Not sure if I installed lsp, what are the options? This is my coc-settings.json: { "clangd.path": "~/.config/coc/extensions/coc-clangd-data/install/14.0.0/clangd_14.0.0/bin/clangd" } Aug 28, 2022 at 4:44
  • 1
    Thanks. I made a short screencast, youtu.be/T8JXtA0XUzM , maybe I configured something wrong. With this update I'm getting the <Tab> mapping warning I have to fix that too. Aug 28, 2022 at 5:48

1 Answer 1

1

It is actually clangd configuration that you have to change.

Create a .clangd file in your user folder (~/.clangd)

CompileFlags:
  Add: -ferror-limit=0

The problem has been reported at: Too many errors emitted, stopping now

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.