This plug enables you to edit Draw.io png or svg images attached to your page.
On Edge itâs working for someone?
Editor tab doesnât open âUnregistered syscall space.readAttachmentâ
Yes, works for me with Edge version 134.0.3124.68 (and :edge version of SB )
Nick
on SB edge (Package silverbullet ¡ GitHub daily updated) and last chrome version
Itâs not working.
Many times, there are "Unregistered syscall xxxâ. itâs probably an issue of caching and internal registering.
Have you any tips to solve " âUnregistered syscall" error?
The syscall readAttachment
has been renamed to readDocument
on Edge.
It looks like @LogeshG5 didnât update that yet.
thanks @janssen-io . You are my support.
You are optimistic but day to day itâs hard to have a stable platform. ;(
Well, Edge isnât meant to be stable. So I canât blame Logesh either for not changing this yet.
Right. We assumed nobody is using this syscall so we could safely rename it.
No itâs not a problem of plugin maintainer.
Edge itâs a mix of fixes and breaking changes. There is a problem of organization.
To have a fix to solve a blocking issue, you have to switch to edge but edge introduces breaking changesâŚ
Thatâs why many projects use git flow or alternative to have stability.
Bug fixes should be merged quickly on main branch and released.
And edge should be an unstable branch for next version with potentially breaking changes.
Moreover, if you introduce many break changes, we are going to lost plugin maintainer and users.
The vitality of the product should be compatible with stability.
Using semver with a git flow and short development cycle could be a solution.
What do you think?
The community is increasing. It will be difficult to know who is using which feature?
In the case of public method, to my mind, itâs important to proceed like that:
- version+1: deprecated with warning
- version +2: removed
âŚ
Itâs less confortable for refactoring but better for maintainability.
Had you make a survey about seniority of users or lifespan of community plugins?
Hah no it wasnât working. Edge is hard.
Did a quick fork for fixing this.
I doubt @LogeshG5 will accept my PR as it only works with SB:edge
To not break the plugin, both methods must be in the code on the same time.
Smooth migration.
But currently, itâs not possible.
We are in a deadlock like i described before.
Fixed as @Malys said âboth methods must be in the code on the same timeâ.
Thanks @nickb for the pull request. I modified to keep both methods.
Letâs plan and prepare ahead to manage dependencies as the community is growing. Versioning documentation, plugins, etc.,?!
Though this situation is an Edge case , I must say a new user would find it difficult to understand & resolve such issues.
Iâll repeat: we didnât realize this was used externally. In a bit Iâll push a fix to edge that brings back this syscall with the old name as an alias.
Should be live on Edge in a few minutes.
Update: Should be live now. Please confirm.
Hmm, this doesnât seem to work now in either edge or v2, when I try to edit a diagram I get:
Deleted images and containers, re-pulled, updated.
It looks like neither readDocument or readAttachment are available? Some sort of collision with @zef 's edit? I have tried my best but canât work it out
That was a regression that I thought I reverted. Have to check.
Ok, it seems I only put this back on Edge for server mode, I just pushed it for sync mode as well. Also pushed back in the backwards compatible syscalls for v2.
Thank you @zef, both v2 and edge working now.