Skip to content

Eclipse Plugin installation completely broken #236

@hohwille

Description

@hohwille

When I install Eclipse during the plugin-installation very strange things are happening:
image

Even when I select the workspace from my current IDE it opens the Eclipse GUI and then it closes again automatically.
On the console I get things like this:

$ ./ideasy.exe shell
ide> install eclipse 2023-09
ECLIPSE_VERSION=2023-09 has been set in SETTINGS@D:\projects\IDEasy\settings\ide.properties
Creating backup by moving D:\projects\IDEasy\software\eclipse to D:\projects\IDEasy\updates\backups\2024-02-28\eclipse_09-44-12
Successfully installed eclipse in version 2023-09 replacing previous version 2023-12
Failed to install plugin startexplorer (de.bastiankrol.startexplorer.feature.feature.group): exit code was 0
!SESSION 2024-02-28 09:44:13.075 -----------------------------------------------
eclipse.buildId=4.29.0.20230907-1200
java.version=17.0.10
java.vendor=Eclipse Adoptium
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product org.eclipse.equinox.p2.director -repository https://basti1302.github.io/startexplorer/update/ -installIU de.bastiankrol.startexplorer.feature.feature.group
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product -consoleLog org.eclipse.equinox.p2.director -repository https://basti1302.github.io/startexplorer/update/ -installIU de.bastiankrol.startexplorer.feature.feature.group

!ENTRY ch.qos.logback.classic 1 0 2024-02-28 09:44:15.639
Activated before the state location was initialized. Retry after the state location is initialized.

!ENTRY org.eclipse.core.resources 2 10035 2024-02-28 09:45:22.560
The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY ch.qos.logback.classic 1 0 2024-02-28 09:45:23.014
Logback config file: D:\projects\IDEasy\workspaces\main\.metadata\.plugins\org.eclipse.m2e.logback\logback.2.2.0.20230625-0847.xml

!ENTRY org.eclipse.jface 2 0 2024-02-28 09:45:24.581
Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2024-02-28 09:45:24.581
A conflict occurred for CTRL+SHIFT+T:
Binding(CTRL+SHIFT+T,
        ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
                Open a type in a Java editor,
                Category(org.eclipse.ui.category.navigate,Navigate,null,true),
                WorkbenchHandlerServiceHandler("org.eclipse.jdt.ui.navigate.open.type"),
                ,,true),null),
        org.eclipse.ui.defaultAcceleratorConfiguration,
        org.eclipse.ui.contexts.window,,,system)
Binding(CTRL+SHIFT+T,
        ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
                ,
                Category(org.eclipse.lsp4e.category,Language Servers,null,true),
                WorkbenchHandlerServiceHandler("org.eclipse.lsp4e.symbolinworkspace"),
                ,,true),null),
        org.eclipse.ui.defaultAcceleratorConfiguration,
        org.eclipse.ui.contexts.window,,,system)

!ENTRY org.eclipse.e4.ui.workbench 2 0 2024-02-28 09:45:30.212
Removing PartDescriptorImpl with the "net.sf.eclipsecs.ui.stats.views.MarkerStatsView" id and the "Checkstyle violations" label.It points to the non available "bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" class. Bundle might have been uninstalled
WARNING: Using incubator modules: jdk.incubator.foreign, jdk.incubator.vector
Feb. 28, 2024 9:44:14 AM org.apache.aries.spifly.BaseActivator log
INFO: Registered provider ch.qos.logback.classic.servlet.LogbackServletContainerInitializer of service jakarta.servlet.ServletContainerInitializer in bundle ch.qos.logback.classic
Feb. 28, 2024 9:44:14 AM org.apache.aries.spifly.BaseActivator log
INFO: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic

IMHO the command to install a plugin is not properly passing the workspace path and the -application arg is missing

pc.addArg("-consoleLog").addArg("-nosplash");

Original code:
https://github.com/devonfw/ide/blob/cdf4af5de21489f3fdcbfdab41af858822e0d598/scripts/src/main/resources/scripts/command/eclipse#L187

Metadata

Metadata

Labels

bugSomething isn't workingeclipserelated to Eclipse IDE

Type

Projects

Status

✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions