Skip to content

Add diagnostics in the preprocessor #2511

Closed
@alessio-perugini

Description

@alessio-perugini
Contributor

Describe the request

Add diagnostics support in the preprocessing.
In #2182 we implemented the support of diagnostics in the compilation phase.
The parser should be able to handle the output coming from the processor as GCC backs it.

Describe the current behavior

Currently, we support the new diagnostics field only when something bad happens in the compilation.

Arduino CLI version

main

Operating system

Linux

Operating system version

Ubuntu 23.04

Additional context

As an example, we should see diagnostics if we use this sketch:

#ouch!
void setup() {}
void loop() {}

Issue checklist

  • I searched for previous requests in the issue tracker
    I verified the feature was still missing when using the nightly build
    My request contains all necessary details

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

topic: codeRelated to content of the project itselftype: enhancementProposed improvement

Type

No type

Projects

No projects

Relationships

None yet

    Development

    Participants

    @alessio-perugini

    Issue actions

      Add diagnostics in the preprocessor · Issue #2511 · arduino/arduino-cli