Blocs for Mac V5.2 Beta Build 7

Here is Blocs for Mac V5.2 beta build 7 with more fixes and improvements :raised_hands:

Have fun testing :sunglasses:

Download Blocs V5.2.0 beta Build 7

Bric Developers
Some improvements to the way templates work in this version so make sure to test your Brics that rely on this functionality.


That’s great @Norm!
Thanks for all the fixes and new features.


The lightbox is broken. It’s impossible to add an alternative image.

It’s impossible to select a class in the class window.

Small Potato 2023-11-15 at 21.36.27

When you click them do they open the class editor ?

No, they don’t (on my Intel)

1 Like

The selection state of these class tokens only changes on a right click or if you drag inside the field to make a selection.

But a single left click should still launch the class editor. Unless your windows are somehow lost offscreen.

Anyone else not getting the class editor on a token click?

I am having slightly better luck for once. I can select and copy a single class now, which wasn’t possible previously. I presume Norm has at least one Intel machine with different OS versions to test these things.

Screenshot 2023-11-15 at 17.57.27

Are you unable to assign an image? Or is the assigned image not loading?

Do you get the class editor if you click a class token?

Yes it’s opening correctly here. I’m also on Intel running Sonoma 14.1.1.

1 Like


I can select a class in the class window, and the right click works as well

I am on Intel running on macOS v13.6.1

1 Like

I’m unable to assign an alternative image.

Small Potato 2023-11-16 at 05.23.23

What solves the issue is to open the class manager from the menu bar and the editor will show when you click on it. It’s the same approach I frequently have to use the same approach for images as the asset manager often refuses to open when clicking on a new image bric. Once opened from the menu bar it behaves correctly.

Try below and you should be good.

Note: You’re hijacking an attribute used by Blocs which could potentially create all sorts of other issues. Use at your own risk!

        document.addEventListener("DOMContentLoaded", function() {
            var scrollElements = document.querySelectorAll('.my-class');
            scrollElements.forEach(function(element) {
                element.setAttribute('data-scroll', "");
            const locomotiveScroll = new LocomotiveScroll();

Hey @Jerry, do you find that dragging the alternate image from the Asset Manager to the alternate image well works correctly?

This works for me, but I get the same issue as you when clicking the well in the sidebar and then selecting in Asset Manager.

When adding a custom Bloc Blocs Crashes.
It holds just a bunch of Divs for an infinite slider.

Small Potato 2023-11-16 at 14.33.30

Crash Report:

Exception Name: NSRangeException
Description: *** -[__NSArrayM objectAtIndexedSubscript:]: index 0 beyond bounds for empty array
User Info: (null)

0   CoreFoundation                      0x00007ff813075fa6 __exceptionPreprocess + 242
1   libobjc.A.dylib                     0x00007ff812b6b231 objc_exception_throw + 48
2   CoreFoundation                      0x00007ff812fef6ae -[__NSCFString hasSuffix:] + 0
3   Blocs                               0x0000000101802a44 Blocs + 776772
4   Blocs                               0x000000010180c2fa Blocs + 815866
5   WebKit                              0x00007ff91704c663 _ZN28ScriptMessageHandlerDelegate14didPostMessageERN6WebKit12WebPageProxyEONS0_13FrameInfoDataERN3API12ContentWorldERN7WebCore21SerializedScriptValueE + 271
6   WebKit                              0x00007ff9173fa2c6 _ZN6WebKit29WebUserContentControllerProxy14didPostMessageEN3WTF23ObjectIdentifierGenericINS_26WebPageProxyIdentifierTypeENS1_38ObjectIdentifierMainThreadAccessTraitsEEEONS_13FrameInfoDataEyRKNSt3__14spanIKhLm18446744073709551615EEEONS1_17CompletionHandlerIFvOSB_RKNS1_6StringEEEE + 626
7   WebKit                              0x00007ff91771acca _ZN3IPC18handleMessageAsyncIN8Messages29WebUserContentControllerProxy14DidPostMessageEN6WebKit29WebUserContentControllerProxyES5_FvN3WTF23ObjectIdentifierGenericINS4_26WebPageProxyIdentifierTypeENS6_38ObjectIdentifierMainThreadAccessTraitsEEEONS4_13FrameInfoDataEyRKNSt3__14spanIKhLm18446744073709551615EEEONS6_17CompletionHandlerIFvOSG_RKNS6_6StringEEEEEEEvRNS_10ConnectionERNS_7DecoderEPT0_MT1_T2_ + 209
8   WebKit                              0x00007ff91771abe6 _ZN6WebKit29WebUserContentControllerProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 64
9   WebKit                              0x00007ff917732b1d _ZN3IPC18MessageReceiverMap15dispatchMessageERNS_10ConnectionERNS_7DecoderE + 223
10  WebKit                              0x00007ff91737f029 _ZN6WebKit15WebProcessProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 31
11  WebKit                              0x00007ff91772ec37 _ZN3IPC10Connection15dispatchMessageENSt3__110unique_ptrINS_7DecoderENS1_14default_deleteIS3_EEEE + 269
12  WebKit                              0x00007ff91772f1b9 _ZN3IPC10Connection24dispatchIncomingMessagesEv + 627
13  JavaScriptCore                      0x00007ff82fa08fce _ZN3WTF7RunLoop11performWorkEv + 430
14  JavaScriptCore                      0x00007ff82fa09d5a _ZN3WTF7RunLoop11performWorkEPv + 26
15  CoreFoundation                      0x00007ff8130032c7 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
16  CoreFoundation                      0x00007ff813003269 __CFRunLoopDoSource0 + 157
17  CoreFoundation                      0x00007ff813003034 __CFRunLoopDoSources0 + 215
18  CoreFoundation                      0x00007ff813001cb1 __CFRunLoopRun + 919
19  CoreFoundation                      0x00007ff813001352 CFRunLoopRunSpecific + 557
20  HIToolbox                           0x00007ff81d8a39d9 RunCurrentEventLoopInMode + 292
21  HIToolbox                           0x00007ff81d8a3616 ReceiveNextEventCommon + 201
22  HIToolbox                           0x00007ff81d8a3531 _BlockUntilNextEventMatchingListInModeWithFilter + 66
23  AppKit                              0x00007ff816611885 _DPSNextEvent + 880
24  AppKit                              0x00007ff816f05348 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1304
25  AppKit                              0x00007ff816602dfa -[NSApplication run] + 603
26  AppKit                              0x00007ff8165d6e10 NSApplicationMain + 816
27  dyld                                0x00007ff812b9f3a6 start + 1942
1 Like

As a tourist route that ‘works’. However, it will change the original shown image as well which then will need to be changed back.

Small Potato 2023-11-16 at 14.40.12

Looks like it’s been this way since Blocs V4, so you and your intel laptop win bug finder of the year 2023.

Fix included in Fridays beta.


interesting I’ll test this one out.