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
307 stars 121 forks source link

Building Workspace stops and never finishes building... v2.9.0 on 2022-09 Eclipse (IEP-921) #734

Closed Coffeeye closed 1 year ago

Coffeeye commented 1 year ago

Describe the bug Since few days Im discovering a huge issue with Eclipse and Espressif env becouse of never finishing process of building workspace. I have tried this on multiple stations or virtualenv with the same resoult. The installations were fresh or not, which results in the same. Example compiles and everything works just fine but after few include's building process just hang with no error and it looks like it never finishes, I even gave my self a half hour but it didnt move even by 1% (but the animation says its working...)

building with console 'idf.py build' passes on each/any project and env tested (mentioned above)

To Reproduce I would say just start a new project but it wont happen until you start modify the project the common way. (maybe : Have a warning in the console?)

Expected behavior Project build.

Screenshots Adnotacja 2023-04-03 123841

Espressif-IDE Product Information: product_info.log

Eclipse Error log: log.log

ammaree commented 1 year ago

+1 same problem since I installed the latest. Also remove complete Eclipse 2022-09 installation, reinstalled from scratch, same problem.

Also tried the same process with Eclipse 2022-12 but no better so reverted to 2022-09 and simply doing the build outside of Eclipse in a Terminal session.

Hangup only occurs if a warning or error occurs during the build process.

Coffeeye commented 1 year ago

Problems just waterfall on my main project which is much more advance than simple example. Cant open sdkconfig anymore and eclipse alerts me about it cant find binnaries anymore...

idk if its somehow related with the issue.

@ammaree yeah but this way its realy hard to find the issue. Espressif-IDE seems to work but peronally I got used to Dark Template addoun and there is no market at espressif-ide so...

@ammaree you might be right that it has something to do with warnings in the console

@edit Espressif-IDE not building as well, stops at first warning like Eclipse

Coffeeye commented 1 year ago

"Downgrading" plugin to (i choosed) 2.4.0 seems to fix the issue (atleast to the level its compiling)

Steps :

Uninstall current plugin from Eclipse Marketplace -> Installed Download the archive containing the plugin. Open Eclipse and go to the "Help" menu. Select the "Install New Software" option. Click the "Add" button to add a new software source. Enter the name and location of the plugin you want to install. Click the "OK" button to add a new software source. Select a new software source from the list and select an older plug-in version. Click "Next" and then accept the license terms. Click "Finish" to start the installation process.

After the installation is complete, restart Eclipse for the changes to take effect.

kolipakakondal commented 1 year ago

Hi All, Sorry about this issue! We will be releasing the fix tomorrow.

Before that, I need your help in confirming this fix.

Here is our build updatesite zip file for the fix

Here are the instructions on how to install them

Thanks

ammaree commented 1 year ago

@kolipakakondal

Did not work for me An error occurred while collecting items to be installed session context was:(profile=_Users_andremaree_eclipse_cpp-2022-09_Eclipse.app_Contents_Eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). No repository found containing: osgi.bundle,com.espressif.idf.branding,2.9.0.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.core,1.0.1.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.debug.gdbjtag.openocd,1.0.1.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.help,1.0.1.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.launch.serial.core,1.0.1.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.launch.serial.ui,1.0.1.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.sdk.config.core,1.0.2.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.sdk.config.ui,1.0.1.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.serial.monitor,1.0.1.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.terminal.connector,1.0.1.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.terminal.connector.serial,1.0.1.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.ui,1.0.1.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.wokwi,1.0.0.202303310948 No repository found containing: org.eclipse.update.feature,com.espressif.idf.feature,2.9.0.202303310948

kolipakakondal commented 1 year ago

@kolipakakondal

Did not work for me An error occurred while collecting items to be installed session context was:(profile=_Users_andremaree_eclipse_cpp-2022-09_Eclipse.app_Contents_Eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). No repository found containing: osgi.bundle,com.espressif.idf.branding,2.9.0.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.core,1.0.1.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.debug.gdbjtag.openocd,1.0.1.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.help,1.0.1.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.launch.serial.core,1.0.1.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.launch.serial.ui,1.0.1.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.sdk.config.core,1.0.2.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.sdk.config.ui,1.0.1.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.serial.monitor,1.0.1.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.terminal.connector,1.0.1.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.terminal.connector.serial,1.0.1.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.ui,1.0.1.202303310948 No repository found containing: osgi.bundle,com.espressif.idf.wokwi,1.0.0.202303310948 No repository found containing: org.eclipse.update.feature,com.espressif.idf.feature,2.9.0.202303310948

Hi @ammaree This could be due to the downloaded update site content is corrupted for some reason. Can you download and install again? I just did and it seems to be working fine (I installed updatesite on the existing Espressif-IDE 2.9.0 in macOS)

