showOpenDialog has changed to an asynchronous function

60 views
Skip to first unread message

pontasan

unread,
Jul 19, 2024, 11:18:40 PM7/19/24
to StarUML

Hi.

I have a question about showOpenDialog.

Until StarUML version 6.1.1, showOpenDialog was a synchronous function. However, starting from version 6.1.2, it has become asynchronous (6.2.1 is also the same as 6.1.2).

The latest API documentation indicates that it does not return a Promise and is described as a synchronous function.

https://files.staruml.io/api-docs/6.0.0/api/index.html#dialogmanager https://docs.staruml.io/developing-extensions/using-dialogs


Which is correct: the asynchronous behavior from 6.1.2 onwards or the synchronous description in the API documentation?

Reference: This change is likely due to an upgrade in the Electron platform.


Regards,

Pontasan

StarUML

unread,
Jul 20, 2024, 1:30:04 AM7/20/24
to StarUML
Hello Pontasan,

Sorry for the inconvenience.

Electron's Linux distribution had issues with synchronous dialogs, so switching to asynchronous caused API inconsistencies.

The issue has been fixed in the 6.2.2 hotfix, which has now been released.

We have now changed the dialog API back to the synchronized version. Instead, we've added two new functions: showOpenDialogAsync and showSaveDialogAsync. (Documentation will be added later after stabilization.) If you're experiencing issues with your extension not working on linux, please try the asynchronous API.

Thank you,
StarUML Team
2024년 7월 20일 토요일 오후 12시 18분 40초 UTC+9에 pontasan님이 작성:

pontasan

unread,
Jul 20, 2024, 2:30:25 AM7/20/24
to StarUML

Thank you for your quick and detailed response.

I love StarUML. Please keep up the good work.


Thank you,
pontasan

2024年7月20日土曜日 14:30:04 UTC+9 StarUML:

Rogier van Stapele

unread,
Aug 5, 2024, 7:52:36 AM8/5/24
to StarUML
Hello,

I have the same problem on ubuntu 20.04. 
I cannot export xmi or any extension output since version 6.1.2. The 6.2.2 fix didn't fix it.

StarUML

unread,
Aug 6, 2024, 11:26:43 PM8/6/24
to StarUML
XMi extension is now updated for async dialogs. Please try the new version.

Thanks,

2024년 8월 5일 월요일 오후 8시 52분 36초 UTC+9에 rvs...@gmail.com님이 작성:
Reply all
Reply to author
Forward
0 new messages