Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
AdamKirby07 opened this issue Jan 5, 2025 · 4 comments
Closed

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

AdamKirby07 opened this issue Jan 5, 2025 · 4 comments
Assignees
Labels
Type: Bug Type: Works For Me We are unable to reproduce the reported bug

Comments

@AdamKirby07
Copy link

AdamKirby07 commented Jan 5, 2025

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.

@per1234 per1234 self-assigned this Jan 5, 2025
@per1234
Copy link
Collaborator

per1234 commented Jan 5, 2025

Thanks for your report @AdamKirby07. Arduino IDE 1.x is no longer under active development. Please try the latest version of Arduino IDE 2.x and then let us know whether the fault still occurs when using that version.

You can download Arduino IDE 2.x from the links listed on the "Software" page of Arduino's website:

https://www.arduino.cc/en/software

@per1234 per1234 added the Waiting for feedback More information must be provided before we can proceed label Jan 5, 2025
@AdamKirby07
Copy link
Author

AdamKirby07 commented Jan 5, 2025 via email

@AdamKirby07
Copy link
Author

Thanks for your report @AdamKirby07. Arduino IDE 1.x is no longer under active development. Please try the latest version of Arduino IDE 2.x and then let us know whether the fault still occurs when using that version.

You can download Arduino IDE 2.x from the links listed on the "Software" page of Arduino's website:

https://www.arduino.cc/en/software

Version 2.0 is unsuitibel for the development of a core many people have issue s and say to use 1

@per1234
Copy link
Collaborator

per1234 commented Jan 5, 2025

The 2.0 dose not recognise local cores.

It certainly does. I think this will be better handled over on Arduino Forum. Please make a post about the problem over there:

https://forum.arduino.cc/c/development-tools/ide-1-x/18

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 5, 2025
@per1234 per1234 added Type: Works For Me We are unable to reproduce the reported bug and removed Waiting for feedback More information must be provided before we can proceed labels Jan 5, 2025
@arduino arduino locked as resolved and limited conversation to collaborators Jan 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Bug Type: Works For Me We are unable to reproduce the reported bug
Projects
None yet
Development

No branches or pull requests

2 participants