You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, calling `Utility.Version(string: foo)` with a user-entered string returns nil whenever the string is malformed in any way, but it doesn’t provide any diagnostics about what the problem is.
The text was updated successfully, but these errors were encountered:
Hey there - I have 3 issues with solving this radar I'd love some help with.
Injecting a `DiagnosticsEngine` breaks Auto-equatable (which is solved by removing the `#if !swift(>=4.1)` clause)
Injecting a `DiagnosticsEngine` means passing it into all initializers of `Version`, which means to `init(json🙂` as well, breaking conformance to `JSONMappable`
Like-wise, `ExpressibleByStringLiteral` is broken when injecting into its appropriate initializer.
Seems to me like the only way to solve this is to use a static/Singleton-style `DiagnosticsEngine` here but that seems backwards. Would appreciate any guidance 🙂
Additional Detail from JIRA
md5: 46680a2c0ec36bb66247502e88b4930f
Issue Description:
Right now, calling `Utility.Version(string: foo)` with a user-entered string returns nil whenever the string is malformed in any way, but it doesn’t provide any diagnostics about what the problem is.
The text was updated successfully, but these errors were encountered: