Multiple users working on the same code via git

mbastida
Posts: 7
Joined: Wed Jul 06, 2022 6:55 am

Multiple users working on the same code via git

Postby mbastida » Wed Jul 06, 2022 7:43 am

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?

User avatar
gtjoseph
Posts: 92
Joined: Fri Oct 15, 2021 10:55 pm

Re: Multiple users working on the same code via git

Postby gtjoseph » 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.

mbastida
Posts: 7
Joined: Wed Jul 06, 2022 6:55 am

Re: Multiple users working on the same code via git

Postby mbastida » Fri Jul 08, 2022 11:35 am

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?

User avatar
gtjoseph
Posts: 92
Joined: Fri Oct 15, 2021 10:55 pm

Re: Multiple users working on the same code via git

Postby gtjoseph » Fri Jul 08, 2022 2:48 pm

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.

Who is online

Users browsing this forum: No registered users and 52 guests