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

No "New launch Target" for Eclipse 2022-09 (IEP-863) #684

Closed Samuel-Zhang-Rheem closed 1 year ago

Samuel-Zhang-Rheem commented 1 year ago

Describe the bug Eclipse 2022-09 without configuration bar. After generating a new ESP project, no "sdkconfig" file, no "configuration"bar, I can't setup the target type.

To Reproduce

Expected behavior

Screenshots

No Configuration Bar

Espressif-IDE Product Information: Espressif Product Information.txt

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

sigmaaa commented 1 year ago

Hi @Samuel-Zhang-Rheem, Thank you for reporting this. sdkconfig file will be generated after the build. Can you check, please, if there is an option in the eclipse preference to enable the launch bar:

Screenshot 2023-01-29 at 13 03 49
Samuel-Zhang-Rheem commented 1 year ago

Hello,

The PC with Eclipse 2022 has this problem. After tick "Enable the launch Bar", I can view the configuration, problem fixed.

Another PC with Eclipse 2021 without this issue.

Is it causing by Eclipse version 2022 or something wrong with my installation?

Regards Sam

sigmaaa commented 1 year ago

Hi @Samuel-Zhang-Rheem, Eclipse 2022 is not a problem. I have seen similar issues reported on Eclipse 2020 and 2021. Looks like there is a case when the launch bar is disabled by default after installation. It should normally be enabled by default after installation. I was never able to reproduce it, so it's hard to tell what is going wrong. Is it freshly installed Eclipse 2022 or it had some plugins installed?

Samuel-Zhang-Rheem commented 1 year ago

There is a project, I can build it successfully in windows CMD line. But in Eclipse, Terminal, run command line; when I go into " user\esp\esp-idf" directory, run "export.sh", it prompt "How do you to open this file", something wrong with "Eclipse settings"?

kolipakakondal commented 1 year ago

export.sh

Use export.bat as mentioned here https://docs.espressif.com/projects/esp-idf/en/release-v4.2/esp32/get-started/windows-setup-update.html#add-esp-idf-tools-to-path-using-an-export-script

However, when you're working in Eclipse environment, always run "Espressif > ESP-IDF Install Tools > Install Tools" this will install missing tools and run export command to configure the required paths in the CDT build environment

Samuel-Zhang-Rheem commented 1 year ago

export.bat works. But there is another problem: After I update a plugin for python editor, I can't build project which is was built successfully before. The report error message:

Errors occurred during the build. Errors running builder 'CDT Core Builder' on project 'station'. 'int com.espressif.idf.core.build.IDFBuildConfiguration.watchProcess(java.lang.Process, org.eclipse.cdt.core.resources.IConsole)'

How to fix it?

kolipakakondal commented 1 year ago

Hi @Samuel-Zhang-Rheem

Could you our latest Espressif-IDE 2.8.1 Windows Installer and see if that helps? https://github.com/espressif/idf-installer/releases/download/espressif-ide-2.8.1-esp-idf-5.0/espressif-ide-setup-2.8.1-with-esp-idf-5.0.exe

kolipakakondal commented 1 year ago

Errors occurred during the build. Errors running builder 'CDT Core Builder' on project 'station'. 'int com.espressif.idf.core.build.IDFBuildConfiguration.watchProcess(java.lang.Process, org.eclipse.cdt.core.resources.IConsole)'

This issue is fixed with IEP v2.9.1 release, hence closing the issue.