Quote from: yellek on January 13, 2025, 22:33:01 PMFrom my testing and what I can see the only sub reports that are compiled and available from Archi are ones named the same as those for the Customisable Report and passed into the main report by Archi. If I'm NOT using the Customisable Report my workaround is to define sub reports with the same names as the Customisable Report (properties.jrxml for example) and use those (this seems to work).
If I put my own sub reports with my custom report, Archi throws an error saying it can't find them.
!SESSION 2025-01-13 10:05:17.827 -----------------------------------------------
eclipse.buildId=unknown
java.version=17.0.13
java.vendor=Eclipse Adoptium
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -cleanConfig -eclipse.keyring @user.home/AppData/Roaming/Archi/secure_storage
Command-line arguments: -os win32 -ws win32 -arch x86_64 -cleanConfig -eclipse.keyring @user.home/AppData/Roaming/Archi/secure_storage
!ENTRY org.eclipse.jface 4 2 2025-01-13 10:21:43.061
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NullPointerException: Cannot invoke "com.archimatetool.model.IDiagramModel.eAllContents()" because "diagramModel" is null
at com.archimatetool.editor.model.DiagramModelUtils.findDiagramModelObjectsForElementByIterator(DiagramModelUtils.java:133)
at com.archimatetool.editor.model.DiagramModelUtils.findDiagramModelObjectsForElement(DiagramModelUtils.java:111)
at com.archimatetool.editor.model.DiagramModelUtils.findDiagramModelComponentsForArchimateConcept(DiagramModelUtils.java:91)
at com.archimatetool.editor.diagram.ArchimateDiagramEditor.selectObjects(ArchimateDiagramEditor.java:145)
at com.archimatetool.editor.views.tree.TreeSelectionSynchroniser.selectionChanged(TreeSelectionSynchroniser.java:188)
at org.eclipse.jface.viewers.Viewer$1.run(Viewer.java:151)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:174)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:148)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2132)
at org.eclipse.jface.viewers.ColumnViewer.updateSelection(ColumnViewer.java:1055)
at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1170)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1199)
at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:262)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:420)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:91)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4285)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1160)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4083)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3673)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1042)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:152)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:639)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:546)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:173)
at com.archimatetool.editor.Application.start(Application.java:85)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
An error has occurred. See error log for more details.
Cannot invoke "com.archimatetool.model.IDiagramModel.eAllContents()" because "diagramModel" is null
Quote from: raimondb on January 10, 2025, 11:12:53 AMFurther, what is the kind of workaround that the textOffsetWorkaround is doing exactly?
Quote from: raimondb on January 10, 2025, 11:12:53 AMAlso I was wondering about the textAsShapes and Embedfonts. I am now using textAsShapes = true and EmbedFonts = false. But since I now installed the font, would it also work on all/most target platforms to have textAsShapes=false and EmbedFonts=true? Since my diagrams are now 2.6MB instead of around 330kb