Norm
November 15, 2023, 5:20pm
1
Here is Blocs for Mac V5.2 beta build 7 with more fixes and improvements
Have fun testing
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.
2 Likes
Ricardo
November 15, 2023, 5:25pm
2
That’s great @Norm !
Thanks for all the fixes and new features.
2 Likes
Jerry
November 15, 2023, 5:34pm
3
The lightbox is broken. It’s impossible to add an alternative image.
Jerry
November 15, 2023, 5:38pm
4
It’s impossible to select a class in the class window.
Norm
November 15, 2023, 5:41pm
5
When you click them do they open the class editor ?
Jerry
November 15, 2023, 5:42pm
6
No, they don’t (on my Intel)
1 Like
Norm
November 15, 2023, 5:58pm
7
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.
Norm
November 15, 2023, 6:00pm
9
Are you unable to assign an image? Or is the assigned image not loading?
Norm
November 15, 2023, 6:01pm
10
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
Ricardo
November 15, 2023, 9:15pm
12
@Norm ,
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
Jerry
November 16, 2023, 1:26am
13
I’m unable to assign an alternative image.
Jerry
November 16, 2023, 1:39am
14
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.
Jerry
November 16, 2023, 3:40am
15
Hi Jerry, I’m contacting you because I’m trying to use scroll locomotives in blocs, and as happened to you previously, I found an error when inserting data-scroll as a custom-attribute. I saw that you solved it with some JS. If you could be so kind as to help me I would really appreciate it, thank you
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!
<script>
document.addEventListener("DOMContentLoaded", function() {
var scrollElements = document.querySelectorAll('.my-class');
scrollElements.forEach(function(element) {
element.setAttribute('data-scroll', "");
});
const locomotiveScroll = new LocomotiveScroll();
});
</script>
Norm
November 16, 2023, 10:33am
16
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.
Jerry
November 16, 2023, 10:34am
17
When adding a custom Bloc Blocs Crashes.
It holds just a bunch of Divs for an infinite slider.
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
Jerry
November 16, 2023, 10:43am
18
As a tourist route that ‘works’. However, it will change the original shown image as well which then will need to be changed back.
Norm
November 16, 2023, 10:57am
19
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.
2 Likes
Norm
November 16, 2023, 10:57am
20
interesting I’ll test this one out.