We are starting to develop an aplication based on the ESP32.
We are two programmers that will work on the same code using git.
Each of these users has installed esp-idf via vscode on the recomended path (which is C:/Users/{username}/esp).
However, when user 1 git pulls the code of user2 the code gives an error on build. From the output build of user1 you can see that the error is because the path in which esp-idf is expected is C:/Users/user2/esp.
So the question is how do you create a system that overcomes this limitation?
Do you install the esp-idf on the C:/ path directly?
Do you map a network drive to the C:/Users/{username}/esp path?
Is there a better option?
Multiple users working on the same code via git
Re: Multiple users working on the same code via git
Make sure that the ".vscode" and "build" directories aren't checked into git. They should be user-specific.
Re: Multiple users working on the same code via git
Hi @gtjoseph:
All right. Lets supose that user1 creates the repository and initializes the project. Said user adds BUILD and .vscode to the gitignore.
Now user2 clones the repo and tries to start working. The .vscode folder will not automatically be generated? How does he have to proceed?
Re: Multiple users working on the same code via git
I'm not a vscode expert but I believe that as soon as you open the folder with vscode, it'll create that directory. Just like if you opened one of the esp-idf example projects. There's no .vscode directory in those.mbastida wrote: ↑Fri Jul 08, 2022 11:35 amAll right. Lets supose that user1 creates the repository and initializes the project. Said user adds BUILD and .vscode to the gitignore.
Now user2 clones the repo and tries to start working. The .vscode folder will not automatically be generated? How does he have to proceed?
Who is online
Users browsing this forum: No registered users and 13 guests