Blocs for Mac V5.2 Beta Build 10

You might need to describe more details about what you want to achieve.

When using undo (cmd z) in the code editor, it seems to start to scramble the code when going back several steps. In one case it partially added code from the header zone with code in the CSS input zone and mixed them :grimacing:

That opening style tag is from the header input zone and you can see how its messed up the syntax. It removed the @k from the keyframes. :laughing: and I am not sure how the display: none ended up in the key frame either. The class names are missing from the first one (where the style tag and img tag appear), it wasn’t even polite enough to add the closing style tag :roll_eyes: I am pretty sure the modified CSS animation won’t work either :rofl:

Example

1 Like

No matter what action you take, forms are crashing. Whether you duplicate a form group or delete, one Blocs crashes 80% of the time. This makes forms basically unusable.

Exception Name: NSTableViewException
Description: Row index 11 out of row range (numberOfRows: 10) for <layerTreeOutlineView: 0x7febdc933800>
User Info: (null)

0   CoreFoundation                      0x00007ff801793fa6 __exceptionPreprocess + 242
1   libobjc.A.dylib                     0x00007ff801289231 objc_exception_throw + 48
2   AppKit                              0x00007ff804e44bea -[NSTableRowData _availableRowViewWhileUpdatingAtRow:] + 0
3   AppKit                              0x00007ff804e9fa95 -[NSTableView viewAtColumn:row:makeIfNecessary:] + 29
4   AppKit                              0x00007ff8057f8391 -[NSTableViewCellMockElement childViewIsCellView:] + 128
5   AppKit                              0x00007ff8057f8415 -[NSTableViewCellMockElement accessibilityChildrenAttribute] + 60
6   AppKit                              0x00007ff804dc220b NSAccessibilityGetObjectForAttributeUsingLegacyAPI + 337
7   AppKit                              0x00007ff80547919c ___NSAccessibilityEntryPointValueForAttribute_block_invoke.856 + 2724
8   AppKit                              0x00007ff805474527 NSAccessibilityPerformEntryPointObject + 16
9   AppKit                              0x00007ff804fe6b12 _NSAccessibilityEntryPointValueForAttribute + 168
10  AppKit                              0x00007ff804dc0795 NSAccessibilityChildren + 41
11  AppKit                              0x00007ff804ef0beb -[NSObject(NSObjectAccessibilityAttributeAccessAdditions) accessibilityIndexOfChild:] + 14
12  AppKit                              0x00007ff804ef0aa5 -[NSObject(NSAccessibilityUIElementSpecifier) _accessibilityUIElementSpecifierForChild:registerIfNeeded:] + 136
13  AppKit                              0x00007ff804eabf01 -[NSObject(NSAccessibilityUIElementSpecifier) _accessibilityUIElementSpecifierRegisterIfNeeded:] + 144
14  AppKit                              0x00007ff804e23e37 NSAccessibilityHandleFocusChangedForce + 166
15  AppKit                              0x00007ff804f4da8d -[NSSegmentedCell setSelectedSegment:] + 388
16  AppKit                              0x00007ff804fb7ed8 -[NSSegmentedCell selectSegmentWithTag:] + 103
17  AppKit                              0x00007ff805c766b1 -[NSTextTouchBarItemController setSelectedAttributesWithEnumrator:] + 915
18  AppKit                              0x00007ff804e343db -[NSTextView(NSTextView_TouchBar_API) updateTextTouchBarItems] + 140
19  AppKit                              0x00007ff804e33cc2 -[NSTextView updateFontPanel] + 2313
20  AppKit                              0x00007ff804e330a9 -[NSTextView(NSSharing) setTypingAttributes:] + 1758
21  AppKit                              0x00007ff804e17153 syncTextWithTextView + 827
22  AppKit                              0x00007ff804d68dc8 -[NSCell setObjectValue:] + 351
23  AppKit                              0x00007ff804d68a73 -[NSCell setStringValue:] + 98
24  AppKit                              0x00007ff804fd260e -[NSTextField textDidEndEditing:] + 182
25  CoreFoundation                      0x00007ff801716800 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 137
26  CoreFoundation                      0x00007ff8017a7336 ___CFXRegistrationPost_block_invoke + 88
27  CoreFoundation                      0x00007ff8017a7280 _CFXRegistrationPost + 532
28  CoreFoundation                      0x00007ff8016e66fb _CFXNotificationPost + 682
29  Foundation                          0x00007ff80266622e -[NSNotificationCenter postNotificationName:object:userInfo:] + 82
30  AppKit                              0x00007ff804fd21e7 -[NSTextView(NSSharing) resignFirstResponder] + 762
31  AppKit                              0x00007ff804e4b236 -[NSWindow _realMakeFirstResponder:] + 218
32  AppKit                              0x00007ff804e42c47 __56-[NSTableRowData _removeRowsAtIndexes:withRowAnimation:]_block_invoke + 494
33  Foundation                          0x00007ff8026950cb __NSINDEXSET_IS_CALLING_OUT_TO_A_RANGE_BLOCK__ + 7
34  Foundation                          0x00007ff802dc9566 __NSIndexSetEnumerateBitfield + 851
35  AppKit                              0x00007ff805a8183f __55-[NSTableRowData removeRowsAtIndexes:withRowAnimation:]_block_invoke + 295
36  AppKit                              0x00007ff805a7f872 -[NSTableRowData _performWithIncrementedTableViewUpdateCount:] + 49
37  AppKit                              0x00007ff804e4298e -[NSTableRowData removeRowsAtIndexes:withRowAnimation:] + 90
38  AppKit                              0x00007ff804dc4b36 -[NSTableView _doUpdatedWorkWithHandler:] + 73
39  AppKit                              0x00007ff804e4283f -[NSTableView removeRowsAtIndexes:withAnimation:] + 136
40  AppKit                              0x00007ff804e427b0 -[NSOutlineView removeRowsAtIndexes:withAnimation:] + 41
41  AppKit                              0x00007ff804e41ce1 -[NSOutlineView reloadItem:reloadChildren:] + 1317
42  AppKit                              0x00007ff805539400 -[NSOutlineViewBinder _childrenChangedForNode:] + 123
43  AppKit                              0x00007ff804f57c12 -[NSOutlineViewBinder observeValueForKeyPath:ofObject:change:context:] + 405
44  Foundation                          0x00007ff80268e768 NSKeyValueNotifyObserver + 305
45  Foundation                          0x00007ff802748c3d NSKeyValueDidChange + 409
46  Foundation                          0x00007ff802ddec8c NSKeyValueDidChangeWithPerThreadPendingNotifications + 146
47  AppKit                              0x00007ff8058ff8d1 -[NSTreeController _insertObject:atArrangedObjectIndexPath:objectHandler:] + 375
48  Blocs                               0x0000000104e7f839 Blocs + 772153
49  Blocs                               0x0000000104e88d9e Blocs + 810398
50  WebKit                              0x00007ff90576a663 _ZN28ScriptMessageHandlerDelegate14didPostMessageERN6WebKit12WebPageProxyEONS0_13FrameInfoDataERN3API12ContentWorldERN7WebCore21SerializedScriptValueE + 271
51  WebKit                              0x00007ff905b182c6 _ZN6WebKit29WebUserContentControllerProxy14didPostMessageEN3WTF23ObjectIdentifierGenericINS_26WebPageProxyIdentifierTypeENS1_38ObjectIdentifierMainThreadAccessTraitsEEEONS_13FrameInfoDataEyRKNSt3__14spanIKhLm18446744073709551615EEEONS1_17CompletionHandlerIFvOSB_RKNS1_6StringEEEE + 626
52  WebKit                              0x00007ff905e38cca _ZN3IPC18handleMessageAsyncIN8Messages29WebUserContentControllerProxy14DidPostMessageEN6WebKit29WebUserContentControllerProxyES5_FvN3WTF23ObjectIdentifierGenericINS4_26WebPageProxyIdentifierTypeENS6_38ObjectIdentifierMainThreadAccessTraitsEEEONS4_13FrameInfoDataEyRKNSt3__14spanIKhLm18446744073709551615EEEONS6_17CompletionHandlerIFvOSG_RKNS6_6StringEEEEEEEvRNS_10ConnectionERNS_7DecoderEPT0_MT1_T2_ + 209
53  WebKit                              0x00007ff905e38be6 _ZN6WebKit29WebUserContentControllerProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 64
54  WebKit                              0x00007ff905e50b1d _ZN3IPC18MessageReceiverMap15dispatchMessageERNS_10ConnectionERNS_7DecoderE + 223
55  WebKit                              0x00007ff905a9d029 _ZN6WebKit15WebProcessProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 31
56  WebKit                              0x00007ff905e4cc37 _ZN3IPC10Connection15dispatchMessageENSt3__110unique_ptrINS_7DecoderENS1_14default_deleteIS3_EEEE + 269
57  WebKit                              0x00007ff905e4d088 _ZN3IPC10Connection24dispatchIncomingMessagesEv + 322
58  JavaScriptCore                      0x00007ff81e126fce _ZN3WTF7RunLoop11performWorkEv + 430
59  JavaScriptCore                      0x00007ff81e127d5a _ZN3WTF7RunLoop11performWorkEPv + 26
60  CoreFoundation                      0x00007ff8017212c7 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
61  CoreFoundation                      0x00007ff801721269 __CFRunLoopDoSource0 + 157
62  CoreFoundation                      0x00007ff801721034 __CFRunLoopDoSources0 + 215
63  CoreFoundation                      0x00007ff80171fcb1 __CFRunLoopRun + 919
64  CoreFoundation                      0x00007ff80171f352 CFRunLoopRunSpecific + 557
65  HIToolbox                           0x00007ff80bfc19d9 RunCurrentEventLoopInMode + 292
66  HIToolbox                           0x00007ff80bfc1616 ReceiveNextEventCommon + 201
67  HIToolbox                           0x00007ff80bfc1531 _BlockUntilNextEventMatchingListInModeWithFilter + 66
68  AppKit                              0x00007ff804d2f885 _DPSNextEvent + 880
69  AppKit                              0x00007ff805623348 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1304
70  AppKit                              0x00007ff804d20dfa -[NSApplication run] + 603
71  AppKit                              0x00007ff804cf4e10 NSApplicationMain + 816
72  dyld                                0x00007ff8012bd3a6 start + 1942

Small Potato 2023-11-29 at 11.03.00

Small Potato 2023-11-29 at 11.07.19

Out of interest is this your intel machine or both intel and Apple Silicone?

I’ll take a look at that today.

1 Like

Hey @Bill

Regarding your use of HTML comments inside of your PHP function. Support for this is contradicted by the the browsers not Blocs.

I’ll look into the additional dashes being added (-), but you should be using php comments not html ones inside of the PHP code.

I’m now on my Intel and I’m sure it will be worse on my silicone :grin:. I’ll give it a spin on the M1 tonight.

1 Like

Look’s like this is caused by the miss-use of the sync api call in your initi custom Bric call. As mentioned previously and now noted in the docs, this should only be called when there are changes to sync back to the document. Currently your Bric is calling sync every time it is selected regardless of whether there are changes.

If you use the keyboard shortcut command+backspace does it crash when deleting items?

No, no crashes with command+backspace :star_struck: :tada:

1 Like

I’ve made a few tweaks to the layer tree in the next beta, let me know if it corrects the crash when using the context menu delete function.

2 Likes

Got that one fixed up ready for next beta.

1 Like

I find it somewhat frustrating that the code editor window disappears when clicking outside Blocs, or, if the ‘show sub-windows when app not active’ option is selected in the preferences pane, it remains on top of all other windows. Why can’t it simply operate like windows in every other program?

2 Likes

I have that fixed up in the next beta.

1 Like

Likely the type of window, there are a few to choose from. I’ll take a look.

3 Likes

Imageine you want e.g. 3 different images scrolling from right to left on the homepage from left to right in slow motion with no distance between them…

Well that was weird, after making a bunch of changes, suddenly the AI dialogue popped up, like when I open a project. I dismiss it, and all the changes I made disappeared, content, classes etc. It’s like the project was newly opened. This was like after 20mins :roll_eyes: :grimacing: :rofl:

No crashes or anything. Just the big reset!!!

@yellow, change the card width to 100%, make the adjustments to the image, 100% wide to what ever height you want. Pretty much how you build anything else.

You will find the slider container is using gap-20 (see browser inspector). If you add a class called gap-0 to the slider container/div it will over-ride and remove the gap.

gap-* are bootstrap classes.

There is no auto scroll.

+1 with that.

1 Like

Any iframes or external hosted JS loaded into the design canvas?