Chorus32-ESP32LapTimer icon indicating copy to clipboard operation
Chorus32-ESP32LapTimer copied to clipboard

PlatformIO (VSCode)

Open TechVic-1 opened this issue 4 years ago • 8 comments

Move Platformio.ini and .gitignore out of ESP32LapTimer folder

TechVic-1 avatar Jul 07 '20 16:07 TechVic-1

If we move platformio.ini we break the build system ;) What is the reason you want to move it?

Smeat avatar Jul 07 '20 19:07 Smeat

NO you don't. This is the first repository that doesn't have the platformio.ini file in root folder. Check any repository that uses vscode and platformIO you will see. I want to move it because platformio doesn't like when it's not in root and using GitHub Desktop then you can't use the built in functions like build and upload. Because platformio doesn't recognize it as an project

TechVic-1 avatar Jul 07 '20 22:07 TechVic-1

Example: MarlinFirmware FireFly-Nano

TechVic-1 avatar Jul 07 '20 22:07 TechVic-1

Without modification it'll break, because it won't find the src folder. As this project also contains other stuff besides the firmware, I don't see any reason or benefit to move it to the root. Just seems like more clutter. It also prevents us from adding other firmwares, which might be the case in the near future. Not clue if there is a clean way to do it, since my pio knowledge is rather limited.

Besides that I am still missing the point. If your program won't recognize the project, can't you just select "ESP32LapTimer" as the root? (Sorry I have absolutely no clue about the software you are using) I think there were some people using it, but the documentation is still TODO.

If you can make a compelling argument why this is beneficial, feel free to submit a pr. But "others do it" isn't a valid argument. A quick search even showed, that there a bunch of projects, which don't have the platformio.ini in their root.

Smeat avatar Jul 07 '20 23:07 Smeat

Yes Okay you need to add the lines in platformio.ini [platformio] src_dir = ESP32LapTimer Check out FireFly-Nano platformio.ini file, here you just uncomment which board you have and hitt build or upload. I just wanted to help make it easier for people to compile it

TechVic-1 avatar Jul 08 '20 05:07 TechVic-1

GitHub desktop

TechVic-1 avatar Jul 08 '20 07:07 TechVic-1

I just wanted to help make it easier for people to compile it

Nothing wrong with that :) I am always happy to get a different perspective, since my knowledge with the GUI-tools is rather limited. I think in this case it is just a problem of the missing documentation.

Having to edit the platformio.ini is something I didn't do by design, since editing the config files of the build system, just to select a different target, is definitely the wrong approach and runtime configuration should always be preferred.

Smeat avatar Jul 08 '20 22:07 Smeat

to select the board environments should be used

s00500 avatar Aug 24 '20 17:08 s00500