Skip to content

Sketch changes sometimes not written to disk on save #2934

Description

@Kabron287

Describe the problem

Periodically, the sketch code being compiled doesn't match the code in the editor:

Image

Note that line 116 in the editor is:

i2sADC.setBuffers(4, BUF_SIZE);

but the spurious compiler error reports it as instead having the content:

i2sADC.setBuffers(, BUF_SIZE);

It is impossible to reproduce regularly because of random nature.

To reproduce

It is impossible to reproduce regularly because of random nature.

Expected behavior

Code passed to compiler faithfully reflects the code in the Arduino IDE editor.

Arduino IDE version

Any above v2.0

Operating system

Windows

Operating system version

Windows 11 x64

Additional context

Related:

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions