-
Notifications
You must be signed in to change notification settings - Fork 143
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
Need to print the exception message to give more information #1429
Need to print the exception message to give more information #1429
Conversation
I think this is necessary before #1426 is done otherwise it will be impossible for end users to know why Eclipse fails to start when they don't have the required glibc version. |
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 agree that this is imporant and it looks good.
version 'GLIBC_2.34' not found (required by .../libswt-pi3-gtk-4966r6.so)
Is that the message of the exception that is printed with this?
If not, could you please provide an example?
Here is the sanitized exceptions after removing my system path information:
The message is a little weird because of all the different fallbacks SWT has for attempting to load its libraries. |
23d5cf6
to
da4cb1f
Compare
bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
Outdated
Show resolved
Hide resolved
I wonder if Javas "suppressed exception" feature could better be used here? this was for sure not possible at the time this method was introduced, but should work with Java 17? |
If running on a system that does not have the required glibc version then important information is lost to tell the user what is wrong. For example: version 'GLIBC_2.34' not found (required by .../libswt-pi3-gtk-4966r6.so) The fallback is tried if that fails then its exception is added as suppressed by the original exception and the original is thrown.
da4cb1f
to
5329fd6
Compare
This now records the error in the log like this:
|
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 should be sufficient, as with all native errors its hard to understand for the user but includes enough to find out for someone investigating the failure and much better than simply hide the cause!
…-platform#1429) If running on a system that does not have the required glibc version then important information is lost to tell the user what is wrong. For example: version 'GLIBC_2.34' not found (required by .../libswt-pi3-gtk-4966r6.so) The fallback is tried if that fails then its exception is added as suppressed by the original exception and the original is thrown.
If running on a system that does not have the required glibc version then important information is lost to tell the user what is wrong. For example:
version 'GLIBC_2.34' not found (required by .../libswt-pi3-gtk-4966r6.so)