Page 1 of 1

Multiple users working on the same code via git

Posted: Wed Jul 06, 2022 7:43 am
by mbastida
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?

Re: Multiple users working on the same code via git

Posted: Fri Jul 08, 2022 11:28 am
by gtjoseph
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

Posted: Fri Jul 08, 2022 11:35 am
by mbastida
gtjoseph wrote:
Fri Jul 08, 2022 11:28 am
Make sure that the ".vscode" and "build" directories aren't checked into git. They should be user-specific.
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

Posted: Fri Jul 08, 2022 2:48 pm
by gtjoseph
mbastida wrote:
Fri Jul 08, 2022 11:35 am
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?
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.