Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to save diagram ("There currently is no content on the canvas") #121

Closed
elca-maxime-gamboni opened this issue Aug 19, 2022 · 8 comments
Labels
bug Something isn't working

Comments

@elca-maxime-gamboni
Copy link

Hello,

I have a diagram with a dozen items in the local modeler (i.e. URL is file:///.../index.html). I originally opened a diagram made by someone else with the "Import story from file" button, made some changes, and when trying to save with the "Export story as .dst file", Domain Story Modeller pops a dialog saying that "There currently is no content on the canvas. Without content the canvas cannot be exported."

Export as png works fine, but I would like to keep my changes in case I need to make further changes in the future.

I'm using version 1.3.1 on Firefox 103.0.1 on Windows.

Is there a way (maybe by typing some commands in the JS Console) I could recover the diagram? I've been saying "No" to Firefox AND Windows both wanting to restart for upgrades for now, but I will have to close the browser at some point :)

Thank you!

@AlexanderZellober AlexanderZellober added the bug Something isn't working label Aug 19, 2022
@AlexanderZellober
Copy link
Member

This seems like a genuine Bug.
Does the svg-export work?
The .dst.svg-file also contains the domain-story and can be used in the import instead tof the .dst file.

@elca-maxime-gamboni
Copy link
Author

elca-maxime-gamboni commented Aug 19, 2022

Ok that's interesting. SVG export works (😊). But when I open that SVG in (another) Domain Story Modeller I get a blank page with just the title (😔).

EDIT: to clarify, when I say SVG export works, I mean that when I open the SVG with an SVG viewer (I used LibreOffice Draw here) I can see the diagram.

@AlexanderZellober
Copy link
Member

DId you locally install via npm install or via npm ci?

The underlying Framework we use has changed their elementRegistry by introducing a new Layer between the root and the actual diagram in a patch-version.
Due to the breaking-change being in a patch versione, depending how the npm-packages were installed, there is a problem during the fetching of the model for exporting.
Unfortunately this affects all versions of the modeler, since we cannot change the versionNumber to be exact post-release.

I do not think, that in this case it is possible to extract the domainstory from the elementregistry due to this error.
You can try to extract it via the browser debugger in the file canvasElementRegistry and reading out elementRegistry, but that might already be broken.

@elca-maxime-gamboni
Copy link
Author

I downloaded the .zip from here: https://github.com/WPS/domain-story-modeler/releases , and unpacked it. I did not use npm at any point.

@AlexanderZellober
Copy link
Member

The release then seems to have an error.
I will talk with @hschwentner, and we will release a new patch-version with the correct packages.

For now I would reccomend using the 1.3.0 release-version. The only difference is the toggle for png and svg-export to export without the title of the domainstory.

@elca-maxime-gamboni
Copy link
Author

Ok thank you!

Probably we keep this issue open then, until you release a patch?

@AlexanderZellober
Copy link
Member

AlexanderZellober commented Aug 19, 2022

Will do
We also updated the zip-File in the release with a correctly build version to avoid this error in the future

@AlexanderZellober
Copy link
Member

Fixed the issue with a new Version 1.3.2 and also updated the 1.3.1 zip file to have a funcitoning version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants