Skip to content

Couldn't execute command: #2368

@jgee-heatcon

Description

@jgee-heatcon

4diac IDE version: 3.1.0.2026-03-11_1726

Session ID: bab1e769-a302-485c-a315-0c938dcda386

Stack trace

org.eclipse.core.commands.ExecutionException: While executing the operation, an exception occurred
	at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:496)
	at org.eclipse.fordiac.ide.gef.commands.OperationHistoryCommandStack.execute(OperationHistoryCommandStack.java:108)
	at org.eclipse.gef.dnd.AbstractTransferDropTargetListener.handleDrop(AbstractTransferDropTargetListener.java:353)
	at org.eclipse.gef.dnd.TemplateTransferDropTargetListener.handleDrop(TemplateTransferDropTargetListener.java:119)
	at org.eclipse.fordiac.ide.application.utilities.FbTypeTemplateTransferDropTargetListener.handleDrop(FbTypeTemplateTransferDropTargetListener.java:96)
	at org.eclipse.gef.dnd.AbstractTransferDropTargetListener.drop(AbstractTransferDropTargetListener.java:194)
	at org.eclipse.jface.util.DelegatingDropAdapter$3.run(DelegatingDropAdapter.java:227)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)
	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:169)
	at org.eclipse.jface.util.DelegatingDropAdapter.drop(DelegatingDropAdapter.java:224)
	at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:104)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:91)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4349)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1217)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1241)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1226)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:863)
	at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:488)
	at org.eclipse.swt.dnd.DropTarget.Drop_64(DropTarget.java:406)
	at org.eclipse.swt.dnd.DropTarget$1.lambda$2(DropTarget.java:271)
	at org.eclipse.swt.internal.Win32DPIUtils.runWithProperDPIAwareness(Win32DPIUtils.java:94)
	at org.eclipse.swt.dnd.DropTarget$1.method6(DropTarget.java:267)
	at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:120)
	at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method)
	at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:553)
	at org.eclipse.swt.dnd.DragSource.lambda$0(DragSource.java:380)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:91)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4349)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1217)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4147)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3735)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1160)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1051)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:684)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:583)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:173)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:185)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:219)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:149)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:115)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:467)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:298)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:615)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:563)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1415)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 4
	at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:347)
	at org.eclipse.fordiac.ide.model.helpers.InterfaceListCopier.getCopiedVar(InterfaceListCopier.java:181)
	at org.eclipse.fordiac.ide.model.helpers.InterfaceListCopier.copyWiths(InterfaceListCopier.java:169)
	at org.eclipse.fordiac.ide.model.helpers.InterfaceListCopier.lambda$4(InterfaceListCopier.java:149)
	at java.base/java.lang.Iterable.forEach(Unknown Source)
	at org.eclipse.fordiac.ide.model.helpers.InterfaceListCopier.copyEventList(InterfaceListCopier.java:147)
	at org.eclipse.fordiac.ide.model.helpers.InterfaceListCopier.copy(InterfaceListCopier.java:56)
	at org.eclipse.fordiac.ide.model.libraryElement.impl.InterfaceListImpl.instanceCopy(InterfaceListImpl.java:353)
	at org.eclipse.fordiac.ide.model.commands.create.FBCreateCommand.createInterfaceList(FBCreateCommand.java:83)
	at org.eclipse.fordiac.ide.model.commands.create.AbstractCreateFBNetworkElementCommand.execute(AbstractCreateFBNetworkElementCommand.java:68)
	at org.eclipse.fordiac.ide.model.commands.create.FBCreateCommand.execute(FBCreateCommand.java:70)
	at org.eclipse.fordiac.ide.gef.commands.OperationHistoryCommandStack$CommandWrapper.execute(OperationHistoryCommandStack.java:252)
	at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:488)
	... 49 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions