what is this
The generate does not work with large extensions.
Yes, I mentioned it here:
How many blocks are there in the extension?
29 blocks
Disk size of the extension?
For me, only 70 blocks are generated. The rest are skipped. Still not generating a helper block for me.
Your extension correctly generates 29 blocks for me.
May you please send the extension here or in the PM?
I just tried with the extension having 270+ blocks and it generated all of them.
PS: The designer property block generation is yet to be tested.
New Update v1.5
New Features:
- Single Block Download: The tool now supports downloading a single block too.
Improvements:
- Removed hr tag from documentation
- Changed order of block generation from
methods > events > properties
toevents > methods > properties
- Fixed skipping of some blocks (tested with 270+ blocks extension)
- Fixed minor bug fixes and spelling mistakes.
Clear cache and start using
I already know why it doesn't generate all the blocks. The problem is that if the setter and the getter have the same name, only the getter is generated. Also does not generate helper blocks.
Test extension:
pl.patryk_f.helperstest.aix (6.3 KB)
Blocks:
From dokumentation:
Thanks for reporting the errors. I'll be fixing it in the next update.
But the helper blocks are being generated for me:-
It looks like the website is being run on old cache, as I have removed hr tags (that draws a divider) from the extension. Use a different browser or clear the cache.
Depreciated ? Should be "Deprecated" ?
They didn't show up on my v1.5 page. Also, shouldn't they be attached to function blocks or properties, just like they are in the block editor?
@Patryk_F I have fixed the issue as addressed by you.
However, this is not in my current plan but I will try to add this in the coming updates.
Please clear the cache of the browser or use a different one. The helper block are being generated for me.
In Edge the generation of helper blocks works, in Chrome it does not work despite clearing the cache and cookies. Chrome also does not display buttons to download individual blocks.