raspberrypi / pico-project-generator

Tool to automatically generate a Pico C SDK Project
BSD 3-Clause "New" or "Revised" License
289 stars 74 forks source link

Multi-line f-string for vs code configuration file contents #87

Open paulober opened 12 months ago

ndabas commented 12 months ago

Not exactly related to what this PR is addressing, but a somewhat larger discussion: should we consider keeping all of these config files in a single source somewhere? As it stands we have three "official" locations:

Users are certainly confused about which set is the latest and greatest one, so it would make sense to have just one location.

I think the pico-examples repo might be a good candidate, because that would work for people using our installer or generator, and also for people DIY'ing their toolchain. I can set up the installer to pull from the pico-examples repo. Maybe we can set up the generator to do the same, or include it in releases.

JamesH65 commented 12 months ago

I have been wondering about converting this part of the generator to use some sort of template which the generator then fills in the fields. Those templates could be anywhere.

Jinja was one templating library that has been suggested.

lurch commented 12 months ago

Not exactly related to what this PR is addressing, but a somewhat larger discussion: should we consider keeping all of these config files in a single source somewhere?

That sounds like an excellent question. Ping @P33M @kilograham @ghollingworth