Skip to content

Sketch content is lost on save #2819

@johonline1

Description

@johonline1

Describe the problem

When the project compilation process starts, the changes to the text should ideally be saved to the hard drive beforehand.

This doesn't always happen reliably.

The last change is frequently omitted. A save command has no effect in this case. Even a small change (additional spaces) doesn't result in a correct save. Only deleting and re-entering the entire line resolves the issue.

More frequently, the last characters of a file are truncated, or non-printable characters are appended to the end.

One of these issues occurs more than once a day.

To reproduce

<Instructions to reproduce not provided by reporter ☹️>

Expected behavior

The file content in the Arduino IDE and on the hard drive should be identical.

Arduino IDE version

2.3.6 but also 2.3.3

Operating system

Windows

Operating system version

10

Additional context

Possible relevant factors:

  • Depending on the task, I split the sketch into multiple files, sometimes up to 10.
  • The files are synchronized using the Synology Drive client.

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

Labels

status: waiting for informationMore information must be provided before work can proceedtopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions