Skip to content

Setting -ferror-limit in .Rproj.user compilation-database/config.json file #19367

Description

@TimTaylor

Is it possible to set -ferror-limit in the auto generated compilation-database/config.json file within .Rproj.user?

Every now and then when I write C code in RStudio I find that diagnostics stop working. Setting .rs.setClangDiagnostics(2) shows this generally seems to be due to clang stopping due to the number of errors reported:

fatal error: too many errors emitted, stopping now [-ferror-limit=]

Manually setting "-ferror-limit=0" in the generated config.json file gives me a temporary fix but doesn't stay. Is there any way I can configure that argument?

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions