idf-eclipse-plugin icon indicating copy to clipboard operation
idf-eclipse-plugin copied to clipboard

"Installing tools..." problem: trying to add: ESP-IDF (IEP-1473)

Open georgewicks opened this issue 9 months ago • 9 comments

I have tried to add ESP-IDF using an already downloaded ESP-IDF (5.3.1), and also tried with having the plug-in install a version via plug-in download, and it fails in both cases (environment: Windows 10)

Error log: Traceback (most recent call last): File "W:\Development\esp-idf-v5.3.2\tools\idf_tools.py", line 3239, in main(sys.argv[1:]) File "W:\Development\esp-idf-v5.3.2\tools\idf_tools.py", line 3231, in main action_func(args) File "W:\Development\esp-idf-v5.3.2\tools\idf_tools.py", line 2154, in action_export tools_info = load_tools_info() File "W:\Development\esp-idf-v5.3.2\tools\idf_tools.py", line 1610, in load_tools_info return parse_tools_info_json(tools_info) # type: ignore File "W:\Development\esp-idf-v5.3.2\tools\idf_tools.py", line 1625, in parse_tools_info_json tool = IDFTool.from_json(tool_dict) File "W:\Development\esp-idf-v5.3.2\tools\idf_tools.py", line 1239, in from_json raise RuntimeError(f'supported_targets for tool {tool_name} is not a list of strings') RuntimeError: supported_targets for tool xtensa-esp32-elf is not a list of strings

georgewicks avatar Mar 06 '25 20:03 georgewicks

Hi @georgewicks! This is an automated response. If you don’t find the answer helpful, please check the ESP32 IDE forum (https://www.esp32.com/viewforum.php?f=40) or GitHub issues (https://github.com/espressif/idf-eclipse-plugin/issues) to see if the issue has already been discussed.


Based on the information provided in the knowledge sources, I can offer the following response to the user's issue with Espressif-IDE:

It appears you're encountering an error while trying to install ESP-IDF tools within the Espressif-IDE. The error suggests there might be an issue with the tools.json file in your ESP-IDF installation, specifically related to the supported_targets field for the xtensa-esp32-elf tool.

To troubleshoot this issue, you can try the following steps:

  1. Ensure you have the latest version of Espressif-IDE installed. You can download it from the Espressif-IDE downloads page.

  2. If you're using an already downloaded ESP-IDF, make sure it's a clean installation and hasn't been modified. You might want to try downloading a fresh copy of ESP-IDF v5.3.1 or v5.3.2.

  3. If the issue persists, try using the ESP-IDF Manager within Espressif-IDE to install ESP-IDF:

    • Go to Espressif > ESP-IDF Manager
    • Click on Add ESP-IDF
    • Choose to download ESP-IDF directly from the dialog instead of using an existing installation
  4. Make sure you have the necessary prerequisites installed correctly:

    • Java
    • Python (not from a virtual environment)
    • Git
  5. If you continue to experience issues, you can check the Error Log for more details:

    • Go to Window > Show View > Error Log
    • Export the log and include it when seeking further assistance

If these steps don't resolve the issue, you may want to report this problem to the Espressif support team or on the ESP32 Forum for IDEs, providing the full error log and details about your setup.

For more information on installation and troubleshooting, you can refer to the Espressif-IDE Installation Guide and the Troubleshooting Guide.

github-actions[bot] avatar Mar 06 '25 20:03 github-actions[bot]

Hi @georgewicks,

Could you please try the latest release and check if the problem occurs there? Link

sigmaaa avatar Mar 13 '25 09:03 sigmaaa

I have tried with Espressif-IDE 3.3.0 installing IDF5.1 and I have similar problem:

Traceback (most recent call last): File "C:\Espressif\ESP-IDF\esp-idf-v5.1\tools\idf_tools.py", line 2831, in main(sys.argv[1:]) File "C:\Espressif\ESP-IDF\esp-idf-v5.1\tools\idf_tools.py", line 2823, in main action_func(args) File "C:\Espressif\ESP-IDF\esp-idf-v5.1\tools\idf_tools.py", line 1807, in action_export tools_info = load_tools_info() ^^^^^^^^^^^^^^^^^ File "C:\Espressif\ESP-IDF\esp-idf-v5.1\tools\idf_tools.py", line 1344, in load_tools_info return parse_tools_info_json(tools_info) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Espressif\ESP-IDF\esp-idf-v5.1\tools\idf_tools.py", line 1362, in parse_tools_info_json tool = IDFTool.from_json(tool_dict) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Espressif\ESP-IDF\esp-idf-v5.1\tools\idf_tools.py", line 1049, in from_json if Platforms.get(platform_id) is None: ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Espressif\ESP-IDF\esp-idf-v5.1\tools\idf_tools.py", line 211, in get platform_name = Platforms.detect_linux_arm_platform(platform_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Espressif\ESP-IDF\esp-idf-v5.1\tools\idf_tools.py", line 185, in detect_linux_arm_platform with open(sys.executable, 'rb') as f: ^^^^^^^^^^^^^^^^^^^^^^^^^^ OSError: [Errno 22] Invalid argument: 'C:\Users\abcdefg\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\python.exe'

FabITA1 avatar Mar 14 '25 16:03 FabITA1

Hi @FabITA1,

I see you're using Python from the Microsoft Store. Which path did you select for the Python executable when installing the tools? From the error, I see it could be 'C:\Users\abcdefg\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\python.exe', which is a stub that redirects execution. Make sure that the path looks like this for Microsoft Python

Image

If that doesn't help, I recommend installing Python from the official source: python.org.

sigmaaa avatar Mar 17 '25 08:03 sigmaaa

Hi @sigmaaa, thanks for your reply. I think it was my problem. I reinstelled the whole suite using the setup utility and now works correctly Sorry for the false reporting...

FabITA1 avatar Mar 17 '25 09:03 FabITA1

As I said, I installed a new enviroment. This installed the Espressif-IDE 3.1.0 and it works fine. When upgrade to 3.3.0 with "check for update" menu, I obtain many errors of the type attached.

Image

FabITA1 avatar Mar 17 '25 10:03 FabITA1

As I said, I installed a new enviroment. This installed the Espressif-IDE 3.1.0 and it works fine. When upgrade to 3.3.0 with "check for update" menu, I obtain many errors of the type attached.

Image

It seems that the issue you're encountering might be related to the latest Eclipse CDT 12. Have you also updated both Eclipse and the CDT plugin? Currently, we support Eclipse version 24-09 and CDT version 11.6.0. We are working on supporting the latest version, and it will be available in the next release.

To avoid compatibility issues, I recommend downloading Espressif-IDE from this link. Alternatively, you can install the Espressif plugin on top of Eclipse CDT 11.6 downloaded from here.

sigmaaa avatar Mar 17 '25 12:03 sigmaaa

As I said, I installed a new enviroment. This installed the Espressif-IDE 3.1.0 and it works fine. When upgrade to 3.3.0 with "check for update" menu, I obtain many errors of the type attached. Image

It seems that the issue you're encountering might be related to the latest Eclipse CDT 12. Have you also updated both Eclipse and the CDT plugin? Currently, we support Eclipse version 24-09 and CDT version 11.6.0. We are working on supporting the latest version, and it will be available in the next release.

To avoid compatibility issues, I recommend downloading Espressif-IDE from this link. Alternatively, you can install the Espressif plugin on top of Eclipse CDT 11.6 downloaded from here.

If updating the CDT plugin is the issue, it's possible to revert the update via the Installation History : Help -> About Eclipse IDE -> Installation Details -> Revert

Image

sigmaaa avatar Mar 17 '25 12:03 sigmaaa

I have installed the tool using the tool download from here: https://dl.espressif.com/dl/esp-idf/ This tool install the Espressif-IDE 3.1.0. Then, from the Espressif-IDE, I updeted all it proposed from "Check for update" command. Now I have download the only Espressif-IDE from the link you suggest and replaced manually the old 3.1.0: this seems to works. I'll do some more checks. Tanks @sigmaaa

FabITA1 avatar Mar 17 '25 13:03 FabITA1