Comments (5)
Thanks for raising this issue. You're right that the parser doesn't currently handle the output of constraints made that way, but I believe that support can be added.
from wtfautolayout.
just put some example of similar constraint if you will want to fix it
"<NSLayoutConstraint:0x600001531db0 (UIView:0x7fa34581bb50.trailing - UIView:0x7fa345816710.trailing) >= (UIView:0x7fa34580f1d0.trailing - UIView:0x7fa345816710.trailing) (active, names: UIView:0x7fa34581bb50.trailing:0x600002ce1d00, UIView:0x7fa345816710.trailing:0x600002ce1d80, UIView:0x7fa34580f1d0.trailing:0x600002ce1d40 )>",
from wtfautolayout.
Before I open a new issue...wtfautolayout doesn't seem to work with Xcode 14 at all, and I'm wondering if this is the same issue. Example constraints:
(
"<NSAutoresizingMaskLayoutConstraint:0x600003757390 h=-&- v=-&- Conversations.FeedSocialCountCell:0x7f90cc9a87c0.minY == 0 (active, names: '|':UIView:0x7f90cc9a8490 )>",
"<NSAutoresizingMaskLayoutConstraint:0x6000037573e0 h=-&- v=-&- V:[Conversations.FeedSocialCountCell:0x7f90cc9a87c0]-(0)-| (active, names: '|':UIView:0x7f90cc9a8490 )>",
"<NSAutoresizingMaskLayoutConstraint:0x600003757520 h=--& v=--& UIView:0x7f90cc9a8490.height == 0 (active)>",
"<NSLayoutConstraint:0x60000375dcc0 12600urn:li:fs_updateV2:(....height == Conversations.FeedSocialCountCell:0x7f90cc9a87c0.height (active, names: 12600urn:li:fs_updateV2:(...:0x7f90cc9a9710 )>",
"<NSLayoutConstraint:0x60000375ef30 reactions_like_consumptio....height == 16 (active, names: reactions_like_consumptio...:0x7f90cc9aaf50 )>",
"<NSLayoutConstraint:0x60000375e850 'LINStackView-bottom-0-UIView-bottom' 12601urn:li:fs_updateV2:(....bottom == 12600urn:li:fs_updateV2:(....bottom (active, names: 12601urn:li:fs_updateV2:(...:0x7f90cc9a9880, 12600urn:li:fs_updateV2:(...:0x7f90cc9a9710 )>",
"<NSLayoutConstraint:0x60000375e580 'LINStackView-top-0-UIView-top' V:|-(0)-[12601urn:li:fs_updateV2:(...] (active, names: 12601urn:li:fs_updateV2:(...:0x7f90cc9a9880, 12600urn:li:fs_updateV2:(...:0x7f90cc9a9710, '|':12600urn:li:fs_updateV2:(...:0x7f90cc9a9710 )>",
"<NSLayoutConstraint:0x6000037569e0 'UISV-canvas-connection' 12601urn:li:fs_updateV2:(....top == _UILayoutSpacer:0x600002ff2df0'UISV-alignment-spanner'.top (active, names: 12601urn:li:fs_updateV2:(...:0x7f90cc9a9880 )>",
"<NSLayoutConstraint:0x600003756bc0 'UISV-canvas-connection' 12601urn:li:fs_updateV2:(....centerY == reactions_like_consumptio....centerY (active, names: 12601urn:li:fs_updateV2:(...:0x7f90cc9a9880, reactions_like_consumptio...:0x7f90cc9aaf50 )>",
"<NSLayoutConstraint:0x600003756800 'UISV-spanning-boundary' _UILayoutSpacer:0x600002ff2df0'UISV-alignment-spanner'.top <= reactions_like_consumptio....top (active, names: reactions_like_consumptio...:0x7f90cc9aaf50 )>"
)
Just gives parsing error:
Line 5, Column 50
"<NSLayoutConstraint:0x60000375dcc0 12600urn:li:fs_updateV2:(....height == Conversations.FeedSocialCountCell:0x7f90cc9a87c0.height (active, names: 12600urn:li:fs_updateV2:(...:0x7f90cc9a9710 )>",
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
Expected: '0' in instance.memory address.0x
from wtfautolayout.
Hi @brokenalarms! The issue with that input is that one of the views' identifiers (12600urn:li:fs_updateV2:(...
) contains both :
and (
, both of which cause issues for the parser. Removing those characters in the view's identifier allows the log to be parsed correctly.
from wtfautolayout.
Thanks for the answer @johnpatrickmorgan! Nearly all of our identifiers use this terminology for namespacing though, so was hoping there would be a fix in sight for the parser to accept a valid identifier, versus the identifiers needing to conform to a specific naming subset that the parser allows :( Good to know anyway.
from wtfautolayout.
Related Issues (20)
- Cannot Parse _UISystemBaselineConstraint HOT 2
- Text not rendered correctly HOT 1
- Application error HOT 1
- Unexpected input issue with NSSpace HOT 1
- Make a Graphic Rendering HOT 1
- Unexpected Input for ']' HOT 1
- file name with + sign shows syntax error HOT 1
- www prefix doesnโt work with https HOT 5
- Error: Expected: '.' in dot attribute HOT 2
- Permalink fails when code contains ampersand & HOT 2
- Issue parsing _UISystemBaselineConstraint HOT 2
- Preserve constraint identifiers HOT 1
- Parsing Issues HOT 1
- It would be nice to also parse `po view.constraints`
- Issue Running Project on Localhost - M1 MacBook Type 'StaticString' does not conform to protocol 'Collection'
- Issue Running Project on Localhost - M1 MacBook ,Type 'StaticString' does not conform to protocol 'Collection'
- Add checkbox to mark correct constraint HOT 2
- Labels with contractions fail to render HOT 3
- Custom naming of views HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wtfautolayout.