Hi, I have recently installed vsscode and platformio, I have got to a stage where I can create open, edit and save my projects. So next step is version control and I use Git, so I was pleased to see that I can clone a Git repo. However, I have the problem described below when cloning my Git repo:
from platformio quick access, i picked Clone Git Repo and provided a target folder in the platformio projects:
c:\users\paul\documents\platformio\projects\
I made some small test changes, then used the available commands to stage and commit. All went well on the git commands front, but:
When I closed vsscode and returned later to open the ‘stepper’ project I got the message that it wasn’t a platformio project because there was no platformio.ini, so I copied one from another of my projects into the ‘stepper’ folder and closed vsscode.
When I start vsscode and goto platformio home to open the project, it now opens fine but when I try to compile it I get the error ‘nothing to build’ and the problem indicated is that the source code needs to be in
c:\users\paul\documents\platformio\projects\stepper\src
Probably prior to cloning my git repo I need to change the folder structure to accommodate the platformio folder structure? Would that help? Or should platformio provide the structure when it clones the repo?
I’m just aware that there are other folders in platformio structure :
.pio
.vscode
include
lib
src
test
and I’m likely to fall foul again if I don’t have them.
If I include the folders will platformio populate them automatically?
thanks for help,
Paul