Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP-IDF installation is too convoluted (IDFGH-11746) #12848

Closed
3 tasks done
Joebeazelman opened this issue Dec 20, 2023 · 1 comment
Closed
3 tasks done

ESP-IDF installation is too convoluted (IDFGH-11746) #12848

Joebeazelman opened this issue Dec 20, 2023 · 1 comment
Assignees
Labels
Resolution: Won't Do This will not be worked on Status: Done Issue is done internally Type: Bug bugs in IDF

Comments

@Joebeazelman
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.3-dev-1043-g8c9e29898f

Operating System used.

macOS

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

None

What is the expected behavior?

Ideally, there should be a single folder on my system containing all things related to espressif. If IDF is a product, it should be a subfolder within it. It would be nice if .espessif folder wasn't hidden so it's easier to find by the user if needed.

What is the actual behavior?

Installing IDF creates two interelated directories on my system, ~/esp/esp-idf and ~/.espressif. The first is an actual git repo, whereas the second one isn't. It's unclear why there's a separation between the two installed folders. Both folders contain a tools subdirectory with different types of functions. From the looks of it, it appears the repo is intended to setup the environment.

Steps to reproduce.

  1. Step
  2. Step
  3. Step
    ...

Build or installation Logs.

No response

More Information.

No response

@Joebeazelman Joebeazelman added the Type: Bug bugs in IDF label Dec 20, 2023
@espressif-bot espressif-bot added the Status: Opened Issue is new label Dec 20, 2023
@github-actions github-actions bot changed the title ESP-IDF installation is too convoluted ESP-IDF installation is too convoluted (IDFGH-11746) Dec 20, 2023
@igrr
Copy link
Member

igrr commented Dec 20, 2023

Hi @Joebeazelman,
We made an attempt to explain the purpose of the .espressif directory in this section of the programming guide: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-tools.html

The separation between the two directories — the git repo itself and the "downloadable tools" directory is intentional. Downloadable tools (toolchains, debugging tolls) are typically large archives which are not well suited for being stored in git. At the same time, they change less often than IDF does. It is often possible to use the same version of the tool in multiple versions of IDF, so such a separate tools directory also serves the purpose of not storing multiple copies of the same toolchain even if you have multiple copies of IDF.

Anyway, if you prefer to keep all Espressif-related folders under the same directory, you can. If IDF_TOOLS_PATH environment variable is set, IDF installation scripts will store downloadable tools under that directory, rather than in ~/.espressif. You can set IDF_TOOLS_PATH globally (in your shell profile script, for example) to the desired location.

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Won't Do This will not be worked on and removed Status: Opened Issue is new labels Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Won't Do This will not be worked on Status: Done Issue is done internally Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

4 participants