espressif / idf-eclipse-plugin

Espressif-IDE (based on Eclipse CDT) for ESP-IDF CMake based projects 4.x and above
https://docs.espressif.com/projects/espressif-ide/en/latest/index.html
Eclipse Public License 2.0
313 stars 121 forks source link

ESP-IDF Manger - Installing IDF v5.1.5 (any other version have the same behavor) (IEP-1350) #1073

Open huwi opened 4 weeks ago

huwi commented 4 weeks ago

Describe the bug

Thank you for your great work.

After installing eclipse and added esp idf plugin, the es-idf manager cant install the idf environment. -> Espressif->ESP-IDF Manger->Add ESP-IDF The process is running. at the end a message pops up:

Problem Occurred Cannot invoke "String indexOf(int) because "value" is null => Details Cannot invoke "String.indexOf(int)" because "value" is null Cannot invoke "String.indexOf(int)" because "value" is null

**Espressif-IDE Product Information: Eclipse Plugin 3.1.0.2024.100707 (From Marketplace) ESP-IDF v1.5.1, ESP-IDF v5.3.1, ....

Eclipse Error log: Window > Show View > Other > Search for "Error Log" (Attach as a file)

Please attach the error log as described here https://github.com/espressif/idf-eclipse-plugin#error-log Bildschirmfoto vom 2024-10-31 08-21-35 Bildschirmfoto vom 2024-10-31 08-21-35 Bildschirmfoto vom 2024-10-31 08-23-20 Bildschirmfoto vom 2024-10-31 08-24-08

Kind Regards, Hubert

alirana01 commented 4 weeks ago

@huwi thanks for reporting this issue.

Can I please ask you to download the esp-idf required version via the IDE. This is a known issue but it was only reported for the master branch. We have the fix for that in the upcoming release. For other versions it should not report this error. Also please export and attach the logs so we can investigate the details.

alirana01 commented 4 weeks ago

@huwi another thing I just noticed is that you are specifying the python from virtual env folder. The python needs to be the system python not from the virtual env directory. Please try to use the system python when installing tools. The virtual env python is picked up by the IDE itself when the tools are installed.

apalazzi commented 1 week ago

Hi, I'm having the same issue. Clean Eclipse install, then installed the IDF plugin via marketplace. The error occurs when installing the toolchain but also when trying to use the tools installed separately as explained here: https://docs.espressif.com/projects/esp-idf/en/v5.3.1/esp32/get-started/linux-macos-setup.html In my case python is the system python. Edit: the problem still occurs with the "beta" version, here is the log. esp-idf.log

alirana01 commented 1 week ago

@apalazzi the issue will be fixed with the upcoming release.

mmrein commented 1 week ago

@alirana01 ETA on upcoming release or is there some workaround?

Tried resatrting and using system python path, issue still exists.

apalazzi commented 1 week ago

@mmrein I haven't tested it deeply, but it seems to work on the latest nightly builds: https://github.com/espressif/idf-eclipse-plugin?tab=readme-ov-file#installing-idf-plugin-using-update-site-url

mmrein commented 1 week ago

@apalazzi Ok, seems to be working, thank you