Screenshot 2023-04-03 at 10 23 54 PM
ammaree commented 1 year ago

Tried multiple times, every time comes down SS a directory not .zip

Not going to waste more time, will wait for you to improve the testing quality.

kolipakakondal commented 1 year ago

I will wait for others to verify, @AndriiFilippov @sigmaaa Do you see any issues in installing the update site?

Maksons commented 1 year ago

Linux , IDE 2.9.0 reinstalled esp-idf problem simillar : After Build OK , could not close Espreessif IDE (closing in progres forever)... Reinstalled IDE 2.9.0 without reinstalling esp-idf - Build forever.

Tried given patch - lost Espressif build functionality of Eclipse(Espressif IDE) at all :( No build (only blink.elf) , no way to install toolst/etc...

Previous used IDE 2.7.x

If using from command line 2.9.0, at build time got error:

Exception in thread "Thread-12" java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
    at com.espressif.idf.core.build.IDFBuildConfiguration$StatusParser.processLine(IDFBuildConfiguration.java:1088)
    at org.eclipse.cdt.core.build.CBuildConfiguration$ReaderThread.run(CBuildConfiguration.java:604)
vtzann commented 1 year ago

I have the same issue, it gets stuck if it comes across a warning. In my case, in a switch statement case is allowed to fall-through, generating a compiler warning That causes it to get stuck. Placing a goto statement fixes it. Initially it happened on ESP-IDE. I also installed the plugin on eclipse 2022-09 with the same results. Applying the update as suggested, did not fix the problem in either case.

kolipakakondal commented 1 year ago

Hi All,

We have released v2.9.1 with this fix, please get the latest.

Installing IDF Plugins using the Update site URL: https://dl.espressif.com/dl/idf-eclipse-plugin/updates/latest/

Installing IDF Plugins using the local archive file: https://dl.espressif.com/dl/idf-eclipse-plugin/updates/com.espressif.idf.update-2.9.1.zip

Espressif IDE https://dl.espressif.com/dl/idf-eclipse-plugin/ide/Espressif-IDE-macosx-cocoa-aarch64-v2.9.1.dmg https://dl.espressif.com/dl/idf-eclipse-plugin/ide/Espressif-IDE-macosx-cocoa-x86_64-v2.9.1.dmg https://dl.espressif.com/dl/idf-eclipse-plugin/ide/Espressif-IDE-2.9.1-win32.win32.x86_64.zip https://dl.espressif.com/dl/idf-eclipse-plugin/ide/Espressif-IDE-2.9.1-linux.gtk.x86_64.tar.gz

vtzann commented 1 year ago

So, far so good! It appears to be working. Thank you very much for the fix.

From: Kondal Kolipaka @.*** Sent: April 6, 2023 12:57 To: espressif/idf-eclipse-plugin Cc: vtzann; Comment Subject: Re: [espressif/idf-eclipse-plugin] Building Workspace stops and never finishes building... v2.9.0 on 2022-09 Eclipse (IEP-921) (Issue #734)

Hi All, We have released v2.9.1 with this fix, please get the latest. Installing IDF Plugins using the Update site URL: https://dl.espressif.com/dl/idf-eclipse-plugin/updates/latest/ Installing IDF Plugins using the local archive file: https://dl.espressif.com/dl/idf-eclipse-plugin/updates/com.espressif.idf.update-2.9.1.zip Espressif IDE https://dl.espressif.com/dl/idf-eclipse-plugin/ide/Espressif-IDE-macosx-cocoa-aarch64-v2.9.1.dmg https://dl.espressif.com/dl/idf-eclipse-plugin/ide/Espressif-IDE-macosx-cocoa-x86_64-v2.9.1.dmg https://dl.espressif.com/dl/idf-eclipse-plugin/ide/Espressif-IDE-2.9.1-win32.win32.x86_64.zip https://dl.espressif.com/dl/idf-eclipse-plugin/ide/Espressif-IDE-2.9.1-linux.gtk.x86_64.tar.gz — Reply to this email directly, view it on GitHub https://github.com/espressif/idf-eclipse-plugin/issues/734#issuecomment-1499357004 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AGGKV4BM3EO65P5X3SEOYTDW73YVBANCNFSM6AAAAAAWREIXP4 . You are receiving this because you commented. https://github.com/notifications/beacon/AGGKV4CX3TTCWGDTG4C73ZDW73YVBA5CNFSM6AAAAAAWREIXP6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSZLZPUY.gif Message ID: @.***>

kolipakakondal commented 1 year ago

As this is fixed with v2.9.1, closing this issue.