-
Notifications
You must be signed in to change notification settings - Fork 6
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
"System.NotSupportedException: The invoked member is not supported in a dynamic module." being triggered by KSPe's reflection routines on the wild #59
Comments
Oukey, the plot thickens. It's not Unity. It was determined that KopernicusExpansion is deploying a thing called The original ReSharp is kinda abandoned since 2009, I found repositories on SourceForge and on the late Google Code but the one I found on KEX is the Aqla fork. On a side note, Forum rules demands that the source code of every code deployed on KSP to be available. KEX guys should pinpoing the Aqla's RunSharp source code on their documentation. |
Ha!! That's precious!!! This is the KSP.log's line where the problem happens:
And this is the interesting part:
There's no THIS IS BEYOUND ME, I don't have how to fix it!!!! |
Apparently it's KSPCF.
|
This is not on my shoulders, there's absolutely nothing I can do about. |
Neither the root cause of the user issue (missing dependency, or incompatible assembly) or its consequences on TweakScale are due to KSPCF, please read my answer on the KSPCF thread : https://forum.kerbalspaceprogram.com/topic/204002-18-112-kspcommunityfixes-bugfixes-and-qol-tweaks/?do=findComment&comment=4328959 One reason why I decided to handle a The other reason is to visually provide as much information as possible to end-users about the plugin that failed to load. This being said, there is indeed an oversight in that code causing it to in turn throw an In any case, I would highly suggest that you add exception handling to all your But not in others : https://github.com/search?q=repo%3Anet-lisias-ksp%2FKSPe%20gettypes&type=code |
You are right. I came to the same conclusion, but didn't updated this issue. Sorry for that. I will update with the information I had posted on Forum as time allows |
Oukey, back to basics: From https://learn.microsoft.com/en-us/dotnet/api/system.reflection.assembly.gettypes?view=net-3.5 , we get:
So the official documentation does not tells anything about the Writing shitty code on my side to workaround shitty code from someone else is not an option, so besides being grateful for the suggestion, I will not do it. Whoever is calling KSPe for listing the currently loaded Assemblies wants a list of the currently loaded assemblies For a Reason™, and returning back an empty list will lead to further errors on the stack - what will only make diagnosing more difficult. I do not sweep dirty under my carpet. The solution will be, indeed, to write yet a new Standard Error Handler for this |
I will tackle this one on 2.5.4.0 (or earlier, if I issue another bug fix before it) |
Task:
Write yet another Standard Error Handler for this
System.NotSupportedException
thingy, aborting KSP the same by pinpointing a Q&A Page where the problem is described and possible work arounds suggested.— —
Well… TL;DR:
https://forum.kerbalspaceprogram.com/topic/179030-ksp-130-tweakscale-under-lisias-management-2474-2023-1007/?do=findComment&comment=4328731
And this not a novelty on KSP:
https://forum.kerbalspaceprogram.com/search/?q=%22System.NotSupportedException%22&quick=1&updated_after=any&sortby=newest&search_and_or=or
And the fix/work-around appears to be simple enough:
blizzy78/ksp_toolbar#39
It's important to note that the last link is pinpointing something that happened in 2016, way before KSP 1.4, Harmony and KSPCF. It's almost sure something on Unity itself - or something "interesting" on KSP that lingers way for more time than I thought?
The text was updated successfully, but these errors were encountered: