Skip to content

Bug Report: Random Parsing Errors in platform.txt (Linux Mint) #12027

Closed as not planned
@AdamKirby07

Description

@AdamKirby07

Describe the problem

I am encountering an issue where the Arduino IDE reports the following error when loading a locally created platform:

loading platform release: Error reading file: Error parsing data at line 1: Invalid line format, should be 'key=value'

The platform.txt file is formatted correctly using the key=value syntax. However, the error occurs on random lines in the file, even for commented-out lines. This behavior is not expected and seems to be completely random, affecting various lines throughout the file.

To reproduce

  1. Create or edit a custom platform.txt file for a locally created platform (not downloaded via the Boards Manager).
  2. Save the file and attempt to load the platform in the Arduino IDE.

🐛 The IDE reports the error "Invalid line format, should be 'key=value'" on random lines, including commented-out lines, which are not supposed to be processed.

Arduino IDE version

latest of v1

Operating system

Linux Mint

Additional context

The error message points to line 1 but the problem persists even after commenting out lines, and it occurs on random lines within the file.


Even valid lines and commented lines trigger errors that shouldn't be flagged.


The issue occurs only with locally created platforms and not with platforms downloaded via the Boards Manager.


The issue is sporadic and random, meaning the error can happen on different lines at different times.


Reinstalling the Arduino IDE or clearing the cache does not resolve the issue.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions