-
-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add sentry-qt integration for MacOS #7151
base: development
Are you sure you want to change the base?
add sentry-qt integration for MacOS #7151
Conversation
Hey there! Thanks for helping Mudlet improve. 🌟 Test versionsYou can directly test the changes here:
No need to install anything - just unzip and run. |
💵 To receive payouts, sign up on Algora, link your Github account and connect with Stripe/Alipay. |
0256821 Are you sure about that - the general recommendation is to use the newest CMake version you can as it knows more about whatever situation it is being used in than older versions - at a minimum it must be newer than the compiler that is to be used... |
Hi @Kebap, this PR can be tested by adding sentry env. variables. Currently, I'm intentionally making macOS build to fail, for checking runtime error is getting logged on sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to have a conditional for inclusion as not everyone building on MacOS will want their crashes to be reported back to Mudlet HQ.
Yes @SlySven. I've made the changes for this currently sentry integration is controlled by WITH_SENTRY environment variable, just like we do for other modules like 3d mapper, updater, etc. I have successfully tested the variable functionality for both the cases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs some fixes which I've suggested - I guess SOMEFILE
could be that header file if it is present in the submodule before it is even compiled...
src/mudlet.pro
Outdated
HEADERS += ../3rdparty/sentry-native/include/sentry.h | ||
contains( DEFINES, INCLUDE_SENTRY ) { | ||
# sentry-native is needed for MacOS builds with crash-reporting | ||
exists("$${PWD}/../3rdparty/sentry-native/sentry-config.cmake.in") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a CMake file, but this is a qmake project file - is there a more "neutral" file we can use for this. I know it is a bit incidental but it would appear cleaner if they don't concern themselves with each other's files. 🤷♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not able to think of a more "neutral" file for managing sentry specific checks. Currently, most of the checks are written taking inspiration from validations that we have for other 3rd party libraries 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from that last tiny thing this looks good to me. However I cannot test this myself as it needs someone with a MacOS system to test it for real.
/claim #7126
/fixes #7126