-
Notifications
You must be signed in to change notification settings - Fork 51
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
HIServices.AXIsProcessTrustedWithOptions raises with 8.1/8.4 working with 7.1 #456
Comments
Thanks. This is a bug in the bindings for this API. A quick workaround:
With this you code no longer raises. There will be a bugfix release later this week that will include this fix as well. This issue will stay open a little longer because the exception itself is wrong as well and that needs further investigation. |
Thanks so much for your quick response! |
To clarify, that is what I have with 8.1 and it does raises |
I should have looked more carefully: remove |
Thanks so much for your prompt fix! |
Related to #456: Add an assertion to PyObjCTools.TestSupport that does (currently very) basic checking of metadata for callables. Use this new method in the bindings for all frameworks. Fix the 2 issues found by this test.
* Add constants for the 'A' and 'j' characters in type encoding * Basic implementation for 'A' in objc_support The implemtation is not entirely correct, the prefix denotes an atomic varialble and should be read/written using atomic instructions. The prefix is currently ignored, that should be good enough for now. The 'j' prefix is not supported by the bridge, and is not used in public APIs.
…n type This is related to #456, and avoids hitting an internal assertion error with invalid metadata for a function/method. The assertion error indicates a programming error in the bridge itself, and those assertions are something that I'll disable for production builds in a future version (which would have resulted in memory corruption in this case).
Recently we have upgraded to pyobjc 8.1
Code that is working on 7.1 have started to raise:
In 7.1 is pops up the accessibility dialog as expected, but with 8.1/8.4 is raises with:
objc.internal_error: PyObjC: internal error in PyObjCFFI_ParseArguments at Modules/objc/libffi_support.m:3238: assertion failed: argbuf_cur <= argbuf_len
The text was updated successfully, but these errors were encountered: