Provide more info about failuers to load CLR assemblies#1076
Conversation
645687e to
4e1ea84
Compare
March 4, 2020 02:47
ccf5203 to
e6610eb
Compare
April 27, 2020 21:35
e6610eb to
46a51d4
Compare
May 13, 2020 21:05
Codecov Report
@@ Coverage Diff @@
## master #1076 +/- ##
=======================================
Coverage 86.66% 86.66%
=======================================
Files 1 1
Lines 300 300
=======================================
Hits 260 260
Misses 40 40
Continue to review full report at Codecov.
|
Sorry, something went wrong.
|
Fine by me, but please add a changelog entry for the breaking change. |
Sorry, something went wrong.
58ef45f to
37df647
Compare
August 18, 2020 20:43
…ore info when CLR assemblies are failed to be loaded 1. When trying to implicitly load assemblies, and that fails NOT because an assembly is missing, but because loading failed for some reason, emit Python warning. 2. When trying to import a module in our import hook, if the module name is an assembly name, and we fail to load it, and Python also fails to find a module with the same name, add the exceptions we got during the attempt to load it into __cause__ of the final ImportError BREAKING: clr.AddReference will now throw exceptions besides FileNotFoundException. Additional: a few uses of BorrowedReference This addresses pythonnet#261 It is an alternative to pythonnet#298
37df647 to
6eb9258
Compare
August 18, 2020 21:14
|
I dropped the update, that tried to remove legacy "CLR." module from this change, as it started growing in scope, and is not directly related to this change. |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #1076 +/- ##
=======================================
Coverage 86.25% 86.25%
=======================================
Files 1 1
Lines 291 291
=======================================
Hits 251 251
Misses 40 40
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
Sorry, something went wrong.
What does this implement/fix? Explain your changes.
__cause__attribute of the finalImportError.BREAKING:
clr.AddReferencewill now throw exceptions besidesFileNotFoundException.Additional: a few uses of
BorrowedReferenceDoes this close any currently open issues?
This addresses #261
It is an alternative to #298
Checklist
Check all those that are applicable and complete.