Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not showing ALL Errors in CXX #574

Closed
levihuayuzhang opened this issue Dec 26, 2023 · 2 comments
Closed

Not showing ALL Errors in CXX #574

levihuayuzhang opened this issue Dec 26, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@levihuayuzhang
Copy link

levihuayuzhang commented Dec 26, 2023

Wondering if there has an upper limits for showing the error?
I opened one file contains 56 errors but clangd only shows first 20s (in editor and problems window)

System information
Clangd version (from the log, or clangd --version): 14.0.0
clangd extension version: newest stable
Operating system: Ubuntu in WSL2

My arguments

"clangd.arguments": [
        "--background-index",
        "--log=verbose",
        "--pretty",
        "--all-scopes-completion",
        "--completion-style=detailed",
        "--header-insertion=iwyu",
        "--clang-tidy",
        "--j=10",
        "--pch-storage=memory",
        "--function-arg-placeholders=false",
        "--compile-commands-dir=build"
    ],

Thanks a lot.

@levihuayuzhang levihuayuzhang added the bug Something isn't working label Dec 26, 2023
@HighCommander4
Copy link
Contributor

Stopping after 20 errors is the default behaviour of the clang frontend.

You can override this using -ferror-limit=0 (see https://clang.llvm.org/docs/UsersManual.html#cmdoption-ferror-limit), which you could add to the commands clangd uses for parsing your files by adding the following to .clangd:

CompileFlags:
  Add: [-ferror-limit=0]

@levihuayuzhang
Copy link
Author

Thanks a lot~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants