platformio-vscode-ide icon indicating copy to clipboard operation
platformio-vscode-ide copied to clipboard

platformio.ini user comments deleted by adding a library

Open pdppdp opened this issue 11 months ago • 4 comments

To duplicate:

  1. create a project
  2. add comments to platformio.ini
  3. open pio home, traverse to libraries, pick one, add to this project
  4. open platformio.ini for project, added comments will be gone

pdppdp avatar Jan 04 '25 08:01 pdppdp

That doesn't make sense. Most platformio users have platformio files with comments, including the sample file at https://docs.platformio.org/en/latest/projectconf/index.html I personally have files with mixtures of the documented ; character and concur that "Lines beginning with ; are ignored and may be used to provide comments" and that ; works as a comment in the middle of the line. The example platformio.ini on that page (and that's generated automatically) contains comments. It's safe to say that your system/workflow is somehow unique.

I'm not a developer here, but perhaps your question would attract more attention with a step-by-step repro case with enough information to reproduce your case (OS, versions, sample files, key-by-key examples, etc.) to help the developers help you. Be specific because there's something you're doing that separates you from others. If comments were regularly eaten by the program, developers would be here with torches.

robertlipe avatar Apr 25 '25 05:04 robertlipe

Exactly the same issue for me. I have been using a platformio.ini file with comments for months without problems. Started browsing trough my Platforms and Boards and all comments and tab indenting disappeared. Very very bad behaviour this!!!

Fabimawn avatar May 29 '25 21:05 Fabimawn

This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 29 '25 02:07 stale[bot]

.

Fabimawn avatar Jul 29 '25 07:07 Fabimawn