Eclipse (Linux) New Espressif IDF Project = Nada.

User avatar
corz.org
Posts: 80
Joined: Fri Feb 03, 2023 10:44 pm
Location: Aberdeen
Contact:

Eclipse (Linux) New Espressif IDF Project = Nada.

Postby corz.org » Fri Mar 24, 2023 12:01 am

I thought I might up my ToolChain game (looking to try the 5.* IDF) so installed Eclipse C++ (Version: 2022-09 (4.25.0) Build id: 20220908-1902, on Slackware current) and installed all the tools and what-not. Everything went fine.

Here are my installed tools:

Code: Select all

Executing /usr/bin/python3 /home/dad/ESP-IDF/esp-idf-v5.0.1/tools/idf_tools.py list
* xtensa-esp-elf-gdb: GDB for Xtensa
  - 11.2_20220823 (recommended, installed)
* riscv32-esp-elf-gdb: GDB for RISC-V
  - 11.2_20220823 (recommended, installed)
* xtensa-esp32-elf: Toolchain for Xtensa (ESP32) based on GCC
  - esp-2022r1-11.2.0 (recommended, installed)
* xtensa-esp32s2-elf: Toolchain for Xtensa (ESP32-S2) based on GCC
  - esp-2022r1-11.2.0 (recommended, installed)
* xtensa-esp32s3-elf: Toolchain for Xtensa (ESP32-S3) based on GCC
  - esp-2022r1-11.2.0 (recommended, installed)
* xtensa-clang: LLVM for Xtensa (ESP32, ESP32-S2) based on clang (optional)
  - 14.0.0-38679f0333 (recommended, installed)
* riscv32-esp-elf: Toolchain for 32-bit RISC-V based on GCC
  - esp-2022r1-11.2.0 (recommended, installed)
* esp32ulp-elf: Toolchain for ESP32 ULP coprocessor
  - 2.35_20220830 (recommended, installed)
* cmake: CMake build system (optional)
  - 3.24.0 (recommended, installed)
  - 3.16.3 (supported)
* openocd-esp32: OpenOCD for ESP32
  - v0.11.0-esp32-20221026 (recommended, installed)
* ninja: Ninja build system (optional)
  - 1.10.2 (recommended, installed)
* esp-rom-elfs: ESP ROM ELFs
  - 20220823 (recommended, installed)
OK
BUT, when I choose "Espressif IDF Project" from the File >> New Menu, I get nothing. No dialog. Nada. (Yes, I restarted the IDE, even the PC)

Other options; such as "Espressif IDF Component", as well as generic projects, work fine. I tried running things from the terminal to see if there might be any error messages, but nothing there, either. And there's no output anywhere within the program, so I'm stuck.

Does anyone have any insights?

In case this is useful, "Product Information":

Code: Select all

