I am adding a custom platform to Platformio. I am unable to find a way to add platform specific tasks, like ESP32 has platform specific project tasks as highlighted below.
Similar way I need custom task for my platform. How can I add them? I searched in platforms/espressif32 I could not find anything that add those task to the list.
I think what youâre after is Custom Tasks⌠I donât know if theyâre added to project tasks list, but they should be available through the main âRun taskâ option anywayâŚ
I am looking for custom task but they should be added by itself when platform is selected. Just like in case of ESP32 the highlighted tasks get added by itself. There is no entry to be made by user or no tasks.json needs to be created. I searched pio core as well as platform source of esp32 I could not search for âErase Flashâ string anywhere. I am not sure how or where these tasks get added. I hope you get my real question now.
Thank you so much. Atleast now I know where is it coming from
But now the question is, Does node-helpers have options to hook platform specific tasks? Looking at the source I dont think there is any option of that sort. Its all hardcoded for platforms
{
name: 'Upload using Programmer and Set Fuses',
args: ['run', '--target', 'fuses', '--target', 'program'],
multienv: true,
filter: data => data.platform.includes('atmelavr')
},
I would rather post an issue in the node-helpers repo, That might be the best thing to do.
@ivankravets will be the best person to comment on the ability to add tasks to the projects list in the VSCode extension, but posting an issue probably wonât hurt. He usually responds within a day or so if specifically mentioned though.
I was using env.Alias earlier, changed it to AddCustomTarget and I can see the target in PIO CLI but it does not show in project tasks. which is the main question here.