Your scripts as a flowchart
Andreas Bergendal
andreas.bergendal at gmail.com
Sun Dec 3 14:29:14 EST 2023
Thanks for the feedback, Derek!
1. I get an Error 400 when trying for a flowchart of a monster stack with 180+ handlers with many interdependencies. This seems to be due to exceeding the upper limit of what the Mermaid/Kroki services can handle in therms of ”edges”. The graph is simply too complex. Try excluding substacks, or excluding handlers by adding them to the handler exclusion filter field, to reduce ”uninteresting” complexity.
(I tend to exclude mouse*, and commands/functions that are called many times put only do simple things like adding quotes, or utf conversion or something.)
The "Group per handler host” feature adds complexity to the graph, so using that could also tip it over the error threshold.
Unfortunately, the error message passed back from Mermaid/Kroki is not very enlightening.
2. I realise that I have not put in any error catching for the case where the user has not yet chosen a save file destination. Try opening the flowchart settings pane (which should already set a default save path if empty) and click the folder icon to make an active choice. If it still doesn’t work for you then it might be a Linux issue, which unfortunately I’m unable to test.
3. Hmm, I don’t usually use any gray texts. All texts are black, except for a few big buttons that have ”midnight blue” text, which is also the colour of most of the icons. Is something happening to the UI on Linux? It would be interesting to see a screenshot of how it looks for you.
Here’s a screenshot of part of the UI, posted in the LC forum, that shows how it looks on Mac and Windows:
https://forums.livecode.com/viewtopic.php?f=9&t=37644&start=75
Best,
Andreas
> 3 dec. 2023 kl. 19:00 skrev Derek Bump via use-livecode <use-livecode at lists.runrev.com>:
>
> Thank you, Andreas, this is very cool and quite helpful!
>
>
> Some feedback to pass along for consideration:
>
> 1. I keep getting an Error 400 when creating a flowchart, and it seems to have something to do with the "Group per handler host" checkbox. If you toggle it in the right order, the chart will generate without an error.
>
> 2. Clicking any of the buttons to save files is not resulting in anything appearing on my Desktop. (Mint 21.2)
>
> 3. The teal backgrounds and gray text throughout the UI blends together and disappears when I look at it.
>
>
> I hope this is helpful,
>
> Derek Bump
>
>
> On 11/30/23 14:45, Andreas Bergendal via use-livecode wrote:
>> Hi all,
>>
>> Finally I can answer Yes to the question on exporting script flowcharts!
>> New version of WIS_ScriptDependencies available:
>>
>> v1.1.5 (30 Nov 2023)
>>
>> /Andreas
More information about the use-livecode
mailing list