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
Although root problem in this case is probably in analyzer package or whatever else initializes nameOffset as -1, it might make sense to catch possible errors around spanForElement call and output only file name if exact span is unavailable for whatever reason.
The text was updated successfully, but these errors were encountered:
InvalidGenerationSourceError.toString()
method may throw, and that ruin whole reason of this error.See google/json_serializable.dart#315 for details
Although root problem in this case is probably in
analyzer
package or whatever else initializesnameOffset
as-1
, it might make sense to catch possible errors aroundspanForElement
call and output only file name if exact span is unavailable for whatever reason.The text was updated successfully, but these errors were encountered: