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

The ESP-IDF path is not installed in the directory which I selected #186

Open
Rainbow-Cai opened this issue May 22, 2023 · 4 comments
Open

Comments

@Rainbow-Cai
Copy link

I used the online installer package to install the Master version of the esp-idf SDK

When I select to install the Master version of esp-idf SDK in my "F:\esp" directory, it will automatically install in my "E:\esp" directory during the installation process. It will installing the "Espressif" files in both my "E:\esp" and "F:\esp" directories at the same time.

As a result, when I install the esp-idf SDK of v5.0 version in the "E:\esp" directory , I cannot use the esp-idf SDK of Master version in "F:\esp" directory at the same time.

My directory structure is as follows:

E:\esp

  • esp-idf-v5.0
  • Espressif

F:\esp

  • esp-idf-master
  • Espressif
    image

The error log is in the attachment.
Setup Log 2023-05-22 #009.txt

@georgik
Copy link
Collaborator

georgik commented May 23, 2023

Thank you @Rainbow-Cai for reporting the issue. The installation consists of two parts:

  • deployment of tools - default location C:\Espressif\ + tools
  • deployment of a framework - default location C:\Espressif\framework\esp-idf-...

Note: It's possible to deploy multiple instances of ESP-IDF. It's not necessary to deploy tooling twice. You can pick the directory for tools from E and then deploy new instance of esp-idf to F.

Just to be sure that I understand the problem well:

  • you have following drives on your computer: C, E, F
  • you have no installation of ESP-IDF before (no environment variable like IDF_TOOLS_PATH set)
  • you select installation on F
  • the deployment deploys both to E and F

@Rainbow-Cai
Copy link
Author

Dear @georgik So, can't I deploy the different version SDK tool in the different folder?
I hope different SDK versions have separate its toolchain.

@georgik
Copy link
Collaborator

georgik commented May 24, 2023

@Rainbow-Cai There is no need to deploy different tooling to different directories.
Initialization scripts of each ESP-IDF are adding correct toolchains for each version of ESP-IDF. So the tooling can be deployed to the same container directory.
ESP-IDF is reading tools.json during initialization to determine the proper version: https://github.com/espressif/esp-idf/blob/master/tools/tools.json
If the toolchain contains the same tools for different versions of ESP-IDF, it will be automatically reused.

@leeebo
Copy link
Contributor

leeebo commented May 24, 2023

@georgik Thanks for your detailed explanation, but to avoid user confusion, it's better to be consistent with user expectations.

If users chose another tools path when they install the second ESP-IDF instance, It is better to install it where the user wants, or guide the customer to an existing tools path and tell the reason (eg. Found an existing tool path. Strongly recommended...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants