Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Kenneth Jiang
    @kennethjiang
    I put both 'pod Raven' and 'pod RavenSwift' in Podfile.
    But I can't figure out how to initialize both Raven and RavenSwift in AppDelegate.m
    my current AppDelegate.m has '[RavenClient clientWithDSN:...', but I suppose it only initializes 'Raven' (obj-c), not 'RavenSwift' (swift)
    if so how can I get RaveSwift initialized?
    Asbjørn Ulsberg
    @asbjornu
    @timorzadir, do you know?
    Tommy Mikalsen
    @timorzadir
    This message was deleted
    Tommy Mikalsen
    @timorzadir
    This message was deleted
    Tommy Mikalsen
    @timorzadir
    @kennethjiang: Do you need both? You should be able to get error reporting to work using only one of the clients.
    Kenneth Jiang
    @kennethjiang
    David already helped me with it. So I knew that I can only get 1 client work. too bad! :( But thx anyway guys!
    Tommy Mikalsen
    @timorzadir
    @kennethjiang: I'm curious though. Why would you want both clients? Maybe it is worth putting some effort into supporting this, if I can understand the use case. :)
    Kenneth Jiang
    @kennethjiang
    Our ios project started a couple of years ago so it was in obj-c. And we have been using Sentry to track errors. A few weeks ago we decided to gradually migrate our project to swift. There will be a least a few months when our project contains both obj-c and swift code. Obviously we don't want to loose track-abilities in either obj-c or swift. Now it doesn't seem to be possible to achieve it with Sentry so I guess we will have to explore alternatives. :(
    Asbjørn Ulsberg
    @asbjornu
    @kennethjiang But do you need the Swift client until the project is completely converted to Swift?
    Erik Sargent
    @eriksargent
    @kennethjiang I'm not positive because I haven't tried it, but I don't see why you wouldn't be able to track swift errors as well as objective-c using either version of the library. You should be able to keep using the objective-c version until the project is fully converted to swift. Have you tried catching exceptions from swift using the objective-c raven client?
    Asbjørn Ulsberg
    @asbjornu
    I believe we catch swift exceptions with raven-objc in a project. Right, @timorzadir?
    Kenneth Jiang
    @kennethjiang
    I kind of figured out how to use obj-c client in swift. However the code is ugly:
                RavenClient.sharedClient().captureMessage(String(format: "%@", unwrappedError), level: kRavenLogLevelDebugError, additionalExtra: nil, additionalTags: nil, method: __FUNCTION__, file: __FILE__, line: __LINE__)
    The reason why I can't use RavenCaptureException is that it's a macro. And swift doesn't support macro in obj-c
    Asbjørn Ulsberg
    @asbjornu
    @kennethjiang Yea, it’s indeed ugly. But it’s temporary until the code base is converted to Swift, no?
    dcharbonnier
    @dcharbonnier
    I created a PR for appletv if you want to have a discussion I'm available :-)
    Asbjørn Ulsberg
    @asbjornu
    @dcharbonnier excellent!
    Klemen1337
    @Klemen1337
    Hello. Im just wondering if global error handling has been fixed.
    dcharbonnier
    @dcharbonnier
    Hello, what's the issue #?
    Klemen1337
    @Klemen1337
    getsentry/raven-swift#17
    dcharbonnier
    @dcharbonnier
    Sorry, wrong projet i dont maintain this one
    Asbjørn Ulsberg
    @asbjornu
    @Klemen1337 Please see getsentry/raven-objc#56