espressif / idf-eclipse-plugin

Espressif-IDE (based on Eclipse CDT) for ESP-IDF CMake based projects 4.x and above
Eclipse Public License 2.0
313 stars 121 forks source link

V2.7.0 doesn't correctly install IDF-V5.0 offline tools (IEP-845) #672

Open DspDave opened 1 year ago

DspDave commented 1 year ago

Describe the bug In Windows 10 using the Eclipse IDE, If the offline use of IDF-V4.4.3 is updated to the offline IDF-V5.0 the tools are not correctly installed.

To Reproduce .1 Download the new ESP-IDF V5.0 installer (esp-idf-tools-setup-offline-5.0.exe) and the espressif-ide-setup-2.7.0-with-esp-idf-4.4.3.exe. .2 Disconnect the internet connection. .3 Run espressif-ide-setup-2.7.0-with-esp-idf-4.4.3.exe to install Eclipse IDE & ESP-IDF V4.4.3 tools, can now build 'blink' project OK. .4 Run new esp-idf-tools-setup-offline-5.0.exe which completes by running idf-command-init.bat & install.sh without issue. .5 Using the Espressif->Download and Configure IDF & selecting the 'C:\Espressif\frameworks\esp-idf-v5.0' .6 Close Eclipse & re-open Eclipse, to be sure... .7 Delete Build Folder & rebuild project .8 Project fails to build with following errors (see BuildFails001.txt) .9 Use the Espressif->ESP-IDF Tools Manager->Install Tool option to update the IDF & tools launches the same 'Install tools' dialog and ends in the same result. .10 Use the Espressif->ESP-IDF Tools Manager->Tools Installation Wizard to update the IDF & tools shows all of the V5.0 tools as uninstalled & generates the following log (see InstallToolsWizard.txt).

Eclipse Error Logs have been captured whilst using the different plugin IDF update methods.

Expected behavior The active IDF & Tool chain tool chain should use IDF-V5.0.

Unexpected Behaviour Again if the internet is connected this works, however the values configured in 'espidf.constraints.v5.0.txt' seem incorrect as the IDF actually has library scripts in it that are too new?

The line in the build log 'Are you connected to the internet?' seems suspicious for off-line operation.

Attempting to list installed tools launches the dialog asking for tool installation again?

Screenshots ErrorInfo.zip MissingTools

Espressif-IDE Product Information: EspressifProductInfo.txt

Eclipse Error log: ErrorLogs.zip

kolipakakondal commented 1 year ago

Hi @DspDave Thanks for reporting and sharing the logs. Will take a look.

kolipakakondal commented 1 year ago

Hi @AndriiFilippov Could we try to reproduce this locally?

AndriiFilippov commented 1 year ago

@kolipakakondal hi ! I was able to reproduce this one.

alirana01 commented 1 year ago

@DspDave thank you for reporting the issue we are working on a solution for this one