CDT Build environment variables
PATH: /usr/bin/git:/home/dad/.espressif/python_env/idf5.0_py3.9_env/Scripts/:/home/dad/.espressif/python_env/idf5.0_py3.9_env/bin/:/home/dad/ESP-IDF/esp-idf-v5.0.1/tools/:/home/dad/.espressif/tools/xtensa-esp-elf-gdb/11.2_20220823/xtensa-esp-elf-gdb/bin:/home/dad/.espressif/tools/riscv32-esp-elf-gdb/11.2_20220823/riscv32-esp-elf-gdb/bin:/home/dad/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin:/home/dad/.espressif/tools/xtensa-esp32s2-elf/esp-2022r1-11.2.0/xtensa-esp32s2-elf/bin:/home/dad/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin:/home/dad/.espressif/tools/xtensa-clang/14.0.0-38679f0333/xtensa-esp32-elf-clang/bin:/home/dad/.espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin:/home/dad/.espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:/home/dad/.espressif/tools/cmake/3.24.0/bin:/home/dad/.espressif/tools/openocd-esp32/v0.11.0-esp32-20221026/openocd-esp32/bin:/home/dad/.espressif/tools/ninja/1.10.2/:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/jdk11-11.0.8/bin:/usr/lib64/libexec/kf5:/usr/lib64/qt5/bin:/home/dad/.local/bin:/user/local/bin/sftp
XAUTHORITY: /home/dad/.Xauthority
PKG_CONFIG_PATH: /usr/local/lib64/pkgconfig:/usr/local/share/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig:/usr/local/lib64/pkgconfig:/usr/local/share/pkgconfig
GDK_USE_XFT: 1
INPUTRC: /etc/inputrc
DBUS_SESSION_BUS_ADDRESS: unix:path=/tmp/dbus-HH2yDXuJBg,guid=483b79a35df99b638ac3c9d4641cdaf7
ESP_IDF_VERSION: 5.0
XDG_CURRENT_DESKTOP: KDE
OPENOCD_SCRIPTS: /home/dad/.espressif/tools/openocd-esp32/v0.11.0-esp32-20221026/openocd-esp32/share/openocd/scripts
QT_AUTO_SCREEN_SCALE_FACTOR: 0
IDF_DEACTIVATE_FILE_PATH: /tmp/tmpwso182mmidf_4367
G_FILENAME_ENCODING: @locale
MINICOM: -c on
LC_COLLATE: C
SWT_GTK3: 0
SESSION_MANAGER: local/thinkie:@/tmp/.ICE-unix/1940,unix/thinkie:/tmp/.ICE-unix/1940
LS_OPTIONS: -F -b -T 0 --color=auto
LOGNAME: dad
PWD: /home/dad
PAM_KWALLET5_LOGIN: /run/user/1000/kwallet5.socket
XCURSOR_THEME: MetroE
LANGUAGE: en_GB
KDE_SESSION_VERSION: 5
LESSOPEN: |lesspipe.sh %s
SHELL: /bin/bash
PAGER: most
OLDPWD: /home/dad
VISUAL: mcedit
KDE_FULL_SESSION: true
IDF_COMPONENT_MANAGER: 1
XDG_SESSION_PATH: /org/freedesktop/DisplayManager/Session1
PYTHON_EXE_PATH: /usr/bin/python3
XDG_SESSION_DESKTOP: KDE
LS_COLORS: <NOT FOUND>
SHLVL: 1
KDE_APPLICATIONS_AS_SCOPE: 1
OXYGEN_DISABLE_INNER_SHADOWS_HACK: 1
GIT_PATH: /usr/bin/git
MANPATH: :/usr/lib64/jdk11-11.0.8/man:/usr/lib64/jdk11-11.0.8/man
MAKEFLAGS: -j2
T1LIB_CONFIG: /usr/share/t1lib/t1lib.config
JAVA_HOME: /usr/lib64/jdk11-11.0.8
QT5DIR: /usr/lib64/qt5
KDE_SESSION_UID: 1000
TERM: dumb
XDG_CONFIG_DIRS: /home/dad/.config/kdedefaults:/etc/xdg:/etc/kde/xdg:/etc/kde/xdg
LANG: en_GB.UTF-8
XDG_SEAT_PATH: /org/freedesktop/DisplayManager/Seat0
GNOME_KEYRING_CONTROL: /home/dad/.cache/keyring-15M111
XDG_SESSION_ID: 1
XDG_SESSION_TYPE: x11
G_BROKEN_FILENAMES: 1
DISPLAY: :0
GTK_RC_FILES: /etc/gtk/gtkrc:/home/dad/.gtkrc:/home/dad/.config/gtkrc
NODE_PATH: /usr/lib64/node_modules
XDG_SESSION_CLASS: user
_: /opt/eclipse-cpp/eclipse
XCURSOR_SIZE: 40
LIBOVERLAY_SCROLLBAR: 0
IDF_PATH: /home/dad/ESP-IDF/esp-idf-v5.0.1
GDK_CORE_DEVICE_EVENTS: 1
DESKTOP_SESSION: /usr/share/xsessions/plasma
USER: dad
GTK2_RC_FILES: /etc/gtk-2.0/gtkrc:/home/dad/.gtkrc-2.0:/home/dad/.config/gtkrc-2.0
XDG_SEAT: seat0
EDITOR: mcedit
IDF_MAINTAINER: 1
HOSTNAME: thinkie
KDEDIRS: /usr
XDG_RUNTIME_DIR: /run/user/1000
XDG_VTNR: 7
IDF_PYTHON_ENV_PATH: /home/dad/.espressif/python_env/idf5.0_py3.9_env
HOME: /home/dad
ESP_ROM_ELF_DIR: /home/dad/.espressif/tools/esp-rom-elfs/20220823/
VDPAU_LOG: 0

Operating System: linux
Java Runtime Version: 17.0.4.1+1
Eclipse Version: 4.25.0.v20220831-1800
Eclipse CDT Version: 10.7.1.202208160035
IDF Eclipse Plugin Version: 2.9.0.202303201505
ESP-IDF v5.0.1-dirty
Python set for IDF_PYTHON_ENV: Python 3.9.16

ESP_kondalkolipaka
Posts: 188
Joined: Wed Jul 17, 2019 5:26 pm

Re: Eclipse (Linux) New Espressif IDF Project = Nada.

Postby ESP_kondalkolipaka » Fri Mar 24, 2023 4:53 am

Hello,

Could you please provide the error log to check further on this issue? Maybe something going wrong while launching a new project wizard.
https://github.com/espressif/idf-eclips ... #error-log
Operating System: linux
Java Runtime Version: 17.0.4.1+1
Eclipse Version: 4.25.0.v20220831-1800
Eclipse CDT Version: 10.7.1.202208160035
IDF Eclipse Plugin Version: 2.9.0.202303201505
ESP-IDF v5.0.1-dirty
Python set for IDF_PYTHON_ENV: Python 3.9.16
The environment seems to be okay, it should work with v2.9.0 release


Thanks

User avatar
corz.org
Posts: 80
Joined: Fri Feb 03, 2023 10:44 pm
Location: Aberdeen
Contact:

Re: Eclipse (Linux) New Espressif IDF Project = Nada.

Postby corz.org » Fri Mar 24, 2023 11:29 am

Thanks! I hadn't seen the workspace log (it's not in my menu, but is in Show View >> Other).

It looks to be a problem with creating a web interface for the New Project dialog.

Code: Select all

eclipse.buildId=4.25.0.I20220831-1800
java.version=17.0.4.1
java.vendor=Eclipse Adoptium
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_GB
Framework arguments:  -product org.eclipse.epp.package.cpp.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.cpp.product

org.eclipse.ui
Error
Fri Mar 24 11:09:21 GMT 2023
Unhandled event loop exception

org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.swt.SWTError: No more handles because there is no underlying browser available.
Please ensure that WebKit with its GTK 3.x bindings is installed (WebKit2 API level is preferred). Additionally, please note that GTK4 does not currently have Browser support.
)
	at org.eclipse.swt.SWT.error(SWT.java:4918)
	at org.eclipse.swt.SWT.error(SWT.java:4833)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:5000)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4480)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:643)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:550)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:171)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1440)
Caused by: org.eclipse.swt.SWTError: No more handles because there is no underlying browser available.
Please ensure that WebKit with its GTK 3.x bindings is installed (WebKit2 API level is preferred). Additionally, please note that GTK4 does not currently have Browser support.

	at org.eclipse.swt.SWT.error(SWT.java:4944)
	at org.eclipse.swt.browser.Browser.<init>(Browser.java:120)
	at com.espressif.idf.ui.templates.FormBrowser.createControl(FormBrowser.java:53)
	at com.espressif.idf.ui.templates.BaseWizardSelectionPage.createDescriptionIn(BaseWizardSelectionPage.java:34)
	at com.espressif.idf.ui.templates.AbstractTemplatesSelectionPage.createControl(AbstractTemplatesSelectionPage.java:108)
	at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:178)
	at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:744)
	at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:636)
	at org.eclipse.jface.window.Window.create(Window.java:431)
	at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1094)
	at com.espressif.idf.ui.handlers.NewProjectHandler.execute(NewProjectHandler.java:30)
	at com.espressif.idf.ui.wizard.NewIdfProjectMainWizard$1.run(NewIdfProjectMainWizard.java:34)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:132)
	... 24 more

Apparently my WebKit is too new (v4), so I installed WebKit2GTK (along with a fair few dependencies!) but I still get the same error.

I have Chrome, Konqueror, falkon and Edge installed; none work here (though all work great on my system). Internal Eclipse browser option isn't available.

This reminds me of the **** that happens whenever I remove Chrome from an Android device. Everything breaks. Apps relying on web rendering back-ends instead of creating proper dialogs.. what a PITA!

Who is online

Users browsing this forum: No registered users and 21 guests