From cfe0a8b547ca39236143edd372f05d137afa51aa Mon Sep 17 00:00:00 2001 From: StarryScythe <tim6542@aol.com> Date: Fri, 7 Mar 2025 14:18:52 +0100 Subject: [PATCH] added notes on current issues to TaskAndTime --- TaskAndTimeTimJahn.txt | 141 +++++++---------------------------------- 1 file changed, 23 insertions(+), 118 deletions(-) diff --git a/TaskAndTimeTimJahn.txt b/TaskAndTimeTimJahn.txt index b7013dc..26e8991 100644 --- a/TaskAndTimeTimJahn.txt +++ b/TaskAndTimeTimJahn.txt @@ -58,6 +58,7 @@ hours: 26.01.25 8h 27.01.25 2h 06.03.25 8h +07.03.25 8h //------------------------------------------------------------------------------------------------------ see https://github.com/eclipse-theia/theia/blob/master/doc/Developing.md#prerequisite_native_keymap @@ -110,11 +111,6 @@ refered to in the tutorial ar not in the refered repository some unclear aspects regarding the issues: -- general location of affected files -- adding new content? -- backup plan -- devel or new branch? - #1 no bug fix; add mask? - new pnml is empty file - misses model; add defaut model via handler - see @@ -184,6 +180,7 @@ further things: - order arcs + references: - see views.tsx line 40 -> needs to be at another position probably to always work - https://github.com/eclipse-sprotty/sprotty/issues/94 + - https://github.com/eclipse-sprotty/sprotty/issues/307 #9 diagram not centered if opened @@ -197,137 +194,45 @@ further things: potential solution (chatgpt): viewer.fitToViewport(); // no idea where this should go (client), but the function // should align the diagram to the view - alternative: viewer.centerOnElement(); // doing so after every modification with the global page will ensure the diagram stys centralised but may interfere with navigation + alternative: viewer.centerOnElement(); // doing so after every modification with the global page + // will ensure the diagram stys centralised but may interfere with navigation + + function leads nowhere but sprotty has an action (FitToScreenAction) that seems promising - for easier + code search I cloned the sprotty repository (main) from https://github.com/eclipse-sprotty/sprotty + related issues: + https://github.com/eclipse-sprotty/sprotty/issues/147 + - refers to example: + https://github.com/eclipse-sprotty/sprotty/blob/781c03256c6efb3e241de3d85d234b9cb954e075/examples/random-graph/src/di.config.ts#L107 + + https://github.com/eclipse-sprotty/sprotty/issues/121 + + I will attempt to use this action whenever a new diagram is opened, but have currently no idea + where to place this - the examples in the sprotty repository could be helpful here + + the action seems to exist in the client and is called with alt+c + (centers the diagram regardless of curretn view position and zoom) + + the task will be to determine the action name and implement an automatic call whenever a diagram is opened #10 disconnect if reopened cannot reproduce this; if the browser is reopened, open editor tabs seem to not really load the diagram or the menu - can be fixed by closing editor (not browser) tabs and then reopening - them - potentially reloading the editor may also help + them - potentially reloading the browser tab afterwards might also help #11 remove tina, gray options in right-click -next meeting: 10.3.25 +next meeting: 10.3.25 11:00 -------------------------------------------------------------------------------------------- push to devel, merge with sebastian as assignee in gitlab website -30.11.24 8h -01.12.24 8h -08.12.24 8h -16.12.24 12h - -issue #1 -- recreated error by creating new file test.pnml in editor: - =========================================================================================================================== I will delete all error dcumentation for resolved issues, since they will still be on git and clutter the file otherwise =========================================================================================================================== -pageNode implementation - -NaseModel.pnml - -java.lang.ExceptionInInitializerError - at org.eclipse.glsp.example.javaemf.model.TaskListSourceModelStorage.setupResourceSet(TaskListSourceModelStorage.java:58) - at org.eclipse.glsp.server.emf.EMFSourceModelStorage.getOrCreateEditingDomain(EMFSourceModelStorage.java:68) - at org.eclipse.glsp.example.javaemf.model.TaskListSourceModelStorage.loadSourceModel(TaskListSourceModelStorage.java:85) - at org.eclipse.glsp.server.features.core.model.RequestModelActionHandler.executeAction(RequestModelActionHandler.java:75) - at org.eclipse.glsp.server.features.core.model.RequestModelActionHandler.executeAction(RequestModelActionHandler.java:45) - at org.eclipse.glsp.server.actions.AbstractActionHandler.execute(AbstractActionHandler.java:53) - at org.eclipse.glsp.server.internal.actions.DefaultActionDispatcher.runAction(DefaultActionDispatcher.java:198) - at org.eclipse.glsp.server.internal.actions.DefaultActionDispatcher.handleAction(DefaultActionDispatcher.java:176) - at org.eclipse.glsp.example.javaemf.handler.MyActionDispatcher.handleAction(MyActionDispatcher.java:24) - at org.eclipse.glsp.server.internal.actions.DefaultActionDispatcher.handleNextAction(DefaultActionDispatcher.java:163) - at org.eclipse.glsp.server.internal.actions.DefaultActionDispatcher.runThread(DefaultActionDispatcher.java:149) - at java.base/java.lang.Thread.run(Thread.java:1583) -Caused by: java.lang.ClassCastException: class org.eclipse.emf.ecore.impl.EAttributeImpl cannot be cast to class org.eclipse.emf.ecore.EReference (org.eclipse.emf.ecore.impl.EAttributeImpl and org.eclipse.emf.ecore.EReference are in unnamed module of loader 'app') - at org.pnml.emf.ptnet.impl.PtnetPackageImpl.getToolInfoPage_Page(PtnetPackageImpl.java:2024) - at org.pnml.emf.ptnet.impl.PtnetPackageImpl.initializePackageContents(PtnetPackageImpl.java:2971) - at org.pnml.emf.ptnet.impl.PtnetPackageImpl.init(PtnetPackageImpl.java:597) - at org.pnml.emf.ptnet.PtnetPackage.<clinit>(PtnetPackage.java:59) - ... 12 more - -test.pnml - -Could not initialize class org.pnml.emf.ptnet.PtnetPackage -java.lang.NoClassDefFoundError: Could not initialize class org.pnml.emf.ptnet.PtnetPackage - at org.eclipse.glsp.example.javaemf.model.TaskListSourceModelStorage.setupResourceSet(TaskListSourceModelStorage.java:58) - at org.eclipse.glsp.server.emf.EMFSourceModelStorage.getOrCreateEditingDomain(EMFSourceModelStorage.java:68) - at org.eclipse.glsp.example.javaemf.model.TaskListSourceModelStorage.loadSourceModel(TaskListSourceModelStorage.java:85) - at org.eclipse.glsp.server.features.core.model.RequestModelActionHandler.executeAction(RequestModelActionHandler.java:75) - at org.eclipse.glsp.server.features.core.model.RequestModelActionHandler.executeAction(RequestModelActionHandler.java:45) - at org.eclipse.glsp.server.actions.AbstractActionHandler.execute(AbstractActionHandler.java:53) - at org.eclipse.glsp.server.internal.actions.DefaultActionDispatcher.runAction(DefaultActionDispatcher.java:198) - at org.eclipse.glsp.server.internal.actions.DefaultActionDispatcher.handleAction(DefaultActionDispatcher.java:176) - at org.eclipse.glsp.example.javaemf.handler.MyActionDispatcher.handleAction(MyActionDispatcher.java:24) - at org.eclipse.glsp.server.internal.actions.DefaultActionDispatcher.handleNextAction(DefaultActionDispatcher.java:163) - at org.eclipse.glsp.server.internal.actions.DefaultActionDispatcher.runThread(DefaultActionDispatcher.java:149) - at java.base/java.lang.Thread.run(Thread.java:1583) -Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.ClassCastException: class org.eclipse.emf.ecore.impl.EAttributeImpl cannot be cast to class org.eclipse.emf.ecore.EReference (org.eclipse.emf.ecore.impl.EAttributeImpl and org.eclipse.emf.ecore.EReference are in unnamed module of loader 'app') [in thread "MyActionDispatcher 3"] - at org.pnml.emf.ptnet.impl.PtnetPackageImpl.getToolInfoPage_Page(PtnetPackageImpl.java:2024) - at org.pnml.emf.ptnet.impl.PtnetPackageImpl.initializePackageContents(PtnetPackageImpl.java:2971) - at org.pnml.emf.ptnet.impl.PtnetPackageImpl.init(PtnetPackageImpl.java:597) - at org.pnml.emf.ptnet.PtnetPackage.<clinit>(PtnetPackage.java:59) - ... 12 more - - -error trying to save after adding nodePage - -class org.pnml.emf.ptnet.impl.PageImpl cannot be cast to class java.lang.String (org.pnml.emf.ptnet.impl.PageImpl is in unnamed module of loader 'app'; java.lang.String is in module java.base of loader 'bootstrap') -java.lang.ClassCastException: class org.pnml.emf.ptnet.impl.PageImpl cannot be cast to class java.lang.String (org.pnml.emf.ptnet.impl.PageImpl is in unnamed module of loader 'app'; java.lang.String is in module java.base of loader 'bootstrap') - at org.eclipse.emf.ecore.impl.EcoreFactoryImpl.convertEStringToString(EcoreFactoryImpl.java:661) - at org.eclipse.emf.ecore.impl.EcoreFactoryImpl.convertToString(EcoreFactoryImpl.java:219) - at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.convertToString(XMLHelperImpl.java:1610) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.getDatatypeValue(XMLSaveImpl.java:3108) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveDataTypeSingle(XMLSaveImpl.java:1698) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLSaveImpl.java:1280) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLSaveImpl.java:1224) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XMLSaveImpl.java:2716) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSaveImpl.java:1181) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSaveImpl.java:1042) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany(XMLSaveImpl.java:2417) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLSaveImpl.java:1553) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLSaveImpl.java:1224) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XMLSaveImpl.java:2716) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSaveImpl.java:1181) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSaveImpl.java:1042) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany(XMLSaveImpl.java:2417) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLSaveImpl.java:1553) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLSaveImpl.java:1224) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XMLSaveImpl.java:2716) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSaveImpl.java:1181) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSaveImpl.java:1042) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany(XMLSaveImpl.java:2417) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLSaveImpl.java:1553) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLSaveImpl.java:1224) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XMLSaveImpl.java:2716) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSaveImpl.java:1181) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSaveImpl.java:1042) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany(XMLSaveImpl.java:2417) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLSaveImpl.java:1553) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLSaveImpl.java:1224) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XMLSaveImpl.java:2716) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.writeTopObject(XMLSaveImpl.java:683) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveImpl.java:591) - at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl.java:251) - at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLResourceImpl.java:389) - at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:1475) - at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:1044) - at org.eclipse.glsp.example.javaemf.model.TaskListSourceModelStorage.saveSourceModel(TaskListSourceModelStorage.java:165) - at org.eclipse.glsp.server.actions.SaveModelActionHandler.executeAction(SaveModelActionHandler.java:47) - at org.eclipse.glsp.server.actions.SaveModelActionHandler.executeAction(SaveModelActionHandler.java:32) - at org.eclipse.glsp.server.actions.AbstractActionHandler.execute(AbstractActionHandler.java:53) - at org.eclipse.glsp.server.internal.actions.DefaultActionDispatcher.runAction(DefaultActionDispatcher.java:198) - at org.eclipse.glsp.server.internal.actions.DefaultActionDispatcher.handleAction(DefaultActionDispatcher.java:176) - at org.eclipse.glsp.example.javaemf.handler.MyActionDispatcher.handleAction(MyActionDispatcher.java:24) - at org.eclipse.glsp.server.internal.actions.DefaultActionDispatcher.handleNextAction(DefaultActionDispatcher.java:163) - at org.eclipse.glsp.server.internal.actions.DefaultActionDispatcher.runThread(DefaultActionDispatcher.java:149) - at java.base/java.lang.Thread.run(Thread.java:1583) - - chatGPT: To ensure that Sprotty elements (such as nodes, edges, etc.) are always in the foreground, -- GitLab