-
Notifications
You must be signed in to change notification settings - Fork 284
Support highlighting CP DSL errors when they are not ruby syntax issues #205
Conversation
I've been running with this all day and testing on different podfiles, not seen any adverse effects. |
Support highlighting CP DSL errors when they are not ruby syntax issues
The way the message and line info is parsed seems like it's more complex to me than should be needed. An informative error should at least have a proper backtrace, no? It should als hold an unprettified message imp. |
s/imp/imo/ |
No, in this case the backtrace is entirely within CocoaPods's source files alas - see the one in #204 |
I see What I really mean is that there should not be a reason to parse this information from a exception’s message. That’s too brittle imo, as the formatting of that message might easily change. So either get the info from its canonical location (file:line from backtrace) or change the way the info is stored in CP (i.e. have the exception hold the unformatted message as well: The only reason the parsing is done in the case of a |
Yeah, this all makes sense, will see what @segiddins says about getting the structured message, but made myself an issue |
👍 |
Iirc there's a |
@alloy @segiddins - incase I'm missing some additional context the I don't know about WRT DSL errors from CP.
Fixes